@inploi/plugin-job-search 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/index.js +25 -25
- package/dist/components/job-search.d.ts +1 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +115 -111
- package/dist/{map-11ff91b0.js → map-35ac5de1.js} +1 -1
- package/dist/{map-8c923ca7.cjs → map-dd7b2348.cjs} +1 -1
- package/dist/{utils-726d5029.cjs → utils-1496783d.cjs} +8 -8
- package/dist/{utils-1d2f30cf.js → utils-ca1fcf05.js} +283 -275
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/package.json +3 -3
|
@@ -505,14 +505,14 @@ function _a(e, t, n, r, o, i, a, s, l, d, f, c, p, h, v, g, y, m) {
|
|
|
505
505
|
);
|
|
506
506
|
if (a && P === null)
|
|
507
507
|
continue;
|
|
508
|
-
const R = c && s ? k.replace(/\./g, "%2E") : k,
|
|
508
|
+
const R = c && s ? k.replace(/\./g, "%2E") : k, L = we(_) ? typeof n == "function" ? n(S, R) : S : S + (c ? "." + R : "[" + R + "]");
|
|
509
509
|
m.set(e, b);
|
|
510
510
|
const G = /* @__PURE__ */ new WeakMap();
|
|
511
511
|
G.set(ar, m), ma(
|
|
512
512
|
$,
|
|
513
513
|
_a(
|
|
514
514
|
P,
|
|
515
|
-
|
|
515
|
+
L,
|
|
516
516
|
n,
|
|
517
517
|
r,
|
|
518
518
|
o,
|
|
@@ -1065,7 +1065,7 @@ function Ic(e = "Invalid URL") {
|
|
|
1065
1065
|
}
|
|
1066
1066
|
};
|
|
1067
1067
|
}
|
|
1068
|
-
const
|
|
1068
|
+
const Bm = "inploi-job-search", lt = 10, Lc = wa(
|
|
1069
1069
|
Hn(de({ label: Fo(H(), String), value: Fo(H(), String), jobs: Ee() }))
|
|
1070
1070
|
), Mc = H([Ic()]), jc = de({
|
|
1071
1071
|
total: Ee(),
|
|
@@ -1350,7 +1350,7 @@ function Wn(e, t, n) {
|
|
|
1350
1350
|
}
|
|
1351
1351
|
return r.__N || r.__;
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1353
|
+
function I(e, t) {
|
|
1354
1354
|
var n = gt(je++, 3);
|
|
1355
1355
|
!T.__s && fo(n.__H, t) && (n.__ = e, n.i = t, B.__H.__h.push(n));
|
|
1356
1356
|
}
|
|
@@ -1491,7 +1491,7 @@ var Zo = dt(null), Zc = (e) => ({
|
|
|
1491
1491
|
locale: n
|
|
1492
1492
|
}) => Uo({ terms: e, overrides: t, locale: n })
|
|
1493
1493
|
});
|
|
1494
|
-
const { TranslationProvider:
|
|
1494
|
+
const { TranslationProvider: qm, useTranslation: oe, createTFunction: Km } = Zc({
|
|
1495
1495
|
type_to_search_jobs: "Type to search jobs",
|
|
1496
1496
|
type_to_search: "Type to search",
|
|
1497
1497
|
jobs_found: { one: "{{count}} job found", other: "{{count}} jobs found" },
|
|
@@ -1600,7 +1600,7 @@ const Xo = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Xc =
|
|
|
1600
1600
|
}, []);
|
|
1601
1601
|
return t(o == null ? void 0 : o.base, d, c, i == null ? void 0 : i.class, i == null ? void 0 : i.className);
|
|
1602
1602
|
}, cx: t };
|
|
1603
|
-
}, { compose:
|
|
1603
|
+
}, { compose: Gm, cva: pe, cx: Ym } = Xc(), Fe = pe({
|
|
1604
1604
|
base: "fr animate-selected-tag justify-center touch-hitbox text-style-filter ease-expo-out disabled:text-interactive-neutral-bg-hover disabled:bg-interactive-neutral-bg disabled:hover:disabled:bg-interactive-neutral-bg flex cursor-pointer items-center transition-all duration-snappy active:scale-95",
|
|
1605
1605
|
variants: {
|
|
1606
1606
|
variant: {
|
|
@@ -1638,7 +1638,7 @@ const Xo = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Xc =
|
|
|
1638
1638
|
position: "relative",
|
|
1639
1639
|
size: "sm"
|
|
1640
1640
|
}
|
|
1641
|
-
}),
|
|
1641
|
+
}), Zm = ({ error: e, resetError: t }) => {
|
|
1642
1642
|
const { t: n } = oe();
|
|
1643
1643
|
return /* @__PURE__ */ u(
|
|
1644
1644
|
"div",
|
|
@@ -1831,7 +1831,7 @@ const Jc = {
|
|
|
1831
1831
|
/* @__PURE__ */ u("rect", { x: "4", y: "5", width: "16", height: "5.5", rx: "1" }),
|
|
1832
1832
|
/* @__PURE__ */ u("rect", { x: "4", y: "13.5", width: "16", height: "5.5", rx: "1" })
|
|
1833
1833
|
] })
|
|
1834
|
-
},
|
|
1834
|
+
}, Xm = ({ theme: e }) => /* @__PURE__ */ u("svg", { xmlns: "http://www.w3.org/2000/svg", style: { display: "none" }, children: /* @__PURE__ */ u("defs", { children: Object.entries(Jc).map(([t, n]) => {
|
|
1835
1835
|
var r;
|
|
1836
1836
|
return /* @__PURE__ */ u("symbol", { id: `i-icon-${t}`, children: /* @__PURE__ */ u(
|
|
1837
1837
|
"g",
|
|
@@ -1846,7 +1846,7 @@ const Jc = {
|
|
|
1846
1846
|
) }, t);
|
|
1847
1847
|
}) }) }), J = ({ name: e, ...t }) => /* @__PURE__ */ u("svg", { viewBox: "0 0 24 24", width: 24, height: 24, ...t, children: /* @__PURE__ */ u("use", { href: `#i-icon-${e}` }) }), Aa = (e) => {
|
|
1848
1848
|
const [t, n] = D(!1);
|
|
1849
|
-
return
|
|
1849
|
+
return I(() => {
|
|
1850
1850
|
if (typeof window > "u")
|
|
1851
1851
|
return;
|
|
1852
1852
|
const r = window.matchMedia(e), o = () => n(r.matches);
|
|
@@ -1854,7 +1854,7 @@ const Jc = {
|
|
|
1854
1854
|
}, [e]), t;
|
|
1855
1855
|
}, Qc = (e, { minViewTime: t = 1e3, visibilityThreshold: n = 0, onView: r }) => {
|
|
1856
1856
|
const [o, i] = D(!1);
|
|
1857
|
-
|
|
1857
|
+
I(() => {
|
|
1858
1858
|
if (o || !e.current)
|
|
1859
1859
|
return;
|
|
1860
1860
|
let a;
|
|
@@ -2078,7 +2078,7 @@ const be = (e) => {
|
|
|
2078
2078
|
"job-card-stroke-color-active": e("color.a-9"),
|
|
2079
2079
|
"job-card-stroke-width": be(t).with({ highlights: "stroke", highcontrast: !0 }, () => "1.5px").otherwise(() => "1px")
|
|
2080
2080
|
};
|
|
2081
|
-
}).component(() => ({})), sl = ol({ prefix: "i-" }),
|
|
2081
|
+
}).component(() => ({})), sl = ol({ prefix: "i-" }), Jm = (e) => {
|
|
2082
2082
|
const t = al.from({ theme: e.theme, getToken: sl }), n = Object.entries(t.declarations).map(([o, i]) => `${o}: ${i};`);
|
|
2083
2083
|
return `.inploi-job-search${e.widgetId ? `[data-widget-id="${e.widgetId}"]` : ""} {
|
|
2084
2084
|
${n.concat(n).join(`
|
|
@@ -2371,13 +2371,13 @@ function Ka(e, t) {
|
|
|
2371
2371
|
var n = t(), r = D({ h: { __: n, v: t } }), o = r[0].h, i = r[1];
|
|
2372
2372
|
return We(function() {
|
|
2373
2373
|
o.__ = n, o.v = t, pr(o.__, t()) || i({ h: o });
|
|
2374
|
-
}, [e, n, t]),
|
|
2374
|
+
}, [e, n, t]), I(function() {
|
|
2375
2375
|
return pr(o.__, o.v()) || i({ h: o }), e(function() {
|
|
2376
2376
|
pr(o.__, o.v()) || i({ h: o });
|
|
2377
2377
|
});
|
|
2378
2378
|
}, [e]), n;
|
|
2379
2379
|
}
|
|
2380
|
-
var on = { useState: D, useId: uo, useReducer: Wn, useEffect:
|
|
2380
|
+
var on = { useState: D, useId: uo, useReducer: Wn, useEffect: I, useLayoutEffect: We, useInsertionEffect: qa, useTransition: Ba, useDeferredValue: za, useSyncExternalStore: Ka, startTransition: go, useRef: N, useImperativeHandle: Ca, useMemo: te, useCallback: V, useContext: kt, useDebugValue: lo, version: "17.0.2", Children: Se, render: La, hydrate: Ma, unmountComponentAtNode: Va, createPortal: Na, createElement: O, createContext: dt, createFactory: Fa, cloneElement: Pt, createRef: ca, Fragment: M, isValidElement: pt, findDOMNode: Ha, Component: fe, PureComponent: Dn, memo: ka, forwardRef: K, flushSync: rn, unstable_batchedUpdates: Ua, StrictMode: Wa, Suspense: $t, SuspenseList: bt, lazy: po, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ja };
|
|
2381
2381
|
const Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2382
2382
|
__proto__: null,
|
|
2383
2383
|
Children: Se,
|
|
@@ -2410,7 +2410,7 @@ const Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2410
2410
|
useContext: kt,
|
|
2411
2411
|
useDebugValue: lo,
|
|
2412
2412
|
useDeferredValue: za,
|
|
2413
|
-
useEffect:
|
|
2413
|
+
useEffect: I,
|
|
2414
2414
|
useErrorBoundary: Kc,
|
|
2415
2415
|
useId: uo,
|
|
2416
2416
|
useImperativeHandle: Ca,
|
|
@@ -2654,7 +2654,7 @@ const Tl = () => zr, [Br, qr] = zn && window.addEventListener ? [
|
|
|
2654
2654
|
}, Nl = {
|
|
2655
2655
|
initFocus: Pl,
|
|
2656
2656
|
initReconnect: Rl
|
|
2657
|
-
}, ci = !on.useId, Kt = !zn || "Deno" in window, Il = (e) => Al() ? window.requestAnimationFrame(e) : setTimeout(e, 1), _r = Kt ?
|
|
2657
|
+
}, ci = !on.useId, Kt = !zn || "Deno" in window, Il = (e) => Al() ? window.requestAnimationFrame(e) : setTimeout(e, 1), _r = Kt ? I : We, yr = typeof navigator < "u" && navigator.connection, li = !Kt && yr && ([
|
|
2658
2658
|
"slow-2g",
|
|
2659
2659
|
"2g"
|
|
2660
2660
|
].includes(yr.effectiveType) || yr.saveData), mo = (e) => {
|
|
@@ -2886,8 +2886,8 @@ const di = on.use || ((e) => {
|
|
|
2886
2886
|
}), br = {
|
|
2887
2887
|
dedupe: !0
|
|
2888
2888
|
}, eu = (e, t, n) => {
|
|
2889
|
-
const { cache: r, compare: o, suspense: i, fallbackData: a, revalidateOnMount: s, revalidateIfStale: l, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: c, keepPreviousData: p } = n, [h, v, g, y] = Ne.get(r), [m, _] = mo(e), w = N(!1), b = N(!1), x = N(m), $ = N(t), C = N(n), E = () => C.current, S = () => E().isVisible() && E().isOnline(), [A, k, P, R] = Xa(r, m),
|
|
2890
|
-
for (const ne in
|
|
2889
|
+
const { cache: r, compare: o, suspense: i, fallbackData: a, revalidateOnMount: s, revalidateIfStale: l, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: c, keepPreviousData: p } = n, [h, v, g, y] = Ne.get(r), [m, _] = mo(e), w = N(!1), b = N(!1), x = N(m), $ = N(t), C = N(n), E = () => C.current, S = () => E().isVisible() && E().isOnline(), [A, k, P, R] = Xa(r, m), L = N({}).current, G = j(a) ? n.fallback[m] : a, Z = (U, W) => {
|
|
2890
|
+
for (const ne in L) {
|
|
2891
2891
|
const z = ne;
|
|
2892
2892
|
if (z === "data") {
|
|
2893
2893
|
if (!o(U[z], W[z]) && (!j(U[z]) || !o(Te, W[z])))
|
|
@@ -3056,16 +3056,16 @@ const di = on.use || ((e) => {
|
|
|
3056
3056
|
return {
|
|
3057
3057
|
mutate: ln,
|
|
3058
3058
|
get data() {
|
|
3059
|
-
return
|
|
3059
|
+
return L.data = !0, Te;
|
|
3060
3060
|
},
|
|
3061
3061
|
get error() {
|
|
3062
|
-
return
|
|
3062
|
+
return L.error = !0, it;
|
|
3063
3063
|
},
|
|
3064
3064
|
get isValidating() {
|
|
3065
|
-
return
|
|
3065
|
+
return L.isValidating = !0, tr;
|
|
3066
3066
|
},
|
|
3067
3067
|
get isLoading() {
|
|
3068
|
-
return
|
|
3068
|
+
return L.isLoading = !0, vt;
|
|
3069
3069
|
}
|
|
3070
3070
|
};
|
|
3071
3071
|
}, Gt = Jl(eu), Gr = (e) => {
|
|
@@ -3208,7 +3208,7 @@ function $n(e) {
|
|
|
3208
3208
|
}
|
|
3209
3209
|
function Xe(e) {
|
|
3210
3210
|
const t = N(e);
|
|
3211
|
-
return
|
|
3211
|
+
return I(() => {
|
|
3212
3212
|
t.current = e;
|
|
3213
3213
|
}), te(
|
|
3214
3214
|
() => (...n) => {
|
|
@@ -3242,7 +3242,7 @@ function is({ prop: e, defaultProp: t, onChange: n = () => {
|
|
|
3242
3242
|
}
|
|
3243
3243
|
function iu({ defaultProp: e, onChange: t }) {
|
|
3244
3244
|
const n = D(e), [r] = n, o = N(r), i = Xe(t);
|
|
3245
|
-
return
|
|
3245
|
+
return I(() => {
|
|
3246
3246
|
o.current !== r && (i(r), o.current = r);
|
|
3247
3247
|
}, [
|
|
3248
3248
|
r,
|
|
@@ -3316,7 +3316,7 @@ const lu = [
|
|
|
3316
3316
|
], rt = lu.reduce((e, t) => {
|
|
3317
3317
|
const n = /* @__PURE__ */ K((r, o) => {
|
|
3318
3318
|
const { asChild: i, ...a } = r, s = i ? Bn : t;
|
|
3319
|
-
return
|
|
3319
|
+
return I(() => {
|
|
3320
3320
|
window[Symbol.for("radix-ui")] = !0;
|
|
3321
3321
|
}, []), /* @__PURE__ */ O(s, q({}, a, {
|
|
3322
3322
|
ref: o
|
|
@@ -3334,7 +3334,7 @@ function uu(e, t) {
|
|
|
3334
3334
|
}
|
|
3335
3335
|
function du(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
3336
3336
|
const n = Xe(e);
|
|
3337
|
-
|
|
3337
|
+
I(() => {
|
|
3338
3338
|
const r = (o) => {
|
|
3339
3339
|
o.key === "Escape" && n(o);
|
|
3340
3340
|
};
|
|
@@ -3374,7 +3374,7 @@ const hu = /* @__PURE__ */ dt({
|
|
|
3374
3374
|
}, h);
|
|
3375
3375
|
return du((E) => {
|
|
3376
3376
|
w === f.layers.size - 1 && (o == null || o(E), !E.defaultPrevented && l && (E.preventDefault(), l()));
|
|
3377
|
-
}, h),
|
|
3377
|
+
}, h), I(() => {
|
|
3378
3378
|
if (c)
|
|
3379
3379
|
return r && (f.layersWithOutsidePointerEventsDisabled.size === 0 && (fi = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), f.layersWithOutsidePointerEventsDisabled.add(c)), f.layers.add(c), pi(), () => {
|
|
3380
3380
|
r && f.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = fi);
|
|
@@ -3384,12 +3384,12 @@ const hu = /* @__PURE__ */ dt({
|
|
|
3384
3384
|
h,
|
|
3385
3385
|
r,
|
|
3386
3386
|
f
|
|
3387
|
-
]),
|
|
3387
|
+
]), I(() => () => {
|
|
3388
3388
|
c && (f.layers.delete(c), f.layersWithOutsidePointerEventsDisabled.delete(c), pi());
|
|
3389
3389
|
}, [
|
|
3390
3390
|
c,
|
|
3391
3391
|
f
|
|
3392
|
-
]),
|
|
3392
|
+
]), I(() => {
|
|
3393
3393
|
const E = () => v({});
|
|
3394
3394
|
return document.addEventListener(Zr, E), () => document.removeEventListener(Zr, E);
|
|
3395
3395
|
}, []), /* @__PURE__ */ O(rt.div, q({}, d, {
|
|
@@ -3406,7 +3406,7 @@ const hu = /* @__PURE__ */ dt({
|
|
|
3406
3406
|
function gu(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
3407
3407
|
const n = Xe(e), r = N(!1), o = N(() => {
|
|
3408
3408
|
});
|
|
3409
|
-
return
|
|
3409
|
+
return I(() => {
|
|
3410
3410
|
const i = (s) => {
|
|
3411
3411
|
if (s.target && !r.current) {
|
|
3412
3412
|
let d = function() {
|
|
@@ -3439,7 +3439,7 @@ function gu(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
3439
3439
|
}
|
|
3440
3440
|
function vu(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
3441
3441
|
const n = Xe(e), r = N(!1);
|
|
3442
|
-
return
|
|
3442
|
+
return I(() => {
|
|
3443
3443
|
const o = (i) => {
|
|
3444
3444
|
i.target && !r.current && ss(pu, n, {
|
|
3445
3445
|
originalEvent: i
|
|
@@ -3486,7 +3486,7 @@ const wr = "focusScope.autoFocusOnMount", xr = "focusScope.autoFocusOnUnmount",
|
|
|
3486
3486
|
this.paused = !1;
|
|
3487
3487
|
}
|
|
3488
3488
|
}).current;
|
|
3489
|
-
|
|
3489
|
+
I(() => {
|
|
3490
3490
|
if (r) {
|
|
3491
3491
|
let g = function(w) {
|
|
3492
3492
|
if (h.paused || !s)
|
|
@@ -3520,7 +3520,7 @@ const wr = "focusScope.autoFocusOnMount", xr = "focusScope.autoFocusOnUnmount",
|
|
|
3520
3520
|
r,
|
|
3521
3521
|
s,
|
|
3522
3522
|
h.paused
|
|
3523
|
-
]),
|
|
3523
|
+
]), I(() => {
|
|
3524
3524
|
if (s) {
|
|
3525
3525
|
vi.add(h);
|
|
3526
3526
|
const g = document.activeElement;
|
|
@@ -3686,7 +3686,7 @@ function Eu(e) {
|
|
|
3686
3686
|
MOUNT: "mounted"
|
|
3687
3687
|
}
|
|
3688
3688
|
});
|
|
3689
|
-
return
|
|
3689
|
+
return I(() => {
|
|
3690
3690
|
const d = gn(r.current);
|
|
3691
3691
|
i.current = s === "mounted" ? d : "none";
|
|
3692
3692
|
}, [
|
|
@@ -3733,7 +3733,7 @@ function gn(e) {
|
|
|
3733
3733
|
}
|
|
3734
3734
|
let $r = 0;
|
|
3735
3735
|
function ds() {
|
|
3736
|
-
|
|
3736
|
+
I(() => {
|
|
3737
3737
|
var e, t;
|
|
3738
3738
|
const n = document.querySelectorAll("[data-radix-focus-guard]");
|
|
3739
3739
|
return document.body.insertAdjacentElement("afterbegin", (e = n[0]) !== null && e !== void 0 ? e : _i()), document.body.insertAdjacentElement("beforeend", (t = n[1]) !== null && t !== void 0 ? t : _i()), $r++, () => {
|
|
@@ -3797,7 +3797,7 @@ function Au(e, t) {
|
|
|
3797
3797
|
})[0];
|
|
3798
3798
|
return n.callback = t, n.facade;
|
|
3799
3799
|
}
|
|
3800
|
-
var Tu = typeof window < "u" ? We :
|
|
3800
|
+
var Tu = typeof window < "u" ? We : I, yi = /* @__PURE__ */ new WeakMap();
|
|
3801
3801
|
function ku(e, t) {
|
|
3802
3802
|
var n = Au(t || null, function(r) {
|
|
3803
3803
|
return e.forEach(function(o) {
|
|
@@ -3950,7 +3950,7 @@ var Fu = function() {
|
|
|
3950
3950
|
}, Vu = function() {
|
|
3951
3951
|
var e = Fu();
|
|
3952
3952
|
return function(t, n) {
|
|
3953
|
-
|
|
3953
|
+
I(function() {
|
|
3954
3954
|
return e.add(t), function() {
|
|
3955
3955
|
e.remove();
|
|
3956
3956
|
};
|
|
@@ -4030,7 +4030,7 @@ var Fu = function() {
|
|
|
4030
4030
|
var e = parseInt(document.body.getAttribute(Et) || "0", 10);
|
|
4031
4031
|
return isFinite(e) ? e : 0;
|
|
4032
4032
|
}, qu = function() {
|
|
4033
|
-
|
|
4033
|
+
I(function() {
|
|
4034
4034
|
return document.body.setAttribute(Et, (wi() + 1).toString()), function() {
|
|
4035
4035
|
var e = wi() - 1;
|
|
4036
4036
|
e <= 0 ? document.body.removeAttribute(Et) : document.body.setAttribute(Et, e.toString());
|
|
@@ -4130,9 +4130,9 @@ function od(e) {
|
|
|
4130
4130
|
var t = N([]), n = N([0, 0]), r = N(), o = D(rd++)[0], i = D(function() {
|
|
4131
4131
|
return gs();
|
|
4132
4132
|
})[0], a = N(e);
|
|
4133
|
-
|
|
4133
|
+
I(function() {
|
|
4134
4134
|
a.current = e;
|
|
4135
|
-
}, [e]),
|
|
4135
|
+
}, [e]), I(function() {
|
|
4136
4136
|
if (e.inert) {
|
|
4137
4137
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
4138
4138
|
var g = Cu([e.lockRef.current], (e.shards || []).map(Ei), !0).filter(Boolean);
|
|
@@ -4191,7 +4191,7 @@ function od(e) {
|
|
|
4191
4191
|
}, []), p = V(function(g) {
|
|
4192
4192
|
d(g.type, mn(g), g.target, s(g, e.lockRef.current));
|
|
4193
4193
|
}, []);
|
|
4194
|
-
|
|
4194
|
+
I(function() {
|
|
4195
4195
|
return _t.push(i), e.setCallbacks({
|
|
4196
4196
|
onScrollCapture: c,
|
|
4197
4197
|
onWheelCapture: c,
|
|
@@ -4265,7 +4265,7 @@ var ad = function(e) {
|
|
|
4265
4265
|
return null;
|
|
4266
4266
|
};
|
|
4267
4267
|
};
|
|
4268
|
-
const $s = "Dialog", [Es,
|
|
4268
|
+
const $s = "Dialog", [Es, Qm] = _o($s), [ld, ot] = Es($s), ud = (e) => {
|
|
4269
4269
|
const { __scopeDialog: t, children: n, open: r, defaultOpen: o, onOpenChange: i, modal: a = !0 } = e, s = N(null), l = N(null), [d = !1, f] = is({
|
|
4270
4270
|
prop: r,
|
|
4271
4271
|
defaultProp: o,
|
|
@@ -4357,7 +4357,7 @@ const $s = "Dialog", [Es, Jm] = _o($s), [ld, ot] = Es($s), ud = (e) => {
|
|
|
4357
4357
|
})));
|
|
4358
4358
|
}), _d = /* @__PURE__ */ K((e, t) => {
|
|
4359
4359
|
const n = ot(Yt, e.__scopeDialog), r = N(null), o = Ae(t, n.contentRef, r);
|
|
4360
|
-
return
|
|
4360
|
+
return I(() => {
|
|
4361
4361
|
const i = r.current;
|
|
4362
4362
|
if (i)
|
|
4363
4363
|
return xs(i);
|
|
@@ -4704,12 +4704,12 @@ const Nd = (e) => ({
|
|
|
4704
4704
|
}, h = xo(o), v = wo(h), g = await a.getDimensions(d), y = h === "y", m = y ? "top" : "left", _ = y ? "bottom" : "right", w = y ? "clientHeight" : "clientWidth", b = i.reference[v] + i.reference[h] - p[h] - i.floating[v], x = p[h] - i.reference[h], $ = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(d));
|
|
4705
4705
|
let C = $ ? $[w] : 0;
|
|
4706
4706
|
(!C || !await (a.isElement == null ? void 0 : a.isElement($))) && (C = s.floating[w] || i.floating[v]);
|
|
4707
|
-
const E = b / 2 - x / 2, S = C / 2 - g[v] / 2 - 1, A = Ce(c[m], S), k = Ce(c[_], S), P = A, R = C - g[v] - k,
|
|
4707
|
+
const E = b / 2 - x / 2, S = C / 2 - g[v] / 2 - 1, A = Ce(c[m], S), k = Ce(c[_], S), P = A, R = C - g[v] - k, L = C / 2 - g[v] / 2 + E, G = Qr(P, L, R), Z = !l.arrow && Dt(o) != null && L !== G && i.reference[v] / 2 - (L < P ? A : k) - g[v] / 2 < 0, F = Z ? L < P ? L - P : L - R : 0;
|
|
4708
4708
|
return {
|
|
4709
4709
|
[h]: p[h] + F,
|
|
4710
4710
|
data: {
|
|
4711
4711
|
[h]: G,
|
|
4712
|
-
centerOffset:
|
|
4712
|
+
centerOffset: L - G - F,
|
|
4713
4713
|
...Z && {
|
|
4714
4714
|
alignmentOffset: F
|
|
4715
4715
|
}
|
|
@@ -4746,19 +4746,19 @@ const Nd = (e) => ({
|
|
|
4746
4746
|
const C = [s, ...x], E = await Zt(t, y), S = [];
|
|
4747
4747
|
let A = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
4748
4748
|
if (f && S.push(E[m]), c) {
|
|
4749
|
-
const
|
|
4750
|
-
S.push(E[
|
|
4749
|
+
const L = Ad(o, a, b);
|
|
4750
|
+
S.push(E[L[0]], E[L[1]]);
|
|
4751
4751
|
}
|
|
4752
4752
|
if (A = [...A, {
|
|
4753
4753
|
placement: o,
|
|
4754
4754
|
overflows: S
|
|
4755
|
-
}], !S.every((
|
|
4755
|
+
}], !S.every((L) => L <= 0)) {
|
|
4756
4756
|
var k, P;
|
|
4757
|
-
const
|
|
4757
|
+
const L = (((k = i.flip) == null ? void 0 : k.index) || 0) + 1, G = C[L];
|
|
4758
4758
|
if (G)
|
|
4759
4759
|
return {
|
|
4760
4760
|
data: {
|
|
4761
|
-
index:
|
|
4761
|
+
index: L,
|
|
4762
4762
|
overflows: A
|
|
4763
4763
|
},
|
|
4764
4764
|
reset: {
|
|
@@ -5498,7 +5498,7 @@ const sf = jd, cf = Fd, lf = Id, uf = Hd, df = Ld, Pi = Nd, ff = Vd, pf = (e, t,
|
|
|
5498
5498
|
platform: i
|
|
5499
5499
|
});
|
|
5500
5500
|
};
|
|
5501
|
-
var Sn = typeof document < "u" ? We :
|
|
5501
|
+
var Sn = typeof document < "u" ? We : I;
|
|
5502
5502
|
function Mn(e, t) {
|
|
5503
5503
|
if (e === t)
|
|
5504
5504
|
return !0;
|
|
@@ -5604,7 +5604,7 @@ function hf(e) {
|
|
|
5604
5604
|
P();
|
|
5605
5605
|
}
|
|
5606
5606
|
}, [b, x, P, A, S]);
|
|
5607
|
-
const
|
|
5607
|
+
const L = te(() => ({
|
|
5608
5608
|
reference: $,
|
|
5609
5609
|
floating: C,
|
|
5610
5610
|
setReference: _,
|
|
@@ -5636,10 +5636,10 @@ function hf(e) {
|
|
|
5636
5636
|
return te(() => ({
|
|
5637
5637
|
...f,
|
|
5638
5638
|
update: P,
|
|
5639
|
-
refs:
|
|
5639
|
+
refs: L,
|
|
5640
5640
|
elements: G,
|
|
5641
5641
|
floatingStyles: Z
|
|
5642
|
-
}), [f, P,
|
|
5642
|
+
}), [f, P, L, G, Z]);
|
|
5643
5643
|
}
|
|
5644
5644
|
const gf = (e) => {
|
|
5645
5645
|
function t(n) {
|
|
@@ -5725,17 +5725,17 @@ const Ms = "Popper", [js, Fs] = _o(Ms), [Ef, Vs] = js(Ms), Cf = (e) => {
|
|
|
5725
5725
|
}, n);
|
|
5726
5726
|
}, Sf = "PopperAnchor", Of = /* @__PURE__ */ K((e, t) => {
|
|
5727
5727
|
const { __scopePopper: n, virtualRef: r, ...o } = e, i = Vs(Sf, n), a = N(null), s = Ae(t, a);
|
|
5728
|
-
return
|
|
5728
|
+
return I(() => {
|
|
5729
5729
|
i.onAnchorChange((r == null ? void 0 : r.current) || a.current);
|
|
5730
5730
|
}), r ? null : /* @__PURE__ */ O(rt.div, q({}, o, {
|
|
5731
5731
|
ref: s
|
|
5732
5732
|
}));
|
|
5733
|
-
}), Hs = "PopperContent", [Af,
|
|
5733
|
+
}), Hs = "PopperContent", [Af, e_] = js(Hs), Tf = /* @__PURE__ */ K((e, t) => {
|
|
5734
5734
|
var n, r, o, i, a, s, l, d;
|
|
5735
5735
|
const { __scopePopper: f, side: c = "bottom", sideOffset: p = 0, align: h = "center", alignOffset: v = 0, arrowPadding: g = 0, avoidCollisions: y = !0, collisionBoundary: m = [], collisionPadding: _ = 0, sticky: w = "partial", hideWhenDetached: b = !1, updatePositionStrategy: x = "optimized", onPlaced: $, ...C } = e, E = Vs(Hs, f), [S, A] = D(null), k = Ae(
|
|
5736
5736
|
t,
|
|
5737
5737
|
(z) => A(z)
|
|
5738
|
-
), [P, R] = D(null),
|
|
5738
|
+
), [P, R] = D(null), L = $f(P), G = (n = L == null ? void 0 : L.width) !== null && n !== void 0 ? n : 0, Z = (r = L == null ? void 0 : L.height) !== null && r !== void 0 ? r : 0, F = c + (h !== "center" ? "-" + h : ""), Y = typeof _ == "number" ? _ : {
|
|
5739
5739
|
top: 0,
|
|
5740
5740
|
right: 0,
|
|
5741
5741
|
bottom: 0,
|
|
@@ -5870,7 +5870,7 @@ function Us(e) {
|
|
|
5870
5870
|
n
|
|
5871
5871
|
];
|
|
5872
5872
|
}
|
|
5873
|
-
const Rf = Cf, Df = Of, Nf = Tf, Ws = "Popover", [zs,
|
|
5873
|
+
const Rf = Cf, Df = Of, Nf = Tf, Ws = "Popover", [zs, t_] = _o(Ws, [
|
|
5874
5874
|
Fs
|
|
5875
5875
|
]), So = Fs(), [If, It] = zs(Ws), Lf = (e) => {
|
|
5876
5876
|
const { __scopePopover: t, children: n, open: r, defaultOpen: o, onOpenChange: i, modal: a = !1 } = e, s = So(t), l = N(null), [d, f] = D(!1), [c = !1, p] = is({
|
|
@@ -5941,7 +5941,7 @@ const Rf = Cf, Df = Of, Nf = Tf, Ws = "Popover", [zs, e_] = _o(Ws, [
|
|
|
5941
5941
|
})));
|
|
5942
5942
|
}), Wf = /* @__PURE__ */ K((e, t) => {
|
|
5943
5943
|
const n = It(Jt, e.__scopePopover), r = N(null), o = Ae(t, r), i = N(!1);
|
|
5944
|
-
return
|
|
5944
|
+
return I(() => {
|
|
5945
5945
|
const a = r.current;
|
|
5946
5946
|
if (a)
|
|
5947
5947
|
return xs(a);
|
|
@@ -6718,13 +6718,14 @@ const ih = /* @__PURE__ */ Ya(oh), no = "|", ah = (e, t) => {
|
|
|
6718
6718
|
}, ch = (e) => {
|
|
6719
6719
|
const t = e.get("view");
|
|
6720
6720
|
return t === "list" || t === "map" ? t : "list";
|
|
6721
|
-
},
|
|
6721
|
+
}, n_ = ({ searchParams: e }) => ({ properties: t }) => ({
|
|
6722
6722
|
filters: Fn(ah(t, e), "defaultValue"),
|
|
6723
6723
|
mode: sh(e),
|
|
6724
|
+
geo: lh(e),
|
|
6724
6725
|
page: On(e.get("page")) ?? 1,
|
|
6725
6726
|
view: ch(e),
|
|
6726
6727
|
query: e.get("query") ?? ""
|
|
6727
|
-
}),
|
|
6728
|
+
}), r_ = (e, t) => {
|
|
6728
6729
|
var n, r;
|
|
6729
6730
|
if (e.filters !== void 0) {
|
|
6730
6731
|
const o = Un({
|
|
@@ -6750,7 +6751,7 @@ const ih = /* @__PURE__ */ Ya(oh), no = "|", ah = (e, t) => {
|
|
|
6750
6751
|
const t = Number(e);
|
|
6751
6752
|
if (!Number.isNaN(t))
|
|
6752
6753
|
return t;
|
|
6753
|
-
},
|
|
6754
|
+
}, lh = (e) => {
|
|
6754
6755
|
const t = e.get("lat"), n = e.get("lng"), r = e.get("radius");
|
|
6755
6756
|
if (!t && !n || !t || !n)
|
|
6756
6757
|
return;
|
|
@@ -6761,12 +6762,12 @@ const ih = /* @__PURE__ */ Ya(oh), no = "|", ah = (e, t) => {
|
|
|
6761
6762
|
coords: { lat: o, lng: i },
|
|
6762
6763
|
radius: Number.isNaN(a) ? jn(ro) : a
|
|
6763
6764
|
};
|
|
6764
|
-
},
|
|
6765
|
+
}, uh = (e, t = 1e3) => {
|
|
6765
6766
|
const [n, r] = D(e), o = te(() => ih((i) => r(i), t), [t]);
|
|
6766
|
-
return
|
|
6767
|
+
return I(() => {
|
|
6767
6768
|
o(e);
|
|
6768
6769
|
}, [e, o]), n;
|
|
6769
|
-
},
|
|
6770
|
+
}, dh = K(
|
|
6770
6771
|
({
|
|
6771
6772
|
disabled: e,
|
|
6772
6773
|
error: t,
|
|
@@ -6782,7 +6783,7 @@ const ih = /* @__PURE__ */ Ya(oh), no = "|", ah = (e, t) => {
|
|
|
6782
6783
|
query: c
|
|
6783
6784
|
}, p) => {
|
|
6784
6785
|
const [h, v] = D(!1), [g, y] = D(), { t: m } = oe(), _ = N();
|
|
6785
|
-
|
|
6786
|
+
I(() => {
|
|
6786
6787
|
var b;
|
|
6787
6788
|
y((b = o[0]) == null ? void 0 : b.id);
|
|
6788
6789
|
}, [o]);
|
|
@@ -6877,7 +6878,7 @@ const ih = /* @__PURE__ */ Ya(oh), no = "|", ah = (e, t) => {
|
|
|
6877
6878
|
) : null
|
|
6878
6879
|
] });
|
|
6879
6880
|
}
|
|
6880
|
-
),
|
|
6881
|
+
), fh = (e = {}) => new Promise((t, n) => {
|
|
6881
6882
|
var r, o;
|
|
6882
6883
|
if ((r = e.signal) != null && r.aborted) {
|
|
6883
6884
|
n(new DOMException("Aborted", "AbortError"));
|
|
@@ -6894,11 +6895,11 @@ const ih = /* @__PURE__ */ Ya(oh), no = "|", ah = (e, t) => {
|
|
|
6894
6895
|
},
|
|
6895
6896
|
{ once: !0 }
|
|
6896
6897
|
);
|
|
6897
|
-
}),
|
|
6898
|
+
}), ph = {
|
|
6898
6899
|
1: "geo_error_permission_denied",
|
|
6899
6900
|
2: "geo_error_position_unavailable",
|
|
6900
6901
|
3: "geo_error_timeout"
|
|
6901
|
-
}, Bi = typeof window < "u" && "geolocation" in navigator && window.isSecureContext,
|
|
6902
|
+
}, Bi = typeof window < "u" && "geolocation" in navigator && window.isSecureContext, hh = ({
|
|
6902
6903
|
onLocate: e,
|
|
6903
6904
|
onError: t,
|
|
6904
6905
|
signal: n
|
|
@@ -6915,14 +6916,14 @@ const ih = /* @__PURE__ */ Ya(oh), no = "|", ah = (e, t) => {
|
|
|
6915
6916
|
if (Bi) {
|
|
6916
6917
|
if (o("loading"), i)
|
|
6917
6918
|
return l(i);
|
|
6918
|
-
|
|
6919
|
+
fh({ signal: n }).then((d) => {
|
|
6919
6920
|
const f = { lat: d.latitude, lng: d.longitude };
|
|
6920
6921
|
l(f);
|
|
6921
6922
|
}).catch((d) => {
|
|
6922
6923
|
if (d instanceof DOMException && d.name === "AbortError")
|
|
6923
6924
|
return o("idle");
|
|
6924
6925
|
o("error");
|
|
6925
|
-
const f =
|
|
6926
|
+
const f = ph[d.code];
|
|
6926
6927
|
if (!f)
|
|
6927
6928
|
return;
|
|
6928
6929
|
const c = s(f);
|
|
@@ -6941,7 +6942,7 @@ const ih = /* @__PURE__ */ Ya(oh), no = "|", ah = (e, t) => {
|
|
|
6941
6942
|
children: /* @__PURE__ */ u(J, { name: "target-location" })
|
|
6942
6943
|
}
|
|
6943
6944
|
);
|
|
6944
|
-
},
|
|
6945
|
+
}, gh = "https://api.mapbox.com/search/geocode/v6/forward", vh = "ZzRDWFU0dTZ3SF9aWk9RNGl6QzZaWS5RZmlFak13a0hPbGxXZXlNSGN5RUhObUJ6TXpSV08yUW5OdE5tSTZJU1lpd2lJb1JYYXRObmJ2Tm5iaGhHZWx4V1lpb2pJMUp5ZS5rcA==", mh = (e) => atob(e).split("").reverse().join(""), _h = de({
|
|
6945
6946
|
features: Hn(
|
|
6946
6947
|
Le(
|
|
6947
6948
|
de({
|
|
@@ -6961,32 +6962,32 @@ const ih = /* @__PURE__ */ Ya(oh), no = "|", ah = (e, t) => {
|
|
|
6961
6962
|
(e) => e.properties
|
|
6962
6963
|
)
|
|
6963
6964
|
)
|
|
6964
|
-
}),
|
|
6965
|
+
}), yh = (e, t) => Array.from(new Map(e.map((n) => [typeof t == "function" ? t(n) : n[t], n])).values()), bh = async (e) => {
|
|
6965
6966
|
if (!e)
|
|
6966
6967
|
return [];
|
|
6967
|
-
const t = new URL(
|
|
6968
|
-
t.searchParams.set("q", e), t.searchParams.set("proximity", "ip"), t.searchParams.set("access_token", vh
|
|
6968
|
+
const t = new URL(gh);
|
|
6969
|
+
t.searchParams.set("q", e), t.searchParams.set("proximity", "ip"), t.searchParams.set("access_token", mh(vh));
|
|
6969
6970
|
const n = await fetch(t);
|
|
6970
6971
|
if (!n.ok)
|
|
6971
6972
|
throw new Error("Failed to get address details");
|
|
6972
|
-
const r = co(
|
|
6973
|
+
const r = co(_h, await n.json());
|
|
6973
6974
|
if (r.success === !1)
|
|
6974
6975
|
throw console.error(r.issues), new Error("Invalid data");
|
|
6975
6976
|
const { features: o } = r.output;
|
|
6976
|
-
return
|
|
6977
|
-
},
|
|
6977
|
+
return yh(o, (i) => i.name_preferred + i.place_formatted);
|
|
6978
|
+
}, wh = ({
|
|
6978
6979
|
onSelect: e,
|
|
6979
6980
|
onValueChange: t,
|
|
6980
6981
|
coords: n,
|
|
6981
6982
|
radius: r,
|
|
6982
6983
|
onError: o
|
|
6983
6984
|
}) => {
|
|
6984
|
-
const { t: i } = oe(), [a, s] = D(""), [l, d] = D(), f =
|
|
6985
|
+
const { t: i } = oe(), [a, s] = D(""), [l, d] = D(), f = uh(a, 500), [c, p] = D(new AbortController()), h = Gt(f, bh, {
|
|
6985
6986
|
keepPreviousData: !1,
|
|
6986
6987
|
revalidateIfStale: !1,
|
|
6987
6988
|
revalidateOnFocus: !1
|
|
6988
6989
|
}), { data: v, queryState: g, error: y } = nn(h), [m, _] = D("view"), w = N(null);
|
|
6989
|
-
return
|
|
6990
|
+
return I(() => {
|
|
6990
6991
|
if (m === "edit") {
|
|
6991
6992
|
if (!w.current)
|
|
6992
6993
|
return;
|
|
@@ -7008,7 +7009,7 @@ const ih = /* @__PURE__ */ Ya(oh), no = "|", ah = (e, t) => {
|
|
|
7008
7009
|
children: /* @__PURE__ */ u("div", { class: ut({ size: "sm", variant: "accentStrong", interactive: !0, class: "truncate" }), children: l ?? i("location_provided") })
|
|
7009
7010
|
}
|
|
7010
7011
|
) : /* @__PURE__ */ u(
|
|
7011
|
-
|
|
7012
|
+
dh,
|
|
7012
7013
|
{
|
|
7013
7014
|
ref: w,
|
|
7014
7015
|
error: y,
|
|
@@ -7039,7 +7040,7 @@ const ih = /* @__PURE__ */ Ya(oh), no = "|", ah = (e, t) => {
|
|
|
7039
7040
|
}
|
|
7040
7041
|
),
|
|
7041
7042
|
/* @__PURE__ */ u("div", { class: "absolute bottom-0 right-0 top-0 flex items-center", children: !a && !n ? /* @__PURE__ */ u(
|
|
7042
|
-
|
|
7043
|
+
hh,
|
|
7043
7044
|
{
|
|
7044
7045
|
onLocate: (b) => {
|
|
7045
7046
|
_("view"), d(i("geo_my_location")), t({
|
|
@@ -7068,14 +7069,14 @@ const ih = /* @__PURE__ */ Ya(oh), no = "|", ah = (e, t) => {
|
|
|
7068
7069
|
}
|
|
7069
7070
|
) })
|
|
7070
7071
|
] });
|
|
7071
|
-
},
|
|
7072
|
+
}, xh = [0.25, 0.5, 1, 3, 5, 10, 15, 20, 30, 40], ro = 20, jn = (e) => e * 1609.34, $h = new Intl.NumberFormat(void 0, {
|
|
7072
7073
|
style: "unit",
|
|
7073
7074
|
unit: "mile",
|
|
7074
7075
|
unitDisplay: "long",
|
|
7075
7076
|
maximumFractionDigits: 1,
|
|
7076
7077
|
// @ts-expect-error - CI/CD is not happy with this, though locally it works
|
|
7077
7078
|
trailingZeroDisplay: "stripIfInteger"
|
|
7078
|
-
}),
|
|
7079
|
+
}), Eh = Le(
|
|
7079
7080
|
de({
|
|
7080
7081
|
type: Re("provided"),
|
|
7081
7082
|
lat: De(Le(H(), (e) => Number(e))),
|
|
@@ -7087,7 +7088,7 @@ const ih = /* @__PURE__ */ Ya(oh), no = "|", ah = (e, t) => {
|
|
|
7087
7088
|
type: e.type,
|
|
7088
7089
|
coords: e.lat && e.lng ? { lat: e.lat, lng: e.lng } : void 0
|
|
7089
7090
|
})
|
|
7090
|
-
),
|
|
7091
|
+
), Ch = ({
|
|
7091
7092
|
value: e,
|
|
7092
7093
|
onValueChange: t,
|
|
7093
7094
|
logger: n
|
|
@@ -7098,7 +7099,7 @@ const ih = /* @__PURE__ */ Ya(oh), no = "|", ah = (e, t) => {
|
|
|
7098
7099
|
"form",
|
|
7099
7100
|
{
|
|
7100
7101
|
onChange: (l) => {
|
|
7101
|
-
const d = new FormData(l.currentTarget), f = co(
|
|
7102
|
+
const d = new FormData(l.currentTarget), f = co(Eh, Object.fromEntries(d.entries()));
|
|
7102
7103
|
if (!f.success) {
|
|
7103
7104
|
n.error(f.issues), s(f.issues[0].message);
|
|
7104
7105
|
return;
|
|
@@ -7113,7 +7114,7 @@ const ih = /* @__PURE__ */ Ya(oh), no = "|", ah = (e, t) => {
|
|
|
7113
7114
|
/* @__PURE__ */ u("input", { type: "hidden", name: "lng", value: e.coords.lng })
|
|
7114
7115
|
] }) : null,
|
|
7115
7116
|
/* @__PURE__ */ u(
|
|
7116
|
-
|
|
7117
|
+
wh,
|
|
7117
7118
|
{
|
|
7118
7119
|
coords: (e == null ? void 0 : e.type) === "provided" ? e.coords : void 0,
|
|
7119
7120
|
radius: i,
|
|
@@ -7147,7 +7148,7 @@ const ih = /* @__PURE__ */ Ya(oh), no = "|", ah = (e, t) => {
|
|
|
7147
7148
|
radius: Number(l.currentTarget.value)
|
|
7148
7149
|
});
|
|
7149
7150
|
},
|
|
7150
|
-
children:
|
|
7151
|
+
children: xh.map((l) => /* @__PURE__ */ u("option", { value: jn(l), class: "truncate", children: $h.format(l) }, l))
|
|
7151
7152
|
}
|
|
7152
7153
|
),
|
|
7153
7154
|
/* @__PURE__ */ u("div", { class: "text-copy-neutral-lowcontrast pointer-events-none absolute bottom-0 right-0 top-0 flex w-10 items-center justify-center", children: /* @__PURE__ */ u(J, { name: "chevron-right", class: "h-6 w-6 rotate-90" }) })
|
|
@@ -7167,11 +7168,13 @@ const ih = /* @__PURE__ */ Ya(oh), no = "|", ah = (e, t) => {
|
|
|
7167
7168
|
}
|
|
7168
7169
|
) : null
|
|
7169
7170
|
] });
|
|
7170
|
-
},
|
|
7171
|
+
}, Sh = 2, Oh = ({ value: e, onValueChange: t }) => {
|
|
7171
7172
|
const [n, r] = D(e ?? ""), o = n !== "" && n === e, { t: i } = oe();
|
|
7172
|
-
return
|
|
7173
|
+
return I(() => {
|
|
7174
|
+
r(e ?? "");
|
|
7175
|
+
}, [e]), I(() => {
|
|
7173
7176
|
let a = n.trim();
|
|
7174
|
-
if (a.length <=
|
|
7177
|
+
if (a.length <= Sh && (a = null), a === null) {
|
|
7175
7178
|
t("");
|
|
7176
7179
|
return;
|
|
7177
7180
|
}
|
|
@@ -7230,13 +7233,13 @@ const ih = /* @__PURE__ */ Ya(oh), no = "|", ah = (e, t) => {
|
|
|
7230
7233
|
}
|
|
7231
7234
|
)
|
|
7232
7235
|
] }) });
|
|
7233
|
-
},
|
|
7236
|
+
}, Ah = ({
|
|
7234
7237
|
intervalMs: e,
|
|
7235
7238
|
strings: t,
|
|
7236
7239
|
class: n
|
|
7237
7240
|
}) => {
|
|
7238
7241
|
const [r, o] = D(0), [i, a] = D(!0), s = [...t, t[0]];
|
|
7239
|
-
return
|
|
7242
|
+
return I(() => {
|
|
7240
7243
|
r === s.length && (a(!1), o(0));
|
|
7241
7244
|
const l = setTimeout(() => {
|
|
7242
7245
|
a(!0), o((d) => d + 1);
|
|
@@ -7261,18 +7264,22 @@ const ih = /* @__PURE__ */ Ya(oh), no = "|", ah = (e, t) => {
|
|
|
7261
7264
|
))
|
|
7262
7265
|
}
|
|
7263
7266
|
) });
|
|
7264
|
-
},
|
|
7265
|
-
|
|
7267
|
+
}, Th = (e, t) => {
|
|
7268
|
+
I(() => {
|
|
7266
7269
|
const n = (r) => {
|
|
7267
7270
|
document.activeElement === e.current && t(r);
|
|
7268
7271
|
};
|
|
7269
7272
|
return document.addEventListener("selectionchange", n), () => document.removeEventListener("selectionchange", n);
|
|
7270
7273
|
}, [e, t]);
|
|
7271
|
-
}, qi = 3,
|
|
7272
|
-
const [r, o] = D(e ?? ""), i = r.trim(), a = i !== "" && i === e, { t: s } = oe(), l = i.split("")
|
|
7273
|
-
|
|
7274
|
+
}, qi = 3, kh = ({ value: e, onValueChange: t, options: n }) => {
|
|
7275
|
+
const [r, o] = D(e ?? ""), i = r.trim(), a = i !== "" && i === e, { t: s } = oe(), l = i.split("");
|
|
7276
|
+
I(() => {
|
|
7277
|
+
o(e ?? "");
|
|
7278
|
+
}, [e]);
|
|
7279
|
+
const [d, f] = D(0), c = N(null);
|
|
7280
|
+
return Th(c, (p) => {
|
|
7274
7281
|
p.target instanceof HTMLInputElement && f(p.target.scrollLeft);
|
|
7275
|
-
}),
|
|
7282
|
+
}), I(() => {
|
|
7276
7283
|
let p = r.trim();
|
|
7277
7284
|
if (p.length <= qi && (p = null), p === null) {
|
|
7278
7285
|
t("");
|
|
@@ -7350,7 +7357,7 @@ const ih = /* @__PURE__ */ Ya(oh), no = "|", ah = (e, t) => {
|
|
|
7350
7357
|
i + h
|
|
7351
7358
|
))
|
|
7352
7359
|
}
|
|
7353
|
-
) : n != null && n.suggestions ? /* @__PURE__ */ u(
|
|
7360
|
+
) : n != null && n.suggestions ? /* @__PURE__ */ u(Ah, { intervalMs: 2e3, strings: n.suggestions, class: "opacity-30", "aria-hidden": !0 }) : null
|
|
7354
7361
|
}
|
|
7355
7362
|
),
|
|
7356
7363
|
/* @__PURE__ */ u(
|
|
@@ -7374,32 +7381,32 @@ const ih = /* @__PURE__ */ Ya(oh), no = "|", ah = (e, t) => {
|
|
|
7374
7381
|
/* @__PURE__ */ u("p", { class: "font-family-default text-balance font-style-default text-style-job-card-info text-copy-neutral-lowcontrast", children: s("ai_disclaimer") })
|
|
7375
7382
|
] });
|
|
7376
7383
|
};
|
|
7377
|
-
var
|
|
7378
|
-
function
|
|
7379
|
-
if (
|
|
7384
|
+
var Ph = Array.isArray, Ao = Ph, Rh = Ao, Dh = Xn, Nh = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Ih = /^\w*$/;
|
|
7385
|
+
function Lh(e, t) {
|
|
7386
|
+
if (Rh(e))
|
|
7380
7387
|
return !1;
|
|
7381
7388
|
var n = typeof e;
|
|
7382
|
-
return n == "number" || n == "symbol" || n == "boolean" || e == null ||
|
|
7389
|
+
return n == "number" || n == "symbol" || n == "boolean" || e == null || Dh(e) ? !0 : Ih.test(e) || !Nh.test(e) || t != null && e in Object(t);
|
|
7383
7390
|
}
|
|
7384
|
-
var
|
|
7385
|
-
function
|
|
7386
|
-
if (!
|
|
7391
|
+
var Mh = Lh, jh = Qs, Fh = Yn, Vh = "[object AsyncFunction]", Hh = "[object Function]", Uh = "[object GeneratorFunction]", Wh = "[object Proxy]";
|
|
7392
|
+
function zh(e) {
|
|
7393
|
+
if (!Fh(e))
|
|
7387
7394
|
return !1;
|
|
7388
|
-
var t =
|
|
7389
|
-
return t ==
|
|
7395
|
+
var t = jh(e);
|
|
7396
|
+
return t == Hh || t == Uh || t == Vh || t == Wh;
|
|
7390
7397
|
}
|
|
7391
|
-
var
|
|
7398
|
+
var Bh = zh, qh = Zn, Kh = qh["__core-js_shared__"], Gh = Kh, kr = Gh, Ki = function() {
|
|
7392
7399
|
var e = /[^.]+$/.exec(kr && kr.keys && kr.keys.IE_PROTO || "");
|
|
7393
7400
|
return e ? "Symbol(src)_1." + e : "";
|
|
7394
7401
|
}();
|
|
7395
|
-
function
|
|
7402
|
+
function Yh(e) {
|
|
7396
7403
|
return !!Ki && Ki in e;
|
|
7397
7404
|
}
|
|
7398
|
-
var
|
|
7399
|
-
function
|
|
7405
|
+
var Zh = Yh, Xh = Function.prototype, Jh = Xh.toString;
|
|
7406
|
+
function Qh(e) {
|
|
7400
7407
|
if (e != null) {
|
|
7401
7408
|
try {
|
|
7402
|
-
return
|
|
7409
|
+
return Jh.call(e);
|
|
7403
7410
|
} catch {
|
|
7404
7411
|
}
|
|
7405
7412
|
try {
|
|
@@ -7409,53 +7416,53 @@ function Jh(e) {
|
|
|
7409
7416
|
}
|
|
7410
7417
|
return "";
|
|
7411
7418
|
}
|
|
7412
|
-
var
|
|
7413
|
-
"^" +
|
|
7419
|
+
var eg = Qh, tg = Bh, ng = Zh, rg = Yn, og = eg, ig = /[\\^$.*+?()[\]{}|]/g, ag = /^\[object .+?Constructor\]$/, sg = Function.prototype, cg = Object.prototype, lg = sg.toString, ug = cg.hasOwnProperty, dg = RegExp(
|
|
7420
|
+
"^" + lg.call(ug).replace(ig, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
7414
7421
|
);
|
|
7415
|
-
function
|
|
7416
|
-
if (!
|
|
7422
|
+
function fg(e) {
|
|
7423
|
+
if (!rg(e) || ng(e))
|
|
7417
7424
|
return !1;
|
|
7418
|
-
var t =
|
|
7419
|
-
return t.test(
|
|
7425
|
+
var t = tg(e) ? dg : ag;
|
|
7426
|
+
return t.test(og(e));
|
|
7420
7427
|
}
|
|
7421
|
-
var
|
|
7422
|
-
function
|
|
7428
|
+
var pg = fg;
|
|
7429
|
+
function hg(e, t) {
|
|
7423
7430
|
return e == null ? void 0 : e[t];
|
|
7424
7431
|
}
|
|
7425
|
-
var
|
|
7426
|
-
function
|
|
7427
|
-
var n =
|
|
7428
|
-
return
|
|
7432
|
+
var gg = hg, vg = pg, mg = gg;
|
|
7433
|
+
function _g(e, t) {
|
|
7434
|
+
var n = mg(e, t);
|
|
7435
|
+
return vg(n) ? n : void 0;
|
|
7429
7436
|
}
|
|
7430
|
-
var ec =
|
|
7431
|
-
function
|
|
7437
|
+
var ec = _g, yg = ec, bg = yg(Object, "create"), Jn = bg, Gi = Jn;
|
|
7438
|
+
function wg() {
|
|
7432
7439
|
this.__data__ = Gi ? Gi(null) : {}, this.size = 0;
|
|
7433
7440
|
}
|
|
7434
|
-
var
|
|
7435
|
-
function
|
|
7441
|
+
var xg = wg;
|
|
7442
|
+
function $g(e) {
|
|
7436
7443
|
var t = this.has(e) && delete this.__data__[e];
|
|
7437
7444
|
return this.size -= t ? 1 : 0, t;
|
|
7438
7445
|
}
|
|
7439
|
-
var
|
|
7440
|
-
function
|
|
7446
|
+
var Eg = $g, Cg = Jn, Sg = "__lodash_hash_undefined__", Og = Object.prototype, Ag = Og.hasOwnProperty;
|
|
7447
|
+
function Tg(e) {
|
|
7441
7448
|
var t = this.__data__;
|
|
7442
|
-
if (
|
|
7449
|
+
if (Cg) {
|
|
7443
7450
|
var n = t[e];
|
|
7444
|
-
return n ===
|
|
7451
|
+
return n === Sg ? void 0 : n;
|
|
7445
7452
|
}
|
|
7446
|
-
return
|
|
7453
|
+
return Ag.call(t, e) ? t[e] : void 0;
|
|
7447
7454
|
}
|
|
7448
|
-
var
|
|
7449
|
-
function
|
|
7455
|
+
var kg = Tg, Pg = Jn, Rg = Object.prototype, Dg = Rg.hasOwnProperty;
|
|
7456
|
+
function Ng(e) {
|
|
7450
7457
|
var t = this.__data__;
|
|
7451
|
-
return
|
|
7458
|
+
return Pg ? t[e] !== void 0 : Dg.call(t, e);
|
|
7452
7459
|
}
|
|
7453
|
-
var
|
|
7454
|
-
function
|
|
7460
|
+
var Ig = Ng, Lg = Jn, Mg = "__lodash_hash_undefined__";
|
|
7461
|
+
function jg(e, t) {
|
|
7455
7462
|
var n = this.__data__;
|
|
7456
|
-
return this.size += this.has(e) ? 0 : 1, n[e] =
|
|
7463
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = Lg && t === void 0 ? Mg : t, this;
|
|
7457
7464
|
}
|
|
7458
|
-
var
|
|
7465
|
+
var Fg = jg, Vg = xg, Hg = Eg, Ug = kg, Wg = Ig, zg = Fg;
|
|
7459
7466
|
function Lt(e) {
|
|
7460
7467
|
var t = -1, n = e == null ? 0 : e.length;
|
|
7461
7468
|
for (this.clear(); ++t < n; ) {
|
|
@@ -7463,49 +7470,49 @@ function Lt(e) {
|
|
|
7463
7470
|
this.set(r[0], r[1]);
|
|
7464
7471
|
}
|
|
7465
7472
|
}
|
|
7466
|
-
Lt.prototype.clear =
|
|
7467
|
-
Lt.prototype.delete =
|
|
7468
|
-
Lt.prototype.get =
|
|
7469
|
-
Lt.prototype.has =
|
|
7470
|
-
Lt.prototype.set =
|
|
7471
|
-
var
|
|
7472
|
-
function
|
|
7473
|
+
Lt.prototype.clear = Vg;
|
|
7474
|
+
Lt.prototype.delete = Hg;
|
|
7475
|
+
Lt.prototype.get = Ug;
|
|
7476
|
+
Lt.prototype.has = Wg;
|
|
7477
|
+
Lt.prototype.set = zg;
|
|
7478
|
+
var Bg = Lt;
|
|
7479
|
+
function qg() {
|
|
7473
7480
|
this.__data__ = [], this.size = 0;
|
|
7474
7481
|
}
|
|
7475
|
-
var
|
|
7476
|
-
function
|
|
7482
|
+
var Kg = qg;
|
|
7483
|
+
function Gg(e, t) {
|
|
7477
7484
|
return e === t || e !== e && t !== t;
|
|
7478
7485
|
}
|
|
7479
|
-
var
|
|
7480
|
-
function
|
|
7486
|
+
var Yg = Gg, Zg = Yg;
|
|
7487
|
+
function Xg(e, t) {
|
|
7481
7488
|
for (var n = e.length; n--; )
|
|
7482
|
-
if (
|
|
7489
|
+
if (Zg(e[n][0], t))
|
|
7483
7490
|
return n;
|
|
7484
7491
|
return -1;
|
|
7485
7492
|
}
|
|
7486
|
-
var Qn =
|
|
7487
|
-
function
|
|
7488
|
-
var t = this.__data__, n =
|
|
7493
|
+
var Qn = Xg, Jg = Qn, Qg = Array.prototype, ev = Qg.splice;
|
|
7494
|
+
function tv(e) {
|
|
7495
|
+
var t = this.__data__, n = Jg(t, e);
|
|
7489
7496
|
if (n < 0)
|
|
7490
7497
|
return !1;
|
|
7491
7498
|
var r = t.length - 1;
|
|
7492
|
-
return n == r ? t.pop() :
|
|
7499
|
+
return n == r ? t.pop() : ev.call(t, n, 1), --this.size, !0;
|
|
7493
7500
|
}
|
|
7494
|
-
var
|
|
7495
|
-
function
|
|
7496
|
-
var t = this.__data__, n =
|
|
7501
|
+
var nv = tv, rv = Qn;
|
|
7502
|
+
function ov(e) {
|
|
7503
|
+
var t = this.__data__, n = rv(t, e);
|
|
7497
7504
|
return n < 0 ? void 0 : t[n][1];
|
|
7498
7505
|
}
|
|
7499
|
-
var
|
|
7500
|
-
function
|
|
7501
|
-
return
|
|
7506
|
+
var iv = ov, av = Qn;
|
|
7507
|
+
function sv(e) {
|
|
7508
|
+
return av(this.__data__, e) > -1;
|
|
7502
7509
|
}
|
|
7503
|
-
var
|
|
7504
|
-
function
|
|
7505
|
-
var n = this.__data__, r =
|
|
7510
|
+
var cv = sv, lv = Qn;
|
|
7511
|
+
function uv(e, t) {
|
|
7512
|
+
var n = this.__data__, r = lv(n, e);
|
|
7506
7513
|
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
|
7507
7514
|
}
|
|
7508
|
-
var
|
|
7515
|
+
var dv = uv, fv = Kg, pv = nv, hv = iv, gv = cv, vv = dv;
|
|
7509
7516
|
function Mt(e) {
|
|
7510
7517
|
var t = -1, n = e == null ? 0 : e.length;
|
|
7511
7518
|
for (this.clear(); ++t < n; ) {
|
|
@@ -7513,48 +7520,48 @@ function Mt(e) {
|
|
|
7513
7520
|
this.set(r[0], r[1]);
|
|
7514
7521
|
}
|
|
7515
7522
|
}
|
|
7516
|
-
Mt.prototype.clear =
|
|
7517
|
-
Mt.prototype.delete =
|
|
7518
|
-
Mt.prototype.get =
|
|
7519
|
-
Mt.prototype.has =
|
|
7520
|
-
Mt.prototype.set =
|
|
7521
|
-
var
|
|
7522
|
-
function
|
|
7523
|
+
Mt.prototype.clear = fv;
|
|
7524
|
+
Mt.prototype.delete = pv;
|
|
7525
|
+
Mt.prototype.get = hv;
|
|
7526
|
+
Mt.prototype.has = gv;
|
|
7527
|
+
Mt.prototype.set = vv;
|
|
7528
|
+
var mv = Mt, _v = ec, yv = Zn, bv = _v(yv, "Map"), wv = bv, Yi = Bg, xv = mv, $v = wv;
|
|
7529
|
+
function Ev() {
|
|
7523
7530
|
this.size = 0, this.__data__ = {
|
|
7524
7531
|
hash: new Yi(),
|
|
7525
|
-
map: new (
|
|
7532
|
+
map: new ($v || xv)(),
|
|
7526
7533
|
string: new Yi()
|
|
7527
7534
|
};
|
|
7528
7535
|
}
|
|
7529
|
-
var
|
|
7530
|
-
function
|
|
7536
|
+
var Cv = Ev;
|
|
7537
|
+
function Sv(e) {
|
|
7531
7538
|
var t = typeof e;
|
|
7532
7539
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
7533
7540
|
}
|
|
7534
|
-
var
|
|
7535
|
-
function
|
|
7541
|
+
var Ov = Sv, Av = Ov;
|
|
7542
|
+
function Tv(e, t) {
|
|
7536
7543
|
var n = e.__data__;
|
|
7537
|
-
return
|
|
7544
|
+
return Av(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
7538
7545
|
}
|
|
7539
|
-
var er =
|
|
7540
|
-
function
|
|
7541
|
-
var t =
|
|
7546
|
+
var er = Tv, kv = er;
|
|
7547
|
+
function Pv(e) {
|
|
7548
|
+
var t = kv(this, e).delete(e);
|
|
7542
7549
|
return this.size -= t ? 1 : 0, t;
|
|
7543
7550
|
}
|
|
7544
|
-
var
|
|
7545
|
-
function
|
|
7546
|
-
return
|
|
7551
|
+
var Rv = Pv, Dv = er;
|
|
7552
|
+
function Nv(e) {
|
|
7553
|
+
return Dv(this, e).get(e);
|
|
7547
7554
|
}
|
|
7548
|
-
var
|
|
7549
|
-
function
|
|
7550
|
-
return
|
|
7555
|
+
var Iv = Nv, Lv = er;
|
|
7556
|
+
function Mv(e) {
|
|
7557
|
+
return Lv(this, e).has(e);
|
|
7551
7558
|
}
|
|
7552
|
-
var
|
|
7553
|
-
function
|
|
7554
|
-
var n =
|
|
7559
|
+
var jv = Mv, Fv = er;
|
|
7560
|
+
function Vv(e, t) {
|
|
7561
|
+
var n = Fv(this, e), r = n.size;
|
|
7555
7562
|
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
|
7556
7563
|
}
|
|
7557
|
-
var
|
|
7564
|
+
var Hv = Vv, Uv = Cv, Wv = Rv, zv = Iv, Bv = jv, qv = Hv;
|
|
7558
7565
|
function jt(e) {
|
|
7559
7566
|
var t = -1, n = e == null ? 0 : e.length;
|
|
7560
7567
|
for (this.clear(); ++t < n; ) {
|
|
@@ -7562,15 +7569,15 @@ function jt(e) {
|
|
|
7562
7569
|
this.set(r[0], r[1]);
|
|
7563
7570
|
}
|
|
7564
7571
|
}
|
|
7565
|
-
jt.prototype.clear =
|
|
7566
|
-
jt.prototype.delete =
|
|
7567
|
-
jt.prototype.get =
|
|
7568
|
-
jt.prototype.has =
|
|
7569
|
-
jt.prototype.set =
|
|
7570
|
-
var
|
|
7572
|
+
jt.prototype.clear = Uv;
|
|
7573
|
+
jt.prototype.delete = Wv;
|
|
7574
|
+
jt.prototype.get = zv;
|
|
7575
|
+
jt.prototype.has = Bv;
|
|
7576
|
+
jt.prototype.set = qv;
|
|
7577
|
+
var Kv = jt, tc = Kv, Gv = "Expected a function";
|
|
7571
7578
|
function To(e, t) {
|
|
7572
7579
|
if (typeof e != "function" || t != null && typeof t != "function")
|
|
7573
|
-
throw new TypeError(
|
|
7580
|
+
throw new TypeError(Gv);
|
|
7574
7581
|
var n = function() {
|
|
7575
7582
|
var r = arguments, o = t ? t.apply(this, r) : r[0], i = n.cache;
|
|
7576
7583
|
if (i.has(o))
|
|
@@ -7581,64 +7588,64 @@ function To(e, t) {
|
|
|
7581
7588
|
return n.cache = new (To.Cache || tc)(), n;
|
|
7582
7589
|
}
|
|
7583
7590
|
To.Cache = tc;
|
|
7584
|
-
var
|
|
7585
|
-
function
|
|
7586
|
-
var t =
|
|
7587
|
-
return n.size ===
|
|
7591
|
+
var Yv = To, Zv = Yv, Xv = 500;
|
|
7592
|
+
function Jv(e) {
|
|
7593
|
+
var t = Zv(e, function(r) {
|
|
7594
|
+
return n.size === Xv && n.clear(), r;
|
|
7588
7595
|
}), n = t.cache;
|
|
7589
7596
|
return t;
|
|
7590
7597
|
}
|
|
7591
|
-
var
|
|
7598
|
+
var Qv = Jv, em = Qv, tm = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, nm = /\\(\\)?/g, rm = em(function(e) {
|
|
7592
7599
|
var t = [];
|
|
7593
|
-
return e.charCodeAt(0) === 46 && t.push(""), e.replace(
|
|
7594
|
-
t.push(o ? i.replace(
|
|
7600
|
+
return e.charCodeAt(0) === 46 && t.push(""), e.replace(tm, function(n, r, o, i) {
|
|
7601
|
+
t.push(o ? i.replace(nm, "$1") : r || n);
|
|
7595
7602
|
}), t;
|
|
7596
|
-
}),
|
|
7597
|
-
function
|
|
7603
|
+
}), om = rm;
|
|
7604
|
+
function im(e, t) {
|
|
7598
7605
|
for (var n = -1, r = e == null ? 0 : e.length, o = Array(r); ++n < r; )
|
|
7599
7606
|
o[n] = t(e[n], n, e);
|
|
7600
7607
|
return o;
|
|
7601
7608
|
}
|
|
7602
|
-
var
|
|
7609
|
+
var am = im, Zi = Oo, sm = am, cm = Ao, lm = Xn, um = 1 / 0, Xi = Zi ? Zi.prototype : void 0, Ji = Xi ? Xi.toString : void 0;
|
|
7603
7610
|
function nc(e) {
|
|
7604
7611
|
if (typeof e == "string")
|
|
7605
7612
|
return e;
|
|
7606
|
-
if (sm(e))
|
|
7607
|
-
return am(e, nc) + "";
|
|
7608
7613
|
if (cm(e))
|
|
7614
|
+
return sm(e, nc) + "";
|
|
7615
|
+
if (lm(e))
|
|
7609
7616
|
return Ji ? Ji.call(e) : "";
|
|
7610
7617
|
var t = e + "";
|
|
7611
|
-
return t == "0" && 1 / e == -
|
|
7618
|
+
return t == "0" && 1 / e == -um ? "-0" : t;
|
|
7612
7619
|
}
|
|
7613
|
-
var
|
|
7614
|
-
function
|
|
7615
|
-
return e == null ? "" :
|
|
7620
|
+
var dm = nc, fm = dm;
|
|
7621
|
+
function pm(e) {
|
|
7622
|
+
return e == null ? "" : fm(e);
|
|
7616
7623
|
}
|
|
7617
|
-
var
|
|
7618
|
-
function
|
|
7619
|
-
return
|
|
7624
|
+
var hm = pm, gm = Ao, vm = Mh, mm = om, _m = hm;
|
|
7625
|
+
function ym(e, t) {
|
|
7626
|
+
return gm(e) ? e : vm(e, t) ? [e] : mm(_m(e));
|
|
7620
7627
|
}
|
|
7621
|
-
var
|
|
7622
|
-
function
|
|
7623
|
-
if (typeof e == "string" ||
|
|
7628
|
+
var bm = ym, wm = Xn, xm = 1 / 0;
|
|
7629
|
+
function $m(e) {
|
|
7630
|
+
if (typeof e == "string" || wm(e))
|
|
7624
7631
|
return e;
|
|
7625
7632
|
var t = e + "";
|
|
7626
|
-
return t == "0" && 1 / e == -
|
|
7633
|
+
return t == "0" && 1 / e == -xm ? "-0" : t;
|
|
7627
7634
|
}
|
|
7628
|
-
var
|
|
7629
|
-
function
|
|
7630
|
-
t =
|
|
7635
|
+
var Em = $m, Cm = bm, Sm = Em;
|
|
7636
|
+
function Om(e, t) {
|
|
7637
|
+
t = Cm(t, e);
|
|
7631
7638
|
for (var n = 0, r = t.length; e != null && n < r; )
|
|
7632
|
-
e = e[
|
|
7639
|
+
e = e[Sm(t[n++])];
|
|
7633
7640
|
return n && n == r ? e : void 0;
|
|
7634
7641
|
}
|
|
7635
|
-
var
|
|
7636
|
-
function
|
|
7637
|
-
var r = e == null ? void 0 :
|
|
7642
|
+
var Am = Om, Tm = Am;
|
|
7643
|
+
function km(e, t, n) {
|
|
7644
|
+
var r = e == null ? void 0 : Tm(e, t);
|
|
7638
7645
|
return r === void 0 ? n : r;
|
|
7639
7646
|
}
|
|
7640
|
-
var
|
|
7641
|
-
const
|
|
7647
|
+
var Pm = km;
|
|
7648
|
+
const Rm = /* @__PURE__ */ Ya(Pm), zt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
7642
7649
|
"span",
|
|
7643
7650
|
{
|
|
7644
7651
|
style: { width: e + "ch" },
|
|
@@ -7653,7 +7660,7 @@ const Pm = /* @__PURE__ */ Ya(km), zt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
7653
7660
|
}
|
|
7654
7661
|
},
|
|
7655
7662
|
defaultVariants: { interactive: !0 }
|
|
7656
|
-
}),
|
|
7663
|
+
}), Dm = pe({
|
|
7657
7664
|
base: "font-style-job-heading font-weight-job-heading text-copy-neutral font-family-job-heading text-pretty",
|
|
7658
7665
|
variants: {
|
|
7659
7666
|
size: {
|
|
@@ -7670,9 +7677,9 @@ const Pm = /* @__PURE__ */ Ya(km), zt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
7670
7677
|
}) => {
|
|
7671
7678
|
if (!t)
|
|
7672
7679
|
return null;
|
|
7673
|
-
const n =
|
|
7680
|
+
const n = Rm(e.raw, t.key);
|
|
7674
7681
|
return t.transform ? t.transform(n) : n;
|
|
7675
|
-
},
|
|
7682
|
+
}, Nm = ({
|
|
7676
7683
|
job: e,
|
|
7677
7684
|
config: t = "hidden"
|
|
7678
7685
|
}) => t === "hidden" ? null : /* @__PURE__ */ u("div", { class: "rounded-logo h-12 flex-none overflow-hidden", style: { aspectRatio: t.replace(":", "/") }, children: e.company.logo ? /* @__PURE__ */ u(
|
|
@@ -7682,7 +7689,7 @@ const Pm = /* @__PURE__ */ Ya(km), zt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
7682
7689
|
alt: e.company.name,
|
|
7683
7690
|
class: "h-full w-full select-none object-contain [-webkit-user-drag:none]"
|
|
7684
7691
|
}
|
|
7685
|
-
) : null }), Qi = (e) => Array.isArray(e) ? e : [e],
|
|
7692
|
+
) : null }), Qi = (e) => Array.isArray(e) ? e : [e], Im = 1e3 * 60 * 60 * 24, oc = ({
|
|
7686
7693
|
job: e,
|
|
7687
7694
|
config: t,
|
|
7688
7695
|
onJobClick: n,
|
|
@@ -7691,7 +7698,7 @@ const Pm = /* @__PURE__ */ Ya(km), zt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
7691
7698
|
var h, v, g;
|
|
7692
7699
|
const { t: o } = oe(), i = t.subheading ? Pr({ job: e, property: t.subheading }) : null, a = t.infoTags.flatMap((y) => Qi(Pr({ job: e, property: y }))).filter(Boolean), s = Qi(
|
|
7693
7700
|
(h = t.overrides) != null && h.salary ? Pr({ job: e, property: t.overrides.salary }) : e.pay
|
|
7694
|
-
).filter(Boolean), l = t.postedDate ?? "show", d = (v = t.overrides) != null && v.baseUrl ? t.overrides.baseUrl(e.id.toString()) : e.href, f = t.newUnderDays ?? 7, c = e.createdAt ? new Date(e.createdAt).getTime() > Date.now() - f *
|
|
7701
|
+
).filter(Boolean), l = t.postedDate ?? "show", d = (v = t.overrides) != null && v.baseUrl ? t.overrides.baseUrl(e.id.toString()) : e.href, f = t.newUnderDays ?? 7, c = e.createdAt ? new Date(e.createdAt).getTime() > Date.now() - f * Im : !1, p = (y) => {
|
|
7695
7702
|
var m, _;
|
|
7696
7703
|
n == null || n(e), (_ = (m = t.overrides) == null ? void 0 : m.onClick) == null || _.call(m, y);
|
|
7697
7704
|
};
|
|
@@ -7706,14 +7713,14 @@ const Pm = /* @__PURE__ */ Ya(km), zt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
7706
7713
|
children: [
|
|
7707
7714
|
/* @__PURE__ */ u("div", { class: "flex min-w-0 flex-1 flex-col gap-4", children: [
|
|
7708
7715
|
/* @__PURE__ */ u("div", { class: "gap-logo flex items-center", children: [
|
|
7709
|
-
/* @__PURE__ */ u(
|
|
7716
|
+
/* @__PURE__ */ u(Nm, { job: e, config: r !== "sm" ? t.logo : void 0 }),
|
|
7710
7717
|
/* @__PURE__ */ u("div", { class: "flex flex-col items-start gap-1", children: [
|
|
7711
7718
|
/* @__PURE__ */ u("div", { class: "order-2 flex flex-col gap-1", children: [
|
|
7712
7719
|
e.match ? /* @__PURE__ */ u("p", { class: "text-style-job-card text-tag-accent-strong-bg flex items-center ", children: [
|
|
7713
7720
|
/* @__PURE__ */ u(J, { name: "ai", class: "size-4 inline-block" }),
|
|
7714
7721
|
/* @__PURE__ */ u("span", { children: e.match })
|
|
7715
7722
|
] }) : null,
|
|
7716
|
-
/* @__PURE__ */ u("p", { class:
|
|
7723
|
+
/* @__PURE__ */ u("p", { class: Dm({ size: r }), children: [
|
|
7717
7724
|
e.title.trim(),
|
|
7718
7725
|
c && l !== "hide" && /* @__PURE__ */ u(M, { children: [
|
|
7719
7726
|
" ",
|
|
@@ -7784,7 +7791,7 @@ const Pm = /* @__PURE__ */ Ya(km), zt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
7784
7791
|
] }),
|
|
7785
7792
|
/* @__PURE__ */ u("div", { "aria-hidden": !0, class: "flex items-center", children: /* @__PURE__ */ u(J, { name: "chevron-right", class: "text-copy-neutral-icon" }) })
|
|
7786
7793
|
] });
|
|
7787
|
-
},
|
|
7794
|
+
}, Lm = ({
|
|
7788
7795
|
state: e,
|
|
7789
7796
|
fetchNextPage: t,
|
|
7790
7797
|
config: n,
|
|
@@ -7804,7 +7811,7 @@ const Pm = /* @__PURE__ */ Ya(km), zt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
7804
7811
|
]
|
|
7805
7812
|
}
|
|
7806
7813
|
);
|
|
7807
|
-
},
|
|
7814
|
+
}, Mm = ({
|
|
7808
7815
|
state: e,
|
|
7809
7816
|
apiClient: t,
|
|
7810
7817
|
logger: n,
|
|
@@ -7818,7 +7825,7 @@ const Pm = /* @__PURE__ */ Ya(km), zt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
7818
7825
|
}) => /* @__PURE__ */ u(M, { children: Array.from({ length: e.page }).map((f, c) => {
|
|
7819
7826
|
const p = c === e.page - 1;
|
|
7820
7827
|
return /* @__PURE__ */ u(Rn, { Fallback: Ve, children: /* @__PURE__ */ u(
|
|
7821
|
-
|
|
7828
|
+
jm,
|
|
7822
7829
|
{
|
|
7823
7830
|
state: e,
|
|
7824
7831
|
apiClient: t,
|
|
@@ -7859,7 +7866,7 @@ const Pm = /* @__PURE__ */ Ya(km), zt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
7859
7866
|
]
|
|
7860
7867
|
}
|
|
7861
7868
|
);
|
|
7862
|
-
},
|
|
7869
|
+
}, jm = ({
|
|
7863
7870
|
state: e,
|
|
7864
7871
|
apiClient: t,
|
|
7865
7872
|
logger: n,
|
|
@@ -7886,7 +7893,7 @@ const Pm = /* @__PURE__ */ Ya(km), zt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
7886
7893
|
{ ...Pn, fallbackData: h }
|
|
7887
7894
|
)
|
|
7888
7895
|
);
|
|
7889
|
-
switch (
|
|
7896
|
+
switch (I(() => {
|
|
7890
7897
|
v && o && d && d({
|
|
7891
7898
|
totalCount: v.pagination.total
|
|
7892
7899
|
});
|
|
@@ -7933,7 +7940,7 @@ const Pm = /* @__PURE__ */ Ya(km), zt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
7933
7940
|
$.id
|
|
7934
7941
|
)) }),
|
|
7935
7942
|
_ && i && /* @__PURE__ */ u(
|
|
7936
|
-
|
|
7943
|
+
Lm,
|
|
7937
7944
|
{
|
|
7938
7945
|
state: y,
|
|
7939
7946
|
fetchNextPage: a,
|
|
@@ -7946,7 +7953,7 @@ const Pm = /* @__PURE__ */ Ya(km), zt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
7946
7953
|
default:
|
|
7947
7954
|
wt(y);
|
|
7948
7955
|
}
|
|
7949
|
-
},
|
|
7956
|
+
}, Fm = po(() => import("./map-35ac5de1.js").then((e) => e.Map)), Vm = ({
|
|
7950
7957
|
state: e,
|
|
7951
7958
|
apiClient: t,
|
|
7952
7959
|
logger: n,
|
|
@@ -7986,7 +7993,7 @@ const Pm = /* @__PURE__ */ Ya(km), zt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
7986
7993
|
] }),
|
|
7987
7994
|
/* @__PURE__ */ u("div", { class: "theme-fill:bg-neutral-2 theme-stroke:bg-lowest ring-px theme-fill:ring-neutral-3 theme-stroke:ring-neutral-3 theme-soft:rounded-lg theme-rounded:rounded-xl relative flex h-auto flex-col items-stretch overflow-hidden md:h-[70svh] md:flex-row", children: [
|
|
7988
7995
|
/* @__PURE__ */ u("div", { class: "md:min-w-80 aspect-square flex-1 md:order-2 md:aspect-auto", children: v ? /* @__PURE__ */ u($t, { fallback: /* @__PURE__ */ u("div", { class: "animate-skeleton bg-neutral-6 h-full w-full" }), children: /* @__PURE__ */ u(
|
|
7989
|
-
|
|
7996
|
+
Fm,
|
|
7990
7997
|
{
|
|
7991
7998
|
config: r,
|
|
7992
7999
|
mapData: h,
|
|
@@ -8033,7 +8040,7 @@ const Pm = /* @__PURE__ */ Ya(km), zt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
8033
8040
|
defaultVariants: {
|
|
8034
8041
|
active: !1
|
|
8035
8042
|
}
|
|
8036
|
-
}),
|
|
8043
|
+
}), Hm = ({ value: e, onValueChange: t }) => {
|
|
8037
8044
|
const { t: n } = oe();
|
|
8038
8045
|
return /* @__PURE__ */ u("div", { class: "bg-neutral-3 rounded-interactive ring-neutral-3 mr-[3px] inline-flex ring-[3px]", children: [
|
|
8039
8046
|
/* @__PURE__ */ u(
|
|
@@ -8063,9 +8070,9 @@ const Pm = /* @__PURE__ */ Ya(km), zt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
8063
8070
|
}
|
|
8064
8071
|
)
|
|
8065
8072
|
] });
|
|
8066
|
-
},
|
|
8067
|
-
const t = e.state.view, n = e.mapConfig && e.mapConfig.enabled ? /* @__PURE__ */ u(
|
|
8068
|
-
return t === "list" ? /* @__PURE__ */ u(
|
|
8073
|
+
}, Um = (e) => {
|
|
8074
|
+
const t = e.state.view, n = e.mapConfig && e.mapConfig.enabled ? /* @__PURE__ */ u(Hm, { value: t, onValueChange: e.onViewChange }) : null;
|
|
8075
|
+
return t === "list" ? /* @__PURE__ */ u(Mm, { afterResults: n, ...e }) : /* @__PURE__ */ u(Vm, { ...e, afterResults: n });
|
|
8069
8076
|
}, Fn = (e, t = "value") => e.reduce(
|
|
8070
8077
|
(n, r) => {
|
|
8071
8078
|
switch (r.select) {
|
|
@@ -8108,7 +8115,7 @@ const Pm = /* @__PURE__ */ Ya(km), zt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
8108
8115
|
var C, E, S, A;
|
|
8109
8116
|
const { t: s } = oe(), l = N(null), d = te(() => Fn(n, "defaultValue"), [n]), [f, c] = D(!0), [p, h] = D(
|
|
8110
8117
|
() => typeof a.initialState == "function" ? a.initialState(a) : a.initialState
|
|
8111
|
-
), [v, g] = D(0), { onJobClick: y, analyticsPaginate: m } =
|
|
8118
|
+
), [v, g] = D(0), { onJobClick: y, analyticsPaginate: m } = Wm({
|
|
8112
8119
|
appRef: l,
|
|
8113
8120
|
analytics: r,
|
|
8114
8121
|
state: p,
|
|
@@ -8139,8 +8146,8 @@ const Pm = /* @__PURE__ */ Ya(km), zt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
8139
8146
|
if (!P.query && !k || P.query === k)
|
|
8140
8147
|
return P;
|
|
8141
8148
|
c(!1);
|
|
8142
|
-
const R = na(P.geo),
|
|
8143
|
-
return i == null || i(
|
|
8149
|
+
const R = na(P.geo), L = { ...P, query: k, geo: R, page: 1 };
|
|
8150
|
+
return i == null || i(L), L;
|
|
8144
8151
|
});
|
|
8145
8152
|
},
|
|
8146
8153
|
[i]
|
|
@@ -8179,18 +8186,18 @@ const Pm = /* @__PURE__ */ Ya(km), zt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
8179
8186
|
/* @__PURE__ */ u("section", { class: "flex flex-1 flex-col gap-1", children: [
|
|
8180
8187
|
/* @__PURE__ */ u("p", { class: "text-style-filter text-copy-neutral font-style-filter font-weight-filter", children: s("search_label") }),
|
|
8181
8188
|
(E = a.naturalLanguageSearch) != null && E.enabled ? /* @__PURE__ */ u(
|
|
8182
|
-
|
|
8189
|
+
kh,
|
|
8183
8190
|
{
|
|
8184
8191
|
value: p.query,
|
|
8185
8192
|
onValueChange: b,
|
|
8186
8193
|
options: a.naturalLanguageSearch
|
|
8187
8194
|
}
|
|
8188
|
-
) : a.enableKeywordSearch ? /* @__PURE__ */ u(
|
|
8195
|
+
) : a.enableKeywordSearch ? /* @__PURE__ */ u(Oh, { value: p.query, onValueChange: b }) : null
|
|
8189
8196
|
] }),
|
|
8190
8197
|
(S = a.geolocation) != null && S.enabled ? /* @__PURE__ */ u("section", { class: "flex flex-1 flex-col gap-1", children: [
|
|
8191
8198
|
/* @__PURE__ */ u("p", { class: "text-style-filter text-copy-neutral font-style-filter font-weight-filter", children: s("geo_label") }),
|
|
8192
8199
|
/* @__PURE__ */ u(
|
|
8193
|
-
|
|
8200
|
+
Ch,
|
|
8194
8201
|
{
|
|
8195
8202
|
value: p.geo,
|
|
8196
8203
|
onValueChange: (k) => {
|
|
@@ -8210,7 +8217,7 @@ const Pm = /* @__PURE__ */ Ya(km), zt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
8210
8217
|
state: p,
|
|
8211
8218
|
onFilterValueChange: (k, P) => {
|
|
8212
8219
|
c(!1), h((R) => {
|
|
8213
|
-
const
|
|
8220
|
+
const L = { ...R.filters, [k]: P }, G = na(R.geo), Z = { ...R, filters: L, geo: G, page: 1 };
|
|
8214
8221
|
return i == null || i(Z), Z;
|
|
8215
8222
|
}), m(1);
|
|
8216
8223
|
},
|
|
@@ -8226,7 +8233,7 @@ const Pm = /* @__PURE__ */ Ya(km), zt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
8226
8233
|
] }) }),
|
|
8227
8234
|
/* @__PURE__ */ u("section", { class: "flex flex-col gap-4 overflow-hidden px-4 py-4", children: [
|
|
8228
8235
|
/* @__PURE__ */ u(Rn, { Fallback: Ve, children: /* @__PURE__ */ u(
|
|
8229
|
-
|
|
8236
|
+
Um,
|
|
8230
8237
|
{
|
|
8231
8238
|
state: p,
|
|
8232
8239
|
logger: t,
|
|
@@ -8252,7 +8259,7 @@ const Pm = /* @__PURE__ */ Ya(km), zt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
8252
8259
|
]
|
|
8253
8260
|
}
|
|
8254
8261
|
);
|
|
8255
|
-
},
|
|
8262
|
+
}, Wm = ({
|
|
8256
8263
|
appRef: e,
|
|
8257
8264
|
analytics: t,
|
|
8258
8265
|
state: n,
|
|
@@ -8280,7 +8287,7 @@ const Pm = /* @__PURE__ */ Ya(km), zt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
8280
8287
|
properties: a()
|
|
8281
8288
|
});
|
|
8282
8289
|
}
|
|
8283
|
-
}),
|
|
8290
|
+
}), I(() => {
|
|
8284
8291
|
const d = window.setTimeout(() => {
|
|
8285
8292
|
i && (!n.query && !Object.keys(Rr(n.filters)).length || o !== 0 && t.log({
|
|
8286
8293
|
event: "SEARCH_SETTLE",
|
|
@@ -8308,31 +8315,32 @@ const Pm = /* @__PURE__ */ Ya(km), zt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
8308
8315
|
export {
|
|
8309
8316
|
Bt as D,
|
|
8310
8317
|
ga as E,
|
|
8311
|
-
|
|
8312
|
-
|
|
8313
|
-
|
|
8314
|
-
|
|
8318
|
+
Xm as I,
|
|
8319
|
+
Bm as J,
|
|
8320
|
+
qm as T,
|
|
8321
|
+
Zm as U,
|
|
8315
8322
|
N as _,
|
|
8316
|
-
|
|
8323
|
+
Jm as a,
|
|
8317
8324
|
o_ as b,
|
|
8318
|
-
|
|
8325
|
+
Km as c,
|
|
8319
8326
|
Rn as d,
|
|
8320
8327
|
fn as e,
|
|
8321
|
-
|
|
8328
|
+
Rr as f,
|
|
8322
8329
|
Uc as g,
|
|
8323
|
-
|
|
8330
|
+
Ya as h,
|
|
8324
8331
|
cc as i,
|
|
8325
|
-
|
|
8332
|
+
D as j,
|
|
8326
8333
|
M as k,
|
|
8327
8334
|
T as l,
|
|
8328
|
-
|
|
8329
|
-
|
|
8335
|
+
uh as m,
|
|
8336
|
+
ah as n,
|
|
8330
8337
|
u as o,
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8338
|
+
I as p,
|
|
8339
|
+
sh as q,
|
|
8340
|
+
ch as r,
|
|
8334
8341
|
n_ as s,
|
|
8335
8342
|
r_ as t,
|
|
8336
8343
|
oe as u,
|
|
8344
|
+
lh as v,
|
|
8337
8345
|
O as y
|
|
8338
8346
|
};
|