@inploi/plugin-job-search 9.0.6 → 9.0.8
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 +5 -5
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/{job-search-BuJXxqg5.js → job-search-C1jNeCI0.js} +767 -752
- package/dist/{job-search-DrIU6k4s.cjs → job-search-TQDgitmM.cjs} +4 -4
- package/dist/{map-L8acskTU.js → map-BdK-wTC4.js} +2 -2
- package/dist/{map-DuverqEg.cjs → map-CA2GQNlw.cjs} +1 -1
- package/dist/{mapbox-gl-BeylbDW0.js → mapbox-gl-DU8p4eb-.js} +1 -1
- package/dist/{mapbox-gl-BiqULfJh.cjs → mapbox-gl-SSZZLm3u.cjs} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/package.json +2 -2
|
@@ -128,8 +128,8 @@ function Mn() {
|
|
|
128
128
|
Mn.__r = 0;
|
|
129
129
|
}
|
|
130
130
|
function Fa(e, t, n, r, o, i, a, s, c, d, f) {
|
|
131
|
-
var l, h, p,
|
|
132
|
-
for (c = sl(n, t,
|
|
131
|
+
var l, h, p, m, g, y, v, _ = r && r.__k || Ln, b = t.length;
|
|
132
|
+
for (c = sl(n, t, _, c, b), l = 0; l < b; l++) (p = n.__k[l]) != null && (h = p.__i != -1 && _[p.__i] || Dn, p.__i = l, y = xo(e, p, h, o, i, a, s, c, d, f), m = p.__e, p.ref && h.ref != p.ref && (h.ref && $o(h.ref, null, p), f.push(p.ref, p.__c || m, p)), g == null && m != null && (g = m), (v = !!(4 & p.__u)) || h.__k === p.__k ? c = Va(p, c, e, v) : typeof p.type == "function" && y !== void 0 ? c = y : m && (c = m.nextSibling), p.__u &= -7);
|
|
133
133
|
return n.__e = g, c;
|
|
134
134
|
}
|
|
135
135
|
function sl(e, t, n, r, o) {
|
|
@@ -195,37 +195,37 @@ function ii(e) {
|
|
|
195
195
|
};
|
|
196
196
|
}
|
|
197
197
|
function xo(e, t, n, r, o, i, a, s, c, d) {
|
|
198
|
-
var f, l, h, p,
|
|
198
|
+
var f, l, h, p, m, g, y, v, _, b, w, $, x, C, S, E = t.type;
|
|
199
199
|
if (t.constructor !== void 0) return null;
|
|
200
200
|
128 & n.__u && (c = !!(32 & n.__u), i = [s = t.__e = n.__e]), (f = j.__b) && f(t);
|
|
201
|
-
e: if (typeof
|
|
202
|
-
if (
|
|
201
|
+
e: if (typeof E == "function") try {
|
|
202
|
+
if (v = t.props, _ = "prototype" in E && E.prototype.render, b = (f = E.contextType) && r[f.__c], w = f ? b ? b.props.value : f.__ : r, n.__c ? y = (l = t.__c = n.__c).__ = l.__E : (_ ? t.__c = l = new E(v, w) : (t.__c = l = new ve(v, w), l.constructor = E, l.render = ul), b && b.sub(l), l.state || (l.state = {}), l.__n = r, h = l.__d = !0, l.__h = [], l._sb = []), _ && l.__s == null && (l.__s = l.state), _ && E.getDerivedStateFromProps != null && (l.__s == l.state && (l.__s = ke({}, l.__s)), ke(l.__s, E.getDerivedStateFromProps(v, l.__s))), p = l.props, m = l.state, l.__v = t, h) _ && E.getDerivedStateFromProps == null && l.componentWillMount != null && l.componentWillMount(), _ && l.componentDidMount != null && l.__h.push(l.componentDidMount);
|
|
203
203
|
else {
|
|
204
|
-
if (
|
|
205
|
-
t.__v != n.__v && (l.props =
|
|
206
|
-
|
|
204
|
+
if (_ && E.getDerivedStateFromProps == null && v !== p && l.componentWillReceiveProps != null && l.componentWillReceiveProps(v, w), t.__v == n.__v || !l.__e && l.shouldComponentUpdate != null && l.shouldComponentUpdate(v, l.__s, w) === !1) {
|
|
205
|
+
t.__v != n.__v && (l.props = v, l.state = l.__s, l.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(P) {
|
|
206
|
+
P && (P.__ = t);
|
|
207
207
|
}), Ln.push.apply(l.__h, l._sb), l._sb = [], l.__h.length && a.push(l);
|
|
208
208
|
break e;
|
|
209
209
|
}
|
|
210
|
-
l.componentWillUpdate != null && l.componentWillUpdate(
|
|
211
|
-
l.componentDidUpdate(p,
|
|
210
|
+
l.componentWillUpdate != null && l.componentWillUpdate(v, l.__s, w), _ && l.componentDidUpdate != null && l.__h.push(function() {
|
|
211
|
+
l.componentDidUpdate(p, m, g);
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
|
-
if (l.context =
|
|
214
|
+
if (l.context = w, l.props = v, l.__P = e, l.__e = !1, $ = j.__r, x = 0, _) l.state = l.__s, l.__d = !1, $ && $(t), f = l.render(l.props, l.state, l.context), Ln.push.apply(l.__h, l._sb), l._sb = [];
|
|
215
215
|
else do
|
|
216
|
-
l.__d = !1,
|
|
217
|
-
while (l.__d &&
|
|
218
|
-
l.state = l.__s, l.getChildContext != null && (r = ke(ke({}, r), l.getChildContext())),
|
|
219
|
-
} catch (
|
|
220
|
-
if (t.__v = null, c || i != null) if (
|
|
216
|
+
l.__d = !1, $ && $(t), f = l.render(l.props, l.state, l.context), l.state = l.__s;
|
|
217
|
+
while (l.__d && ++x < 25);
|
|
218
|
+
l.state = l.__s, l.getChildContext != null && (r = ke(ke({}, r), l.getChildContext())), _ && !h && l.getSnapshotBeforeUpdate != null && (g = l.getSnapshotBeforeUpdate(p, m)), C = f != null && f.type === H && f.key == null ? Ua(f.props.children) : f, s = Fa(e, tn(C) ? C : [C], t, n, r, o, i, a, s, c, d), l.base = t.__e, t.__u &= -161, l.__h.length && a.push(l), y && (l.__E = l.__ = null);
|
|
219
|
+
} catch (P) {
|
|
220
|
+
if (t.__v = null, c || i != null) if (P.then) {
|
|
221
221
|
for (t.__u |= c ? 160 : 128; s && s.nodeType == 8 && s.nextSibling; ) s = s.nextSibling;
|
|
222
222
|
i[i.indexOf(s)] = null, t.__e = s;
|
|
223
223
|
} else {
|
|
224
|
-
for (
|
|
224
|
+
for (S = i.length; S--; ) wo(i[S]);
|
|
225
225
|
zr(t);
|
|
226
226
|
}
|
|
227
|
-
else t.__e = n.__e, t.__k = n.__k,
|
|
228
|
-
j.__e(
|
|
227
|
+
else t.__e = n.__e, t.__k = n.__k, P.then || zr(t);
|
|
228
|
+
j.__e(P, t, n);
|
|
229
229
|
}
|
|
230
230
|
else i == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : s = t.__e = ll(n.__e, t, n, r, o, i, a, c, d);
|
|
231
231
|
return (f = j.diffed) && f(t), 128 & t.__u ? void 0 : s;
|
|
@@ -249,25 +249,25 @@ function Ua(e) {
|
|
|
249
249
|
return typeof e != "object" || e == null || e.__b > 0 ? e : tn(e) ? e.map(Ua) : ke({}, e);
|
|
250
250
|
}
|
|
251
251
|
function ll(e, t, n, r, o, i, a, s, c) {
|
|
252
|
-
var d, f, l, h, p,
|
|
253
|
-
if (
|
|
254
|
-
for (d = 0; d < i.length; d++) if ((p = i[d]) && "setAttribute" in p == !!
|
|
252
|
+
var d, f, l, h, p, m, g, y = n.props || Dn, v = t.props, _ = t.type;
|
|
253
|
+
if (_ == "svg" ? o = "http://www.w3.org/2000/svg" : _ == "math" ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), i != null) {
|
|
254
|
+
for (d = 0; d < i.length; d++) if ((p = i[d]) && "setAttribute" in p == !!_ && (_ ? p.localName == _ : p.nodeType == 3)) {
|
|
255
255
|
e = p, i[d] = null;
|
|
256
256
|
break;
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
if (e == null) {
|
|
260
|
-
if (
|
|
261
|
-
e = document.createElementNS(o,
|
|
260
|
+
if (_ == null) return document.createTextNode(v);
|
|
261
|
+
e = document.createElementNS(o, _, v.is && v), s && (j.__m && j.__m(t, i), s = !1), i = null;
|
|
262
262
|
}
|
|
263
|
-
if (
|
|
263
|
+
if (_ == null) y === v || s && e.data == v || (e.data = v);
|
|
264
264
|
else {
|
|
265
265
|
if (i = i && en.call(e.childNodes), !s && i != null) for (y = {}, d = 0; d < e.attributes.length; d++) y[(p = e.attributes[d]).name] = p.value;
|
|
266
|
-
for (d in y) p = y[d], d == "dangerouslySetInnerHTML" ? l = p : d == "children" || d in
|
|
267
|
-
for (d in
|
|
266
|
+
for (d in y) p = y[d], d == "dangerouslySetInnerHTML" ? l = p : d == "children" || d in v || d == "value" && "defaultValue" in v || d == "checked" && "defaultChecked" in v || fn(e, d, null, p, o);
|
|
267
|
+
for (d in v) p = v[d], d == "children" ? h = p : d == "dangerouslySetInnerHTML" ? f = p : d == "value" ? m = p : d == "checked" ? g = p : s && typeof p != "function" || y[d] === p || fn(e, d, p, y[d], o);
|
|
268
268
|
if (f) s || l && (f.__html == l.__html || f.__html == e.innerHTML) || (e.innerHTML = f.__html), t.__k = [];
|
|
269
|
-
else if (l && (e.innerHTML = ""), Fa(t.type == "template" ? e.content : e, tn(h) ? h : [h], t, n, r,
|
|
270
|
-
s || (d = "value",
|
|
269
|
+
else if (l && (e.innerHTML = ""), Fa(t.type == "template" ? e.content : e, tn(h) ? h : [h], t, n, r, _ == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, a, i ? i[0] : n.__k && Tt(n, 0), s, c), i != null) for (d = i.length; d--; ) wo(i[d]);
|
|
270
|
+
s || (d = "value", _ == "progress" && m == null ? e.removeAttribute("value") : m != null && (m !== e[d] || _ == "progress" && !m || _ == "option" && m != y[d]) && fn(e, d, m, y[d], o), d = "checked", g != null && g != e[d] && fn(e, d, g, y[d], o));
|
|
271
271
|
}
|
|
272
272
|
return e;
|
|
273
273
|
}
|
|
@@ -1127,7 +1127,7 @@ function ft(e, t) {
|
|
|
1127
1127
|
var n = q.__H || (q.__H = { __: [], __h: [] });
|
|
1128
1128
|
return e >= n.__.length && n.__.push({}), n.__[e];
|
|
1129
1129
|
}
|
|
1130
|
-
function
|
|
1130
|
+
function M(e) {
|
|
1131
1131
|
return Pt = 1, on(os, e);
|
|
1132
1132
|
}
|
|
1133
1133
|
function on(e, t, n) {
|
|
@@ -1207,7 +1207,7 @@ function Yn(e, t) {
|
|
|
1207
1207
|
ee.useDebugValue && ee.useDebugValue(t ? t(e) : e);
|
|
1208
1208
|
}
|
|
1209
1209
|
function Al(e) {
|
|
1210
|
-
var t = ft(He++, 10), n =
|
|
1210
|
+
var t = ft(He++, 10), n = M();
|
|
1211
1211
|
return t.__ = e, q.componentDidCatch || (q.componentDidCatch = function(r, o) {
|
|
1212
1212
|
t.__ && t.__(r, o), n[1](r);
|
|
1213
1213
|
}), [n[0], function() {
|
|
@@ -1346,7 +1346,7 @@ var Dl = ["other", "few", "many", "two", "one", "zero"], _i = ({
|
|
|
1346
1346
|
locale: n
|
|
1347
1347
|
}) => _i({ terms: e, overrides: t, locale: n })
|
|
1348
1348
|
});
|
|
1349
|
-
const { TranslationProvider: Y_, useTranslation:
|
|
1349
|
+
const { TranslationProvider: Y_, useTranslation: re, createTFunction: Z_, defaultTerms: X_ } = Ll({
|
|
1350
1350
|
type_to_search_jobs: "Type to search jobs",
|
|
1351
1351
|
type_to_search: "Type to search",
|
|
1352
1352
|
jobs_found: { one: "{{count}} job found", other: "{{count}} jobs found" },
|
|
@@ -1454,18 +1454,18 @@ const bi = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Nl =
|
|
|
1454
1454
|
var a;
|
|
1455
1455
|
if ((o == null ? void 0 : o.variants) == null) return t(o == null ? void 0 : o.base, i == null ? void 0 : i.class, i == null ? void 0 : i.className);
|
|
1456
1456
|
const { variants: s, defaultVariants: c } = o, d = Object.keys(s).map((h) => {
|
|
1457
|
-
const p = i == null ? void 0 : i[h],
|
|
1457
|
+
const p = i == null ? void 0 : i[h], m = c == null ? void 0 : c[h], g = bi(p) || bi(m);
|
|
1458
1458
|
return s[h][g];
|
|
1459
1459
|
}), f = { ...c, ...i && Object.entries(i).reduce((h, p) => {
|
|
1460
|
-
let [
|
|
1461
|
-
return typeof g > "u" ? h : { ...h, [
|
|
1460
|
+
let [m, g] = p;
|
|
1461
|
+
return typeof g > "u" ? h : { ...h, [m]: g };
|
|
1462
1462
|
}, {}) }, l = o == null || (a = o.compoundVariants) === null || a === void 0 ? void 0 : a.reduce((h, p) => {
|
|
1463
|
-
let { class:
|
|
1464
|
-
return Object.entries(y).every((
|
|
1465
|
-
let [
|
|
1466
|
-
const
|
|
1467
|
-
return Array.isArray(
|
|
1468
|
-
}) ? [...h,
|
|
1463
|
+
let { class: m, className: g, ...y } = p;
|
|
1464
|
+
return Object.entries(y).every((v) => {
|
|
1465
|
+
let [_, b] = v;
|
|
1466
|
+
const w = f[_];
|
|
1467
|
+
return Array.isArray(b) ? b.includes(w) : w === b;
|
|
1468
|
+
}) ? [...h, m, g] : h;
|
|
1469
1469
|
}, []);
|
|
1470
1470
|
return t(o == null ? void 0 : o.base, d, l, i == null ? void 0 : i.class, i == null ? void 0 : i.className);
|
|
1471
1471
|
}, cx: t };
|
|
@@ -1541,7 +1541,7 @@ const bi = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Nl =
|
|
|
1541
1541
|
]
|
|
1542
1542
|
}
|
|
1543
1543
|
), et = ({ error: e, resetError: t, class: n, ...r }) => {
|
|
1544
|
-
const { t: o } =
|
|
1544
|
+
const { t: o } = re();
|
|
1545
1545
|
return N(() => {
|
|
1546
1546
|
e.cause instanceof qc.SchemaValidation && console.error(e.message, e.cause.issues);
|
|
1547
1547
|
}, [e]), /* @__PURE__ */ u(
|
|
@@ -1723,7 +1723,7 @@ function Gr(e, t) {
|
|
|
1723
1723
|
return !1;
|
|
1724
1724
|
}
|
|
1725
1725
|
function To(e, t) {
|
|
1726
|
-
var n = t(), r =
|
|
1726
|
+
var n = t(), r = M({ t: { __: n, u: t } }), o = r[0].t, i = r[1];
|
|
1727
1727
|
return Re(function() {
|
|
1728
1728
|
o.__ = n, o.u = t, mr(o) && i({ t: o });
|
|
1729
1729
|
}, [e, n, t]), N(function() {
|
|
@@ -1978,7 +1978,7 @@ j.diffed = function(e) {
|
|
|
1978
1978
|
};
|
|
1979
1979
|
var gs = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
1980
1980
|
return Mo.__n[e.__c].props.value;
|
|
1981
|
-
}, useCallback: U, useContext: Ke, useDebugValue: Yn, useDeferredValue: Po, useEffect: N, useId: Zn, useImperativeHandle: Oo, useInsertionEffect: Do, useLayoutEffect: Re, useMemo: K, useReducer: on, useRef: A, useState:
|
|
1981
|
+
}, useCallback: U, useContext: Ke, useDebugValue: Yn, useDeferredValue: Po, useEffect: N, useId: Zn, useImperativeHandle: Oo, useInsertionEffect: Do, useLayoutEffect: Re, useMemo: K, useReducer: on, useRef: A, useState: M, useSyncExternalStore: To, useTransition: Ro } } }, Xl = "18.3.1";
|
|
1982
1982
|
function vs(e) {
|
|
1983
1983
|
return O.bind(null, e);
|
|
1984
1984
|
}
|
|
@@ -2004,7 +2004,7 @@ var ws = function(e, t) {
|
|
|
2004
2004
|
return e(t);
|
|
2005
2005
|
}, an = function(e, t) {
|
|
2006
2006
|
return e(t);
|
|
2007
|
-
}, xs = H, $s = We, sn = { useState:
|
|
2007
|
+
}, xs = H, $s = We, sn = { useState: M, useId: Zn, useReducer: on, useEffect: N, useLayoutEffect: Re, useInsertionEffect: Do, useTransition: Ro, useDeferredValue: Po, useSyncExternalStore: To, startTransition: Ao, useRef: A, useImperativeHandle: Oo, useMemo: K, useCallback: U, useContext: Ke, useDebugValue: Yn, version: "18.3.1", Children: Ae, render: ps, hydrate: hs, unmountComponentAtNode: ys, createPortal: ds, createElement: O, createContext: Qe, createFactory: vs, cloneElement: Nt, createRef: Ia, Fragment: H, isValidElement: We, isElement: $s, isFragment: ms, isMemo: _s, findDOMNode: bs, Component: ve, PureComponent: Fn, memo: ss, forwardRef: Z, flushSync: an, unstable_batchedUpdates: ws, StrictMode: xs, Suspense: Ct, SuspenseList: xt, lazy: Lo, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: gs };
|
|
2008
2008
|
const Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2009
2009
|
__proto__: null,
|
|
2010
2010
|
Children: Ae,
|
|
@@ -2049,7 +2049,7 @@ const Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2049
2049
|
useMemo: K,
|
|
2050
2050
|
useReducer: on,
|
|
2051
2051
|
useRef: A,
|
|
2052
|
-
useState:
|
|
2052
|
+
useState: M,
|
|
2053
2053
|
useSyncExternalStore: To,
|
|
2054
2054
|
useTransition: Ro,
|
|
2055
2055
|
version: Xl
|
|
@@ -2094,7 +2094,7 @@ function Ql() {
|
|
|
2094
2094
|
}
|
|
2095
2095
|
var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, i = e.useLayoutEffect, a = e.useDebugValue;
|
|
2096
2096
|
function s(l, h) {
|
|
2097
|
-
var p = h(),
|
|
2097
|
+
var p = h(), m = r({ inst: { value: p, getSnapshot: h } }), g = m[0].inst, y = m[1];
|
|
2098
2098
|
return i(
|
|
2099
2099
|
function() {
|
|
2100
2100
|
g.value = p, g.getSnapshot = h, c(g) && y({ inst: g });
|
|
@@ -2129,50 +2129,50 @@ var yr = {};
|
|
|
2129
2129
|
var Ai;
|
|
2130
2130
|
function eu() {
|
|
2131
2131
|
return Ai || (Ai = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
2132
|
-
function e(p,
|
|
2133
|
-
return p ===
|
|
2132
|
+
function e(p, m) {
|
|
2133
|
+
return p === m && (p !== 0 || 1 / p === 1 / m) || p !== p && m !== m;
|
|
2134
2134
|
}
|
|
2135
|
-
function t(p,
|
|
2135
|
+
function t(p, m) {
|
|
2136
2136
|
f || o.startTransition === void 0 || (f = !0, console.error(
|
|
2137
2137
|
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
2138
2138
|
));
|
|
2139
|
-
var g =
|
|
2139
|
+
var g = m();
|
|
2140
2140
|
if (!l) {
|
|
2141
|
-
var y =
|
|
2141
|
+
var y = m();
|
|
2142
2142
|
i(g, y) || (console.error(
|
|
2143
2143
|
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
2144
2144
|
), l = !0);
|
|
2145
2145
|
}
|
|
2146
2146
|
y = a({
|
|
2147
|
-
inst: { value: g, getSnapshot:
|
|
2147
|
+
inst: { value: g, getSnapshot: m }
|
|
2148
2148
|
});
|
|
2149
|
-
var
|
|
2149
|
+
var v = y[0].inst, _ = y[1];
|
|
2150
2150
|
return c(
|
|
2151
2151
|
function() {
|
|
2152
|
-
|
|
2152
|
+
v.value = g, v.getSnapshot = m, n(v) && _({ inst: v });
|
|
2153
2153
|
},
|
|
2154
|
-
[p, g,
|
|
2154
|
+
[p, g, m]
|
|
2155
2155
|
), s(
|
|
2156
2156
|
function() {
|
|
2157
|
-
return n(
|
|
2158
|
-
n(
|
|
2157
|
+
return n(v) && _({ inst: v }), p(function() {
|
|
2158
|
+
n(v) && _({ inst: v });
|
|
2159
2159
|
});
|
|
2160
2160
|
},
|
|
2161
2161
|
[p]
|
|
2162
2162
|
), d(g), g;
|
|
2163
2163
|
}
|
|
2164
2164
|
function n(p) {
|
|
2165
|
-
var
|
|
2165
|
+
var m = p.getSnapshot;
|
|
2166
2166
|
p = p.value;
|
|
2167
2167
|
try {
|
|
2168
|
-
var g =
|
|
2168
|
+
var g = m();
|
|
2169
2169
|
return !i(p, g);
|
|
2170
2170
|
} catch {
|
|
2171
2171
|
return !0;
|
|
2172
2172
|
}
|
|
2173
2173
|
}
|
|
2174
|
-
function r(p,
|
|
2175
|
-
return
|
|
2174
|
+
function r(p, m) {
|
|
2175
|
+
return m();
|
|
2176
2176
|
}
|
|
2177
2177
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
2178
2178
|
var o = Ss, i = typeof Object.is == "function" ? Object.is : e, a = o.useState, s = o.useEffect, c = o.useLayoutEffect, d = o.useDebugValue, f = !1, l = !1, h = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
|
|
@@ -2204,10 +2204,10 @@ function Zr(e, t) {
|
|
|
2204
2204
|
return e !== e && t !== t;
|
|
2205
2205
|
}
|
|
2206
2206
|
const Ne = /* @__PURE__ */ new WeakMap(), Ie = () => {
|
|
2207
|
-
},
|
|
2207
|
+
}, ie = (
|
|
2208
2208
|
/*#__NOINLINE__*/
|
|
2209
2209
|
Ie()
|
|
2210
|
-
), Vn = Object, V = (e) => e ===
|
|
2210
|
+
), Vn = Object, V = (e) => e === ie, be = (e) => typeof e == "function", ze = (e, t) => ({
|
|
2211
2211
|
...e,
|
|
2212
2212
|
...t
|
|
2213
2213
|
}), As = (e) => be(e.then), br = {}, gn = {}, No = "undefined", cn = typeof window != No, Xr = typeof document != No, tu = cn && "Deno" in window, nu = () => cn && typeof window.requestAnimationFrame != No, Ps = (e, t) => {
|
|
@@ -2307,8 +2307,8 @@ async function Rs(...e) {
|
|
|
2307
2307
|
let c = i.optimisticData;
|
|
2308
2308
|
const d = (h) => typeof s == "function" ? s(h) : s !== !1, f = i.throwOnError;
|
|
2309
2309
|
if (be(n)) {
|
|
2310
|
-
const h = n, p = [],
|
|
2311
|
-
for (const g of
|
|
2310
|
+
const h = n, p = [], m = t.keys();
|
|
2311
|
+
for (const g of m)
|
|
2312
2312
|
// Skip the special useSWRInfinite and useSWRSubscription keys.
|
|
2313
2313
|
!/^\$(inf|sub)\$/.test(g) && h(t.get(g)._k) && p.push(g);
|
|
2314
2314
|
return Promise.all(p.map(l));
|
|
@@ -2317,61 +2317,61 @@ async function Rs(...e) {
|
|
|
2317
2317
|
async function l(h) {
|
|
2318
2318
|
const [p] = Io(h);
|
|
2319
2319
|
if (!p) return;
|
|
2320
|
-
const [
|
|
2321
|
-
const
|
|
2322
|
-
return (be(i.revalidate) ? i.revalidate(
|
|
2320
|
+
const [m, g] = Ps(t, p), [y, v, _, b] = Ne.get(t), w = () => {
|
|
2321
|
+
const L = y[p];
|
|
2322
|
+
return (be(i.revalidate) ? i.revalidate(m().data, h) : i.revalidate !== !1) && (delete _[p], delete b[p], L && L[0]) ? L[0](Ts).then(() => m().data) : m().data;
|
|
2323
2323
|
};
|
|
2324
2324
|
if (e.length < 3)
|
|
2325
|
-
return
|
|
2326
|
-
let
|
|
2327
|
-
const
|
|
2328
|
-
|
|
2329
|
-
|
|
2325
|
+
return w();
|
|
2326
|
+
let $ = r, x, C = !1;
|
|
2327
|
+
const S = no();
|
|
2328
|
+
v[p] = [
|
|
2329
|
+
S,
|
|
2330
2330
|
0
|
|
2331
2331
|
];
|
|
2332
|
-
const
|
|
2333
|
-
if (
|
|
2332
|
+
const E = !V(c), P = m(), F = P.data, T = P._c, I = V(T) ? F : T;
|
|
2333
|
+
if (E && (c = be(c) ? c(I, F) : c, g({
|
|
2334
2334
|
data: c,
|
|
2335
2335
|
_c: I
|
|
2336
|
-
})), be(
|
|
2336
|
+
})), be($))
|
|
2337
2337
|
try {
|
|
2338
|
-
|
|
2339
|
-
} catch (
|
|
2340
|
-
|
|
2338
|
+
$ = $(I);
|
|
2339
|
+
} catch (L) {
|
|
2340
|
+
x = L, C = !0;
|
|
2341
2341
|
}
|
|
2342
|
-
if (
|
|
2343
|
-
if (
|
|
2344
|
-
|
|
2345
|
-
}),
|
|
2346
|
-
if (
|
|
2347
|
-
return
|
|
2348
|
-
} else
|
|
2342
|
+
if ($ && As($))
|
|
2343
|
+
if ($ = await $.catch((L) => {
|
|
2344
|
+
x = L, C = !0;
|
|
2345
|
+
}), S !== v[p][0]) {
|
|
2346
|
+
if (C) throw x;
|
|
2347
|
+
return $;
|
|
2348
|
+
} else C && E && d(x) && (a = !0, g({
|
|
2349
2349
|
data: I,
|
|
2350
|
-
_c:
|
|
2350
|
+
_c: ie
|
|
2351
2351
|
}));
|
|
2352
|
-
if (a && !
|
|
2352
|
+
if (a && !C)
|
|
2353
2353
|
if (be(a)) {
|
|
2354
|
-
const
|
|
2354
|
+
const L = a($, I);
|
|
2355
2355
|
g({
|
|
2356
|
-
data:
|
|
2357
|
-
error:
|
|
2358
|
-
_c:
|
|
2356
|
+
data: L,
|
|
2357
|
+
error: ie,
|
|
2358
|
+
_c: ie
|
|
2359
2359
|
});
|
|
2360
2360
|
} else
|
|
2361
2361
|
g({
|
|
2362
|
-
data:
|
|
2363
|
-
error:
|
|
2364
|
-
_c:
|
|
2362
|
+
data: $,
|
|
2363
|
+
error: ie,
|
|
2364
|
+
_c: ie
|
|
2365
2365
|
});
|
|
2366
|
-
if (
|
|
2366
|
+
if (v[p][1] = no(), Promise.resolve(w()).then(() => {
|
|
2367
2367
|
g({
|
|
2368
|
-
_c:
|
|
2368
|
+
_c: ie
|
|
2369
2369
|
});
|
|
2370
|
-
}),
|
|
2371
|
-
if (f) throw
|
|
2370
|
+
}), C) {
|
|
2371
|
+
if (f) throw x;
|
|
2372
2372
|
return;
|
|
2373
2373
|
}
|
|
2374
|
-
return
|
|
2374
|
+
return $;
|
|
2375
2375
|
}
|
|
2376
2376
|
}
|
|
2377
2377
|
const Ni = (e, t) => {
|
|
@@ -2379,7 +2379,7 @@ const Ni = (e, t) => {
|
|
|
2379
2379
|
e[n][0] && e[n][0](t);
|
|
2380
2380
|
}, Ds = (e, t) => {
|
|
2381
2381
|
if (!Ne.has(e)) {
|
|
2382
|
-
const n = ze(cu, t), r = /* @__PURE__ */ Object.create(null), o = Rs.bind(
|
|
2382
|
+
const n = ze(cu, t), r = /* @__PURE__ */ Object.create(null), o = Rs.bind(ie, e);
|
|
2383
2383
|
let i = Ie;
|
|
2384
2384
|
const a = /* @__PURE__ */ Object.create(null), s = (f, l) => {
|
|
2385
2385
|
const h = a[f] || [];
|
|
@@ -2388,8 +2388,8 @@ const Ni = (e, t) => {
|
|
|
2388
2388
|
e.set(f, l);
|
|
2389
2389
|
const p = a[f];
|
|
2390
2390
|
if (p)
|
|
2391
|
-
for (const
|
|
2392
|
-
|
|
2391
|
+
for (const m of p)
|
|
2392
|
+
m(l, h);
|
|
2393
2393
|
}, d = () => {
|
|
2394
2394
|
if (!Ne.has(e) && (Ne.set(e, [
|
|
2395
2395
|
r,
|
|
@@ -2400,7 +2400,7 @@ const Ni = (e, t) => {
|
|
|
2400
2400
|
c,
|
|
2401
2401
|
s
|
|
2402
2402
|
]), !Et)) {
|
|
2403
|
-
const f = n.initFocus(setTimeout.bind(
|
|
2403
|
+
const f = n.initFocus(setTimeout.bind(ie, Ni.bind(ie, r, Os))), l = n.initReconnect(setTimeout.bind(ie, Ni.bind(ie, r, ks)));
|
|
2404
2404
|
i = () => {
|
|
2405
2405
|
f && f(), l && l(), Ne.delete(e);
|
|
2406
2406
|
};
|
|
@@ -2463,7 +2463,7 @@ const Ni = (e, t) => {
|
|
|
2463
2463
|
r,
|
|
2464
2464
|
n,
|
|
2465
2465
|
o
|
|
2466
|
-
]), a = o && o.provider, s = A(
|
|
2466
|
+
]), a = o && o.provider, s = A(ie);
|
|
2467
2467
|
a && !s.current && (s.current = Ds(a(i.cache || jo), o));
|
|
2468
2468
|
const c = s.current;
|
|
2469
2469
|
return c && (i.cache = c[0], i.mutate = c[1]), Sn(() => {
|
|
@@ -2529,9 +2529,9 @@ const $r = sn.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
2529
2529
|
}
|
|
2530
2530
|
}), Cr = {
|
|
2531
2531
|
dedupe: !0
|
|
2532
|
-
}, Ii = Promise.resolve(
|
|
2533
|
-
const { cache: r, compare: o, suspense: i, fallbackData: a, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: l, keepPreviousData: h, strictServerPrefetchWarning: p } = n, [
|
|
2534
|
-
for (const J in
|
|
2532
|
+
}, Ii = Promise.resolve(ie), Su = () => Ie, Ou = (e, t, n) => {
|
|
2533
|
+
const { cache: r, compare: o, suspense: i, fallbackData: a, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: l, keepPreviousData: h, strictServerPrefetchWarning: p } = n, [m, g, y, v] = Ne.get(r), [_, b] = Io(e), w = A(!1), $ = A(!1), x = A(_), C = A(t), S = A(n), E = () => S.current, P = () => E().isVisible() && E().isOnline(), [F, T, I, L] = Ps(r, _), D = A({}).current, R = V(a) ? V(n.fallback) ? ie : n.fallback[_] : a, k = (B, X) => {
|
|
2534
|
+
for (const J in D) {
|
|
2535
2535
|
const Q = J;
|
|
2536
2536
|
if (Q === "data") {
|
|
2537
2537
|
if (!o(B[Q], X[Q]) && (!V(B[Q]) || !o(_e, X[Q])))
|
|
@@ -2540,13 +2540,13 @@ const $r = sn.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
2540
2540
|
return !1;
|
|
2541
2541
|
}
|
|
2542
2542
|
return !0;
|
|
2543
|
-
}, z = !
|
|
2544
|
-
const B = F(), X =
|
|
2543
|
+
}, z = !w.current, W = K(() => {
|
|
2544
|
+
const B = F(), X = L(), J = (ne) => {
|
|
2545
2545
|
const ye = ze(ne);
|
|
2546
2546
|
return delete ye._k, (() => {
|
|
2547
|
-
if (!
|
|
2547
|
+
if (!_ || !t || E().isPaused()) return !1;
|
|
2548
2548
|
if (z && !V(s)) return s;
|
|
2549
|
-
const qt = V(
|
|
2549
|
+
const qt = V(R) ? ye.data : R;
|
|
2550
2550
|
return V(qt) || c;
|
|
2551
2551
|
})() ? {
|
|
2552
2552
|
isValidating: !0,
|
|
@@ -2554,75 +2554,75 @@ const $r = sn.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
2554
2554
|
...ye
|
|
2555
2555
|
} : ye;
|
|
2556
2556
|
}, Q = J(B), fe = B === X ? Q : J(X);
|
|
2557
|
-
let
|
|
2557
|
+
let oe = Q;
|
|
2558
2558
|
return [
|
|
2559
2559
|
() => {
|
|
2560
2560
|
const ne = J(F());
|
|
2561
|
-
return k(ne,
|
|
2561
|
+
return k(ne, oe) ? (oe.data = ne.data, oe.isLoading = ne.isLoading, oe.isValidating = ne.isValidating, oe.error = ne.error, oe) : (oe = ne, ne);
|
|
2562
2562
|
},
|
|
2563
2563
|
() => fe
|
|
2564
2564
|
];
|
|
2565
2565
|
}, [
|
|
2566
2566
|
r,
|
|
2567
|
-
|
|
2567
|
+
_
|
|
2568
2568
|
]), se = Pi.useSyncExternalStore(U(
|
|
2569
|
-
(B) => I(
|
|
2569
|
+
(B) => I(_, (X, J) => {
|
|
2570
2570
|
k(J, X) || B();
|
|
2571
2571
|
}),
|
|
2572
2572
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2573
2573
|
[
|
|
2574
2574
|
r,
|
|
2575
|
-
|
|
2575
|
+
_
|
|
2576
2576
|
]
|
|
2577
|
-
), W[0], W[1]), pt =
|
|
2577
|
+
), W[0], W[1]), pt = m[_] && m[_].length > 0, Ye = se.data, Ce = V(Ye) ? R && As(R) ? $r(R) : R : Ye, ht = se.error, Ze = A(Ce), _e = h ? V(Ye) ? V(Ze.current) ? Ce : Ze.current : Ye : Ce, Ee = _ && V(Ce), at = A(null);
|
|
2578
2578
|
!Et && // getServerSnapshot is only called during hydration
|
|
2579
2579
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
2580
2580
|
Pi.useSyncExternalStore(Su, () => (at.current = !1, at), () => (at.current = !0, at));
|
|
2581
2581
|
const gt = at.current;
|
|
2582
|
-
p && gt && !i && Ee && console.warn(`Missing pre-initiated data for serialized key "${
|
|
2583
|
-
const zt = !
|
|
2582
|
+
p && gt && !i && Ee && console.warn(`Missing pre-initiated data for serialized key "${_}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);
|
|
2583
|
+
const zt = !_ || !t || E().isPaused() || pt && !V(ht) ? !1 : z && !V(s) ? s : i ? V(Ce) ? !1 : c : V(Ce) || c, lr = V(se.isValidating) ? zt : se.isValidating, ur = V(se.isLoading) ? zt : se.isLoading, st = U(
|
|
2584
2584
|
async (B) => {
|
|
2585
|
-
const X =
|
|
2586
|
-
if (!
|
|
2585
|
+
const X = C.current;
|
|
2586
|
+
if (!_ || !X || $.current || E().isPaused())
|
|
2587
2587
|
return !1;
|
|
2588
2588
|
let J, Q, fe = !0;
|
|
2589
|
-
const
|
|
2589
|
+
const oe = B || {}, ne = !y[_] || !oe.dedupe, ye = () => Li ? !$.current && _ === x.current && w.current : _ === x.current, Bt = {
|
|
2590
2590
|
isValidating: !1,
|
|
2591
2591
|
isLoading: !1
|
|
2592
2592
|
}, qt = () => {
|
|
2593
2593
|
T(Bt);
|
|
2594
2594
|
}, Qo = () => {
|
|
2595
|
-
const pe = y[
|
|
2596
|
-
pe && pe[1] === Q && delete y[
|
|
2595
|
+
const pe = y[_];
|
|
2596
|
+
pe && pe[1] === Q && delete y[_];
|
|
2597
2597
|
}, ei = {
|
|
2598
2598
|
isValidating: !0
|
|
2599
2599
|
};
|
|
2600
2600
|
V(F().data) && (ei.isLoading = !0);
|
|
2601
2601
|
try {
|
|
2602
2602
|
if (ne && (T(ei), n.loadingTimeout && V(F().data) && setTimeout(() => {
|
|
2603
|
-
fe && ye() &&
|
|
2604
|
-
}, n.loadingTimeout), y[
|
|
2605
|
-
X(
|
|
2603
|
+
fe && ye() && E().onLoadingSlow(_, n);
|
|
2604
|
+
}, n.loadingTimeout), y[_] = [
|
|
2605
|
+
X(b),
|
|
2606
2606
|
no()
|
|
2607
|
-
]), [J, Q] = y[
|
|
2608
|
-
return ne && ye() &&
|
|
2609
|
-
Bt.error =
|
|
2610
|
-
const pe = g[
|
|
2607
|
+
]), [J, Q] = y[_], J = await J, ne && setTimeout(Qo, n.dedupingInterval), !y[_] || y[_][1] !== Q)
|
|
2608
|
+
return ne && ye() && E().onDiscarded(_), !1;
|
|
2609
|
+
Bt.error = ie;
|
|
2610
|
+
const pe = g[_];
|
|
2611
2611
|
if (!V(pe) && // case 1
|
|
2612
2612
|
(Q <= pe[0] || // case 2
|
|
2613
2613
|
Q <= pe[1] || // case 3
|
|
2614
2614
|
pe[1] === 0))
|
|
2615
|
-
return qt(), ne && ye() &&
|
|
2615
|
+
return qt(), ne && ye() && E().onDiscarded(_), !1;
|
|
2616
2616
|
const Me = F().data;
|
|
2617
|
-
Bt.data = o(Me, J) ? Me : J, ne && ye() &&
|
|
2617
|
+
Bt.data = o(Me, J) ? Me : J, ne && ye() && E().onSuccess(J, _, n);
|
|
2618
2618
|
} catch (pe) {
|
|
2619
2619
|
Qo();
|
|
2620
|
-
const Me =
|
|
2621
|
-
Me.isPaused() || (Bt.error = pe, ne && ye() && (Me.onError(pe,
|
|
2622
|
-
const fr =
|
|
2620
|
+
const Me = E(), { shouldRetryOnError: dr } = Me;
|
|
2621
|
+
Me.isPaused() || (Bt.error = pe, ne && ye() && (Me.onError(pe, _, Me), (dr === !0 || be(dr) && dr(pe)) && (!E().revalidateOnFocus || !E().revalidateOnReconnect || P()) && Me.onErrorRetry(pe, _, Me, (Wc) => {
|
|
2622
|
+
const fr = m[_];
|
|
2623
2623
|
fr && fr[0] && fr[0](Ri, Wc);
|
|
2624
2624
|
}, {
|
|
2625
|
-
retryCount: (
|
|
2625
|
+
retryCount: (oe.retryCount || 0) + 1,
|
|
2626
2626
|
dedupe: !0
|
|
2627
2627
|
})));
|
|
2628
2628
|
}
|
|
@@ -2640,42 +2640,42 @@ const $r = sn.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
2640
2640
|
// even though it might cause unexpected behaviors.
|
|
2641
2641
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2642
2642
|
[
|
|
2643
|
-
|
|
2643
|
+
_,
|
|
2644
2644
|
r
|
|
2645
2645
|
]
|
|
2646
2646
|
), dn = U(
|
|
2647
2647
|
// Use callback to make sure `keyRef.current` returns latest result every time
|
|
2648
|
-
(...B) => Rs(r,
|
|
2648
|
+
(...B) => Rs(r, x.current, ...B),
|
|
2649
2649
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2650
2650
|
[]
|
|
2651
2651
|
);
|
|
2652
2652
|
if (Sn(() => {
|
|
2653
|
-
|
|
2653
|
+
C.current = t, S.current = n, V(Ye) || (Ze.current = Ye);
|
|
2654
2654
|
}), Sn(() => {
|
|
2655
|
-
if (!
|
|
2656
|
-
const B = st.bind(
|
|
2655
|
+
if (!_) return;
|
|
2656
|
+
const B = st.bind(ie, Cr);
|
|
2657
2657
|
let X = 0;
|
|
2658
|
-
|
|
2659
|
-
const Q = Eu(
|
|
2658
|
+
E().revalidateOnFocus && (X = Date.now() + E().focusThrottleInterval);
|
|
2659
|
+
const Q = Eu(_, m, (fe, oe = {}) => {
|
|
2660
2660
|
if (fe == Os) {
|
|
2661
2661
|
const ne = Date.now();
|
|
2662
|
-
|
|
2662
|
+
E().revalidateOnFocus && ne > X && P() && (X = ne + E().focusThrottleInterval, B());
|
|
2663
2663
|
} else if (fe == ks)
|
|
2664
|
-
|
|
2664
|
+
E().revalidateOnReconnect && P() && B();
|
|
2665
2665
|
else {
|
|
2666
2666
|
if (fe == Ts)
|
|
2667
2667
|
return st();
|
|
2668
2668
|
if (fe == Ri)
|
|
2669
|
-
return st(
|
|
2669
|
+
return st(oe);
|
|
2670
2670
|
}
|
|
2671
2671
|
});
|
|
2672
|
-
return
|
|
2673
|
-
_k:
|
|
2674
|
-
}), zt && (y[
|
|
2675
|
-
|
|
2672
|
+
return $.current = !1, x.current = _, w.current = !0, T({
|
|
2673
|
+
_k: b
|
|
2674
|
+
}), zt && (y[_] || (V(Ce) || Et ? B() : lu(B))), () => {
|
|
2675
|
+
$.current = !0, Q();
|
|
2676
2676
|
};
|
|
2677
2677
|
}, [
|
|
2678
|
-
|
|
2678
|
+
_
|
|
2679
2679
|
]), Sn(() => {
|
|
2680
2680
|
let B;
|
|
2681
2681
|
function X() {
|
|
@@ -2683,7 +2683,7 @@ const $r = sn.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
2683
2683
|
Q && B !== -1 && (B = setTimeout(J, Q));
|
|
2684
2684
|
}
|
|
2685
2685
|
function J() {
|
|
2686
|
-
!F().error && (f ||
|
|
2686
|
+
!F().error && (f || E().isVisible()) && (l || E().isOnline()) ? st(Cr).then(X) : X();
|
|
2687
2687
|
}
|
|
2688
2688
|
return X(), () => {
|
|
2689
2689
|
B && (clearTimeout(B), B = -1);
|
|
@@ -2692,12 +2692,12 @@ const $r = sn.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
2692
2692
|
d,
|
|
2693
2693
|
f,
|
|
2694
2694
|
l,
|
|
2695
|
-
|
|
2695
|
+
_
|
|
2696
2696
|
]), Yn(_e), i) {
|
|
2697
2697
|
if (!Li && Et && Ee)
|
|
2698
2698
|
throw new Error("Fallback data is required when using Suspense in SSR.");
|
|
2699
|
-
Ee && (
|
|
2700
|
-
const B = _
|
|
2699
|
+
Ee && (C.current = t, S.current = n, $.current = !1);
|
|
2700
|
+
const B = v[_], X = !V(B) && Ee ? dn(B) : Ii;
|
|
2701
2701
|
if ($r(X), !V(ht) && Ee)
|
|
2702
2702
|
throw ht;
|
|
2703
2703
|
const J = Ee ? st(Cr) : Ii;
|
|
@@ -2706,29 +2706,29 @@ const $r = sn.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
2706
2706
|
return {
|
|
2707
2707
|
mutate: dn,
|
|
2708
2708
|
get data() {
|
|
2709
|
-
return
|
|
2709
|
+
return D.data = !0, _e;
|
|
2710
2710
|
},
|
|
2711
2711
|
get error() {
|
|
2712
|
-
return
|
|
2712
|
+
return D.error = !0, ht;
|
|
2713
2713
|
},
|
|
2714
2714
|
get isValidating() {
|
|
2715
|
-
return
|
|
2715
|
+
return D.isValidating = !0, lr;
|
|
2716
2716
|
},
|
|
2717
2717
|
get isLoading() {
|
|
2718
|
-
return
|
|
2718
|
+
return D.isLoading = !0, ur;
|
|
2719
2719
|
}
|
|
2720
2720
|
};
|
|
2721
2721
|
}, ku = Vn.defineProperty(vu, "defaultValue", {
|
|
2722
2722
|
value: Ls
|
|
2723
2723
|
}), Rt = Cu(Ou), Is = (e) => {
|
|
2724
|
-
const [t, n] =
|
|
2724
|
+
const [t, n] = M(!1);
|
|
2725
2725
|
return N(() => {
|
|
2726
2726
|
if (typeof window > "u") return;
|
|
2727
2727
|
const r = window.matchMedia(e), o = () => n(r.matches);
|
|
2728
2728
|
return o(), r.addEventListener("change", o), () => r.removeEventListener("change", o);
|
|
2729
2729
|
}, [e]), t;
|
|
2730
2730
|
}, Tu = (e, { minViewTime: t = 1e3, visibilityThreshold: n = 0, onView: r }) => {
|
|
2731
|
-
const [o, i] =
|
|
2731
|
+
const [o, i] = M(!1);
|
|
2732
2732
|
N(() => {
|
|
2733
2733
|
if (o || !e.current) return;
|
|
2734
2734
|
let a;
|
|
@@ -2824,8 +2824,8 @@ var Au = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], Pu = {
|
|
|
2824
2824
|
core: a,
|
|
2825
2825
|
semantic: a,
|
|
2826
2826
|
raw: { core: s, semantic: c }
|
|
2827
|
-
}), f = Du(oo(s, c, d)), l = ([h, p],
|
|
2828
|
-
const g = [
|
|
2827
|
+
}), f = Du(oo(s, c, d)), l = ([h, p], m) => {
|
|
2828
|
+
const g = [m, h].filter(Boolean).join(".");
|
|
2829
2829
|
return typeof p == "object" ? Object.entries(p).flatMap((y) => l(y, g)) : [[r.getToken("declaration", g), p]];
|
|
2830
2830
|
};
|
|
2831
2831
|
return {
|
|
@@ -2883,7 +2883,7 @@ const Se = (e) => {
|
|
|
2883
2883
|
}
|
|
2884
2884
|
};
|
|
2885
2885
|
}).semantic(({ core: e, theme: t, raw: n }) => {
|
|
2886
|
-
var s, c, d, f, l, h, p,
|
|
2886
|
+
var s, c, d, f, l, h, p, m, g, y, v, _, b, w, $, x, C, S, E, P, F;
|
|
2887
2887
|
const r = (T, I) => n.core.color[T].replace(")", ` / ${I})`), { typography: o, highlights: i } = t, a = ((s = t.accessibility) == null ? void 0 : s.highContrast) ?? !1;
|
|
2888
2888
|
return {
|
|
2889
2889
|
font: o.fontFamily ?? "inherit",
|
|
@@ -2893,13 +2893,13 @@ const Se = (e) => {
|
|
|
2893
2893
|
"font-tag": ((f = o.tag) == null ? void 0 : f.fontFamily) ?? o.fontFamily ?? "inherit",
|
|
2894
2894
|
"weight-default": ((l = o.weight) == null ? void 0 : l.toString()) ?? "inherit",
|
|
2895
2895
|
"style-filter": ((h = o.filter) == null ? void 0 : h.style) ?? o.style ?? "inherit",
|
|
2896
|
-
"weight-filter": ((
|
|
2896
|
+
"weight-filter": ((m = (p = o.filter) == null ? void 0 : p.weight) == null ? void 0 : m.toString()) ?? ((g = o.weight) == null ? void 0 : g.toString()) ?? "inherit",
|
|
2897
2897
|
"style-tag": ((y = o.tag) == null ? void 0 : y.style) ?? o.style ?? "inherit",
|
|
2898
|
-
"style-job-heading": ((
|
|
2899
|
-
"weight-tag": ((
|
|
2900
|
-
"weight-job-heading": ((
|
|
2901
|
-
"style-input": ((
|
|
2902
|
-
"weight-input": ((
|
|
2898
|
+
"style-job-heading": ((v = o.jobHeading) == null ? void 0 : v.style) ?? o.style ?? "inherit",
|
|
2899
|
+
"weight-tag": ((b = (_ = o.tag) == null ? void 0 : _.weight) == null ? void 0 : b.toString()) ?? ((w = o.weight) == null ? void 0 : w.toString()) ?? "inherit",
|
|
2900
|
+
"weight-job-heading": ((x = ($ = o.jobHeading) == null ? void 0 : $.weight) == null ? void 0 : x.toString()) ?? ((C = o.weight) == null ? void 0 : C.toString()) ?? "inherit",
|
|
2901
|
+
"style-input": ((S = o.input) == null ? void 0 : S.style) ?? o.style ?? "inherit",
|
|
2902
|
+
"weight-input": ((P = (E = o.input) == null ? void 0 : E.weight) == null ? void 0 : P.toString()) ?? ((F = o.weight) == null ? void 0 : F.toString()) ?? "inherit",
|
|
2903
2903
|
"app-bg": e("color.lowest"),
|
|
2904
2904
|
copy: e(a ? "color.highest" : "color.n-12"),
|
|
2905
2905
|
"copy-lowcontrast": e("color.n-11"),
|
|
@@ -3028,17 +3028,17 @@ function Fo(e, t = []) {
|
|
|
3028
3028
|
a
|
|
3029
3029
|
];
|
|
3030
3030
|
function d(l) {
|
|
3031
|
-
const { scope: h, children: p, ...
|
|
3032
|
-
() =>
|
|
3033
|
-
Object.values(
|
|
3031
|
+
const { scope: h, children: p, ...m } = l, g = (h == null ? void 0 : h[e][c]) || s, y = K(
|
|
3032
|
+
() => m,
|
|
3033
|
+
Object.values(m)
|
|
3034
3034
|
);
|
|
3035
3035
|
return /* @__PURE__ */ O(g.Provider, {
|
|
3036
3036
|
value: y
|
|
3037
3037
|
}, p);
|
|
3038
3038
|
}
|
|
3039
3039
|
function f(l, h) {
|
|
3040
|
-
const p = (h == null ? void 0 : h[e][c]) || s,
|
|
3041
|
-
if (
|
|
3040
|
+
const p = (h == null ? void 0 : h[e][c]) || s, m = Ke(p);
|
|
3041
|
+
if (m) return m;
|
|
3042
3042
|
if (a !== void 0) return a;
|
|
3043
3043
|
throw new Error(`\`${l}\` must be used within \`${i}\``);
|
|
3044
3044
|
}
|
|
@@ -3105,7 +3105,7 @@ const Dt = globalThis != null && globalThis.document ? Re : () => {
|
|
|
3105
3105
|
});
|
|
3106
3106
|
let Uu = 0;
|
|
3107
3107
|
function On(e) {
|
|
3108
|
-
const [t, n] =
|
|
3108
|
+
const [t, n] = M(Hu());
|
|
3109
3109
|
return Dt(() => {
|
|
3110
3110
|
n(
|
|
3111
3111
|
(r) => r ?? String(Uu++)
|
|
@@ -3148,7 +3148,7 @@ function Fs({ prop: e, defaultProp: t, onChange: n = () => {
|
|
|
3148
3148
|
];
|
|
3149
3149
|
}
|
|
3150
3150
|
function Wu({ defaultProp: e, onChange: t }) {
|
|
3151
|
-
const n =
|
|
3151
|
+
const n = M(e), [r] = n, o = A(r), i = tt(t);
|
|
3152
3152
|
return N(() => {
|
|
3153
3153
|
o.current !== r && (i(r), o.current = r);
|
|
3154
3154
|
}, [
|
|
@@ -3259,28 +3259,28 @@ const Ju = /* @__PURE__ */ Qe({
|
|
|
3259
3259
|
branches: /* @__PURE__ */ new Set()
|
|
3260
3260
|
}), Vs = /* @__PURE__ */ Z((e, t) => {
|
|
3261
3261
|
var n;
|
|
3262
|
-
const { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: o, onPointerDownOutside: i, onFocusOutside: a, onInteractOutside: s, onDismiss: c, ...d } = e, f = Ke(Ju), [l, h] =
|
|
3262
|
+
const { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: o, onPointerDownOutside: i, onFocusOutside: a, onInteractOutside: s, onDismiss: c, ...d } = e, f = Ke(Ju), [l, h] = M(null), p = (n = l == null ? void 0 : l.ownerDocument) !== null && n !== void 0 ? n : globalThis == null ? void 0 : globalThis.document, [, m] = M({}), g = De(
|
|
3263
3263
|
t,
|
|
3264
|
-
(
|
|
3265
|
-
), y = Array.from(f.layers), [
|
|
3264
|
+
(S) => h(S)
|
|
3265
|
+
), y = Array.from(f.layers), [v] = [
|
|
3266
3266
|
...f.layersWithOutsidePointerEventsDisabled
|
|
3267
|
-
].slice(-1),
|
|
3268
|
-
const
|
|
3267
|
+
].slice(-1), _ = y.indexOf(v), b = l ? y.indexOf(l) : -1, w = f.layersWithOutsidePointerEventsDisabled.size > 0, $ = b >= _, x = Qu((S) => {
|
|
3268
|
+
const E = S.target, P = [
|
|
3269
3269
|
...f.branches
|
|
3270
3270
|
].some(
|
|
3271
|
-
(F) => F.contains(
|
|
3271
|
+
(F) => F.contains(E)
|
|
3272
3272
|
);
|
|
3273
|
-
|
|
3274
|
-
}, p),
|
|
3275
|
-
const
|
|
3273
|
+
!$ || P || (i == null || i(S), s == null || s(S), S.defaultPrevented || c == null || c());
|
|
3274
|
+
}, p), C = ed((S) => {
|
|
3275
|
+
const E = S.target;
|
|
3276
3276
|
[
|
|
3277
3277
|
...f.branches
|
|
3278
3278
|
].some(
|
|
3279
|
-
(F) => F.contains(
|
|
3280
|
-
) || (a == null || a(
|
|
3279
|
+
(F) => F.contains(E)
|
|
3280
|
+
) || (a == null || a(S), s == null || s(S), S.defaultPrevented || c == null || c());
|
|
3281
3281
|
}, p);
|
|
3282
|
-
return Yu((
|
|
3283
|
-
|
|
3282
|
+
return Yu((S) => {
|
|
3283
|
+
b === f.layers.size - 1 && (o == null || o(S), !S.defaultPrevented && c && (S.preventDefault(), c()));
|
|
3284
3284
|
}, p), N(() => {
|
|
3285
3285
|
if (l)
|
|
3286
3286
|
return r && (f.layersWithOutsidePointerEventsDisabled.size === 0 && (ji = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), f.layersWithOutsidePointerEventsDisabled.add(l)), f.layers.add(l), Fi(), () => {
|
|
@@ -3297,17 +3297,17 @@ const Ju = /* @__PURE__ */ Qe({
|
|
|
3297
3297
|
l,
|
|
3298
3298
|
f
|
|
3299
3299
|
]), N(() => {
|
|
3300
|
-
const
|
|
3301
|
-
return document.addEventListener(so,
|
|
3300
|
+
const S = () => m({});
|
|
3301
|
+
return document.addEventListener(so, S), () => document.removeEventListener(so, S);
|
|
3302
3302
|
}, []), /* @__PURE__ */ O(ot.div, Y({}, d, {
|
|
3303
3303
|
ref: g,
|
|
3304
3304
|
style: {
|
|
3305
|
-
pointerEvents:
|
|
3305
|
+
pointerEvents: w ? $ ? "auto" : "none" : void 0,
|
|
3306
3306
|
...e.style
|
|
3307
3307
|
},
|
|
3308
|
-
onFocusCapture: we(e.onFocusCapture,
|
|
3309
|
-
onBlurCapture: we(e.onBlurCapture,
|
|
3310
|
-
onPointerDownCapture: we(e.onPointerDownCapture,
|
|
3308
|
+
onFocusCapture: we(e.onFocusCapture, C.onFocusCapture),
|
|
3309
|
+
onBlurCapture: we(e.onBlurCapture, C.onBlurCapture),
|
|
3310
|
+
onPointerDownCapture: we(e.onPointerDownCapture, x.onPointerDownCapture)
|
|
3311
3311
|
}));
|
|
3312
3312
|
});
|
|
3313
3313
|
function Qu(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
@@ -3381,7 +3381,7 @@ const Tr = "focusScope.autoFocusOnMount", Ar = "focusScope.autoFocusOnUnmount",
|
|
|
3381
3381
|
bubbles: !1,
|
|
3382
3382
|
cancelable: !0
|
|
3383
3383
|
}, Us = /* @__PURE__ */ Z((e, t) => {
|
|
3384
|
-
const { loop: n = !1, trapped: r = !1, onMountAutoFocus: o, onUnmountAutoFocus: i, ...a } = e, [s, c] =
|
|
3384
|
+
const { loop: n = !1, trapped: r = !1, onMountAutoFocus: o, onUnmountAutoFocus: i, ...a } = e, [s, c] = M(null), d = tt(o), f = tt(i), l = A(null), h = De(
|
|
3385
3385
|
t,
|
|
3386
3386
|
(g) => c(g)
|
|
3387
3387
|
), p = A({
|
|
@@ -3395,29 +3395,29 @@ const Tr = "focusScope.autoFocusOnMount", Ar = "focusScope.autoFocusOnUnmount",
|
|
|
3395
3395
|
}).current;
|
|
3396
3396
|
N(() => {
|
|
3397
3397
|
if (r) {
|
|
3398
|
-
let g = function(
|
|
3398
|
+
let g = function(b) {
|
|
3399
3399
|
if (p.paused || !s) return;
|
|
3400
|
-
const
|
|
3401
|
-
s.contains(
|
|
3400
|
+
const w = b.target;
|
|
3401
|
+
s.contains(w) ? l.current = w : Xe(l.current, {
|
|
3402
3402
|
select: !0
|
|
3403
3403
|
});
|
|
3404
|
-
}, y = function(
|
|
3404
|
+
}, y = function(b) {
|
|
3405
3405
|
if (p.paused || !s) return;
|
|
3406
|
-
const
|
|
3407
|
-
|
|
3406
|
+
const w = b.relatedTarget;
|
|
3407
|
+
w !== null && (s.contains(w) || Xe(l.current, {
|
|
3408
3408
|
select: !0
|
|
3409
3409
|
}));
|
|
3410
|
-
},
|
|
3410
|
+
}, v = function(b) {
|
|
3411
3411
|
if (document.activeElement === document.body)
|
|
3412
|
-
for (const
|
|
3412
|
+
for (const $ of b) $.removedNodes.length > 0 && Xe(s);
|
|
3413
3413
|
};
|
|
3414
3414
|
document.addEventListener("focusin", g), document.addEventListener("focusout", y);
|
|
3415
|
-
const
|
|
3416
|
-
return s &&
|
|
3415
|
+
const _ = new MutationObserver(v);
|
|
3416
|
+
return s && _.observe(s, {
|
|
3417
3417
|
childList: !0,
|
|
3418
3418
|
subtree: !0
|
|
3419
3419
|
}), () => {
|
|
3420
|
-
document.removeEventListener("focusin", g), document.removeEventListener("focusout", y),
|
|
3420
|
+
document.removeEventListener("focusin", g), document.removeEventListener("focusout", y), _.disconnect();
|
|
3421
3421
|
};
|
|
3422
3422
|
}
|
|
3423
3423
|
}, [
|
|
@@ -3429,15 +3429,15 @@ const Tr = "focusScope.autoFocusOnMount", Ar = "focusScope.autoFocusOnUnmount",
|
|
|
3429
3429
|
Ui.add(p);
|
|
3430
3430
|
const g = document.activeElement;
|
|
3431
3431
|
if (!s.contains(g)) {
|
|
3432
|
-
const
|
|
3433
|
-
s.addEventListener(Tr, d), s.dispatchEvent(
|
|
3432
|
+
const v = new CustomEvent(Tr, Vi);
|
|
3433
|
+
s.addEventListener(Tr, d), s.dispatchEvent(v), v.defaultPrevented || (td(ad(Ws(s)), {
|
|
3434
3434
|
select: !0
|
|
3435
3435
|
}), document.activeElement === g && Xe(s));
|
|
3436
3436
|
}
|
|
3437
3437
|
return () => {
|
|
3438
3438
|
s.removeEventListener(Tr, d), setTimeout(() => {
|
|
3439
|
-
const
|
|
3440
|
-
s.addEventListener(Ar, f), s.dispatchEvent(
|
|
3439
|
+
const v = new CustomEvent(Ar, Vi);
|
|
3440
|
+
s.addEventListener(Ar, f), s.dispatchEvent(v), v.defaultPrevented || Xe(g ?? document.body, {
|
|
3441
3441
|
select: !0
|
|
3442
3442
|
}), s.removeEventListener(Ar, f), Ui.remove(p);
|
|
3443
3443
|
}, 0);
|
|
@@ -3449,16 +3449,16 @@ const Tr = "focusScope.autoFocusOnMount", Ar = "focusScope.autoFocusOnUnmount",
|
|
|
3449
3449
|
f,
|
|
3450
3450
|
p
|
|
3451
3451
|
]);
|
|
3452
|
-
const
|
|
3452
|
+
const m = U((g) => {
|
|
3453
3453
|
if (!n && !r || p.paused) return;
|
|
3454
|
-
const y = g.key === "Tab" && !g.altKey && !g.ctrlKey && !g.metaKey,
|
|
3455
|
-
if (y &&
|
|
3456
|
-
const
|
|
3457
|
-
|
|
3454
|
+
const y = g.key === "Tab" && !g.altKey && !g.ctrlKey && !g.metaKey, v = document.activeElement;
|
|
3455
|
+
if (y && v) {
|
|
3456
|
+
const _ = g.currentTarget, [b, w] = nd(_);
|
|
3457
|
+
b && w ? !g.shiftKey && v === w ? (g.preventDefault(), n && Xe(b, {
|
|
3458
3458
|
select: !0
|
|
3459
|
-
})) : g.shiftKey &&
|
|
3459
|
+
})) : g.shiftKey && v === b && (g.preventDefault(), n && Xe(w, {
|
|
3460
3460
|
select: !0
|
|
3461
|
-
})) :
|
|
3461
|
+
})) : v === _ && g.preventDefault();
|
|
3462
3462
|
}
|
|
3463
3463
|
}, [
|
|
3464
3464
|
n,
|
|
@@ -3469,7 +3469,7 @@ const Tr = "focusScope.autoFocusOnMount", Ar = "focusScope.autoFocusOnUnmount",
|
|
|
3469
3469
|
tabIndex: -1
|
|
3470
3470
|
}, a, {
|
|
3471
3471
|
ref: h,
|
|
3472
|
-
onKeyDown:
|
|
3472
|
+
onKeyDown: m
|
|
3473
3473
|
}));
|
|
3474
3474
|
});
|
|
3475
3475
|
function td(e, { select: t = !1 } = {}) {
|
|
@@ -3570,7 +3570,7 @@ const It = (e) => {
|
|
|
3570
3570
|
};
|
|
3571
3571
|
It.displayName = "Presence";
|
|
3572
3572
|
function cd(e) {
|
|
3573
|
-
const [t, n] =
|
|
3573
|
+
const [t, n] = M(), r = A({}), o = A(e), i = A("none"), a = e ? "mounted" : "unmounted", [s, c] = sd(a, {
|
|
3574
3574
|
mounted: {
|
|
3575
3575
|
UNMOUNT: "unmounted",
|
|
3576
3576
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -3671,7 +3671,7 @@ function Rr(e, t) {
|
|
|
3671
3671
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
3672
3672
|
}
|
|
3673
3673
|
function fd(e, t) {
|
|
3674
|
-
var n =
|
|
3674
|
+
var n = M(function() {
|
|
3675
3675
|
return {
|
|
3676
3676
|
// value
|
|
3677
3677
|
value: e,
|
|
@@ -3789,16 +3789,16 @@ function _d(e, t) {
|
|
|
3789
3789
|
}
|
|
3790
3790
|
var Gs = md(), Dr = function() {
|
|
3791
3791
|
}, Jn = Z(function(e, t) {
|
|
3792
|
-
var n = A(null), r =
|
|
3792
|
+
var n = A(null), r = M({
|
|
3793
3793
|
onScrollCapture: Dr,
|
|
3794
3794
|
onWheelCapture: Dr,
|
|
3795
3795
|
onTouchMoveCapture: Dr
|
|
3796
|
-
}), o = r[0], i = r[1], a = e.forwardProps, s = e.children, c = e.className, d = e.removeScrollBar, f = e.enabled, l = e.shards, h = e.sideCar, p = e.noIsolation,
|
|
3796
|
+
}), o = r[0], i = r[1], a = e.forwardProps, s = e.children, c = e.className, d = e.removeScrollBar, f = e.enabled, l = e.shards, h = e.sideCar, p = e.noIsolation, m = e.inert, g = e.allowPinchZoom, y = e.as, v = y === void 0 ? "div" : y, _ = qs(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), b = h, w = hd([n, t]), $ = Oe(Oe({}, _), o);
|
|
3797
3797
|
return O(
|
|
3798
3798
|
H,
|
|
3799
3799
|
null,
|
|
3800
|
-
f && O(
|
|
3801
|
-
a ? Nt(Ae.only(s), Oe(Oe({},
|
|
3800
|
+
f && O(b, { sideCar: Gs, removeScrollBar: d, shards: l, noIsolation: p, inert: m, setCallbacks: i, allowPinchZoom: !!g, lockRef: n }),
|
|
3801
|
+
a ? Nt(Ae.only(s), Oe(Oe({}, $), { ref: w })) : O(v, Oe({}, $, { className: c, ref: w }), s)
|
|
3802
3802
|
);
|
|
3803
3803
|
});
|
|
3804
3804
|
Jn.defaultProps = {
|
|
@@ -3996,8 +3996,8 @@ var mt = co ? { passive: !1 } : !1, Rd = function(e) {
|
|
|
3996
3996
|
}, jd = function(e, t, n, r, o) {
|
|
3997
3997
|
var i = Id(e, window.getComputedStyle(t).direction), a = i * r, s = n.target, c = t.contains(s), d = !1, f = a > 0, l = 0, h = 0;
|
|
3998
3998
|
do {
|
|
3999
|
-
var p = Js(e, s),
|
|
4000
|
-
(
|
|
3999
|
+
var p = Js(e, s), m = p[0], g = p[1], y = p[2], v = g - y - i * m;
|
|
4000
|
+
(m || v) && Xs(e, s) && (l += v, h += m), s = s.parentNode;
|
|
4001
4001
|
} while (
|
|
4002
4002
|
// portaled content
|
|
4003
4003
|
!c && s !== document.body || // self content
|
|
@@ -4019,7 +4019,7 @@ var mt = co ? { passive: !1 } : !1, Rd = function(e) {
|
|
|
4019
4019
|
`);
|
|
4020
4020
|
}, Hd = 0, _t = [];
|
|
4021
4021
|
function Ud(e) {
|
|
4022
|
-
var t = A([]), n = A([0, 0]), r = A(), o =
|
|
4022
|
+
var t = A([]), n = A([0, 0]), r = A(), o = M(Hd++)[0], i = M(function() {
|
|
4023
4023
|
return Ys();
|
|
4024
4024
|
})[0], a = A(e);
|
|
4025
4025
|
N(function() {
|
|
@@ -4040,40 +4040,40 @@ function Ud(e) {
|
|
|
4040
4040
|
var s = U(function(g, y) {
|
|
4041
4041
|
if ("touches" in g && g.touches.length === 2)
|
|
4042
4042
|
return !a.current.allowPinchZoom;
|
|
4043
|
-
var
|
|
4044
|
-
if ("touches" in g &&
|
|
4043
|
+
var v = wn(g), _ = n.current, b = "deltaX" in g ? g.deltaX : _[0] - v[0], w = "deltaY" in g ? g.deltaY : _[1] - v[1], $, x = g.target, C = Math.abs(b) > Math.abs(w) ? "h" : "v";
|
|
4044
|
+
if ("touches" in g && C === "h" && x.type === "range")
|
|
4045
4045
|
return !1;
|
|
4046
|
-
var
|
|
4047
|
-
if (!
|
|
4046
|
+
var S = Ki(C, x);
|
|
4047
|
+
if (!S)
|
|
4048
4048
|
return !0;
|
|
4049
|
-
if (
|
|
4049
|
+
if (S ? $ = C : ($ = C === "v" ? "h" : "v", S = Ki(C, x)), !S)
|
|
4050
4050
|
return !1;
|
|
4051
|
-
if (!r.current && "changedTouches" in g && (
|
|
4051
|
+
if (!r.current && "changedTouches" in g && (b || w) && (r.current = $), !$)
|
|
4052
4052
|
return !0;
|
|
4053
|
-
var
|
|
4054
|
-
return jd(
|
|
4053
|
+
var E = r.current || $;
|
|
4054
|
+
return jd(E, y, g, E === "h" ? b : w);
|
|
4055
4055
|
}, []), c = U(function(g) {
|
|
4056
4056
|
var y = g;
|
|
4057
4057
|
if (!(!_t.length || _t[_t.length - 1] !== i)) {
|
|
4058
|
-
var
|
|
4059
|
-
return
|
|
4058
|
+
var v = "deltaY" in y ? Gi(y) : wn(y), _ = t.current.filter(function($) {
|
|
4059
|
+
return $.name === y.type && $.target === y.target && Fd($.delta, v);
|
|
4060
4060
|
})[0];
|
|
4061
|
-
if (
|
|
4061
|
+
if (_ && _.should) {
|
|
4062
4062
|
y.cancelable && y.preventDefault();
|
|
4063
4063
|
return;
|
|
4064
4064
|
}
|
|
4065
|
-
if (!
|
|
4066
|
-
var
|
|
4067
|
-
return
|
|
4068
|
-
}),
|
|
4069
|
-
|
|
4065
|
+
if (!_) {
|
|
4066
|
+
var b = (a.current.shards || []).map(Yi).filter(Boolean).filter(function($) {
|
|
4067
|
+
return $.contains(y.target);
|
|
4068
|
+
}), w = b.length > 0 ? s(y, b[0]) : !a.current.noIsolation;
|
|
4069
|
+
w && y.cancelable && y.preventDefault();
|
|
4070
4070
|
}
|
|
4071
4071
|
}
|
|
4072
|
-
}, []), d = U(function(g, y,
|
|
4073
|
-
var
|
|
4074
|
-
t.current.push(
|
|
4075
|
-
t.current = t.current.filter(function(
|
|
4076
|
-
return
|
|
4072
|
+
}, []), d = U(function(g, y, v, _) {
|
|
4073
|
+
var b = { name: g, delta: y, target: v, should: _ };
|
|
4074
|
+
t.current.push(b), setTimeout(function() {
|
|
4075
|
+
t.current = t.current.filter(function(w) {
|
|
4076
|
+
return w !== b;
|
|
4077
4077
|
});
|
|
4078
4078
|
}, 1);
|
|
4079
4079
|
}, []), f = U(function(g) {
|
|
@@ -4094,11 +4094,11 @@ function Ud(e) {
|
|
|
4094
4094
|
}), document.removeEventListener("wheel", c, mt), document.removeEventListener("touchmove", c, mt), document.removeEventListener("touchstart", f, mt);
|
|
4095
4095
|
};
|
|
4096
4096
|
}, []);
|
|
4097
|
-
var p = e.removeScrollBar,
|
|
4097
|
+
var p = e.removeScrollBar, m = e.inert;
|
|
4098
4098
|
return O(
|
|
4099
4099
|
H,
|
|
4100
4100
|
null,
|
|
4101
|
-
|
|
4101
|
+
m ? O(i, { styles: Vd(o) }) : null,
|
|
4102
4102
|
p ? O(Pd, { gapMode: "margin" }) : null
|
|
4103
4103
|
);
|
|
4104
4104
|
}
|
|
@@ -4136,10 +4136,10 @@ var zd = function(e) {
|
|
|
4136
4136
|
f(h);
|
|
4137
4137
|
else
|
|
4138
4138
|
try {
|
|
4139
|
-
var p = h.getAttribute(r),
|
|
4140
|
-
yt.set(h, g), i.set(h, y), a.push(h), g === 1 &&
|
|
4141
|
-
} catch (
|
|
4142
|
-
console.error("aria-hidden: cannot operate on ", h,
|
|
4139
|
+
var p = h.getAttribute(r), m = p !== null && p !== "false", g = (yt.get(h) || 0) + 1, y = (i.get(h) || 0) + 1;
|
|
4140
|
+
yt.set(h, g), i.set(h, y), a.push(h), g === 1 && m && xn.set(h, !0), y === 1 && h.setAttribute(n, "true"), m || h.setAttribute(r, "true");
|
|
4141
|
+
} catch (v) {
|
|
4142
|
+
console.error("aria-hidden: cannot operate on ", h, v);
|
|
4143
4143
|
}
|
|
4144
4144
|
});
|
|
4145
4145
|
};
|
|
@@ -4485,33 +4485,33 @@ async function wf(e, t) {
|
|
|
4485
4485
|
elementContext: l = "floating",
|
|
4486
4486
|
altBoundary: h = !1,
|
|
4487
4487
|
padding: p = 0
|
|
4488
|
-
} = Be(t, e),
|
|
4488
|
+
} = Be(t, e), m = ac(p), y = s[h ? l === "floating" ? "reference" : "floating" : l], v = zn(await i.getClippingRect({
|
|
4489
4489
|
element: (n = await (i.isElement == null ? void 0 : i.isElement(y))) == null || n ? y : y.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
|
|
4490
4490
|
boundary: d,
|
|
4491
4491
|
rootBoundary: f,
|
|
4492
4492
|
strategy: c
|
|
4493
|
-
})),
|
|
4493
|
+
})), _ = l === "floating" ? {
|
|
4494
4494
|
x: r,
|
|
4495
4495
|
y: o,
|
|
4496
4496
|
width: a.floating.width,
|
|
4497
4497
|
height: a.floating.height
|
|
4498
|
-
} : a.reference,
|
|
4498
|
+
} : a.reference, b = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(s.floating)), w = await (i.isElement == null ? void 0 : i.isElement(b)) ? await (i.getScale == null ? void 0 : i.getScale(b)) || {
|
|
4499
4499
|
x: 1,
|
|
4500
4500
|
y: 1
|
|
4501
4501
|
} : {
|
|
4502
4502
|
x: 1,
|
|
4503
4503
|
y: 1
|
|
4504
|
-
},
|
|
4504
|
+
}, $ = zn(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
4505
4505
|
elements: s,
|
|
4506
|
-
rect:
|
|
4507
|
-
offsetParent:
|
|
4506
|
+
rect: _,
|
|
4507
|
+
offsetParent: b,
|
|
4508
4508
|
strategy: c
|
|
4509
|
-
}) :
|
|
4509
|
+
}) : _);
|
|
4510
4510
|
return {
|
|
4511
|
-
top: (
|
|
4512
|
-
bottom: (
|
|
4513
|
-
left: (
|
|
4514
|
-
right: (
|
|
4511
|
+
top: (v.top - $.top + m.top) / w.y,
|
|
4512
|
+
bottom: ($.bottom - v.bottom + m.bottom) / w.y,
|
|
4513
|
+
left: (v.left - $.left + m.left) / w.x,
|
|
4514
|
+
right: ($.right - v.right + m.right) / w.x
|
|
4515
4515
|
};
|
|
4516
4516
|
}
|
|
4517
4517
|
const xf = 50, $f = async (e, t, n) => {
|
|
@@ -4532,26 +4532,26 @@ const xf = 50, $f = async (e, t, n) => {
|
|
|
4532
4532
|
x: f,
|
|
4533
4533
|
y: l
|
|
4534
4534
|
} = Ji(d, r, c), h = r, p = 0;
|
|
4535
|
-
const
|
|
4535
|
+
const m = {};
|
|
4536
4536
|
for (let g = 0; g < i.length; g++) {
|
|
4537
4537
|
const y = i[g];
|
|
4538
4538
|
if (!y)
|
|
4539
4539
|
continue;
|
|
4540
4540
|
const {
|
|
4541
|
-
name:
|
|
4542
|
-
fn:
|
|
4541
|
+
name: v,
|
|
4542
|
+
fn: _
|
|
4543
4543
|
} = y, {
|
|
4544
|
-
x:
|
|
4545
|
-
y:
|
|
4546
|
-
data:
|
|
4547
|
-
reset:
|
|
4548
|
-
} = await
|
|
4544
|
+
x: b,
|
|
4545
|
+
y: w,
|
|
4546
|
+
data: $,
|
|
4547
|
+
reset: x
|
|
4548
|
+
} = await _({
|
|
4549
4549
|
x: f,
|
|
4550
4550
|
y: l,
|
|
4551
4551
|
initialPlacement: r,
|
|
4552
4552
|
placement: h,
|
|
4553
4553
|
strategy: o,
|
|
4554
|
-
middlewareData:
|
|
4554
|
+
middlewareData: m,
|
|
4555
4555
|
rects: d,
|
|
4556
4556
|
platform: s,
|
|
4557
4557
|
elements: {
|
|
@@ -4559,14 +4559,14 @@ const xf = 50, $f = async (e, t, n) => {
|
|
|
4559
4559
|
floating: t
|
|
4560
4560
|
}
|
|
4561
4561
|
});
|
|
4562
|
-
f =
|
|
4563
|
-
...v
|
|
4564
|
-
|
|
4565
|
-
},
|
|
4562
|
+
f = b ?? f, l = w ?? l, m[v] = {
|
|
4563
|
+
...m[v],
|
|
4564
|
+
...$
|
|
4565
|
+
}, x && p < xf && (p++, typeof x == "object" && (x.placement && (h = x.placement), x.rects && (d = x.rects === !0 ? await a.getElementRects({
|
|
4566
4566
|
reference: e,
|
|
4567
4567
|
floating: t,
|
|
4568
4568
|
strategy: o
|
|
4569
|
-
}) :
|
|
4569
|
+
}) : x.rects), {
|
|
4570
4570
|
x: f,
|
|
4571
4571
|
y: l
|
|
4572
4572
|
} = Ji(d, h, c)), g = -1);
|
|
@@ -4576,7 +4576,7 @@ const xf = 50, $f = async (e, t, n) => {
|
|
|
4576
4576
|
y: l,
|
|
4577
4577
|
placement: h,
|
|
4578
4578
|
strategy: o,
|
|
4579
|
-
middlewareData:
|
|
4579
|
+
middlewareData: m
|
|
4580
4580
|
};
|
|
4581
4581
|
}, Cf = (e) => ({
|
|
4582
4582
|
name: "arrow",
|
|
@@ -4599,20 +4599,20 @@ const xf = 50, $f = async (e, t, n) => {
|
|
|
4599
4599
|
const l = ac(f), h = {
|
|
4600
4600
|
x: n,
|
|
4601
4601
|
y: r
|
|
4602
|
-
}, p = zo(o),
|
|
4603
|
-
let
|
|
4604
|
-
(!
|
|
4605
|
-
const
|
|
4602
|
+
}, p = zo(o), m = Wo(p), g = await a.getDimensions(d), y = p === "y", v = y ? "top" : "left", _ = y ? "bottom" : "right", b = y ? "clientHeight" : "clientWidth", w = i.reference[m] + i.reference[p] - h[p] - i.floating[m], $ = h[p] - i.reference[p], x = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(d));
|
|
4603
|
+
let C = x ? x[b] : 0;
|
|
4604
|
+
(!C || !await (a.isElement == null ? void 0 : a.isElement(x))) && (C = s.floating[b] || i.floating[m]);
|
|
4605
|
+
const S = w / 2 - $ / 2, E = C / 2 - g[m] / 2 - 1, P = nt(l[v], E), F = nt(l[_], E), T = P, I = C - g[m] - F, L = C / 2 - g[m] / 2 + S, D = uo(T, L, I), R = !c.arrow && jt(o) != null && L !== D && i.reference[m] / 2 - (L < T ? P : F) - g[m] / 2 < 0, k = R ? L < T ? L - T : L - I : 0;
|
|
4606
4606
|
return {
|
|
4607
4607
|
[p]: h[p] + k,
|
|
4608
4608
|
data: {
|
|
4609
|
-
[p]:
|
|
4610
|
-
centerOffset:
|
|
4611
|
-
...
|
|
4609
|
+
[p]: D,
|
|
4610
|
+
centerOffset: L - D - k,
|
|
4611
|
+
...R && {
|
|
4612
4612
|
alignmentOffset: k
|
|
4613
4613
|
}
|
|
4614
4614
|
},
|
|
4615
|
-
reset:
|
|
4615
|
+
reset: R
|
|
4616
4616
|
};
|
|
4617
4617
|
}
|
|
4618
4618
|
}), Ef = function(e) {
|
|
@@ -4633,63 +4633,63 @@ const xf = 50, $f = async (e, t, n) => {
|
|
|
4633
4633
|
crossAxis: l = !0,
|
|
4634
4634
|
fallbackPlacements: h,
|
|
4635
4635
|
fallbackStrategy: p = "bestFit",
|
|
4636
|
-
fallbackAxisSideDirection:
|
|
4636
|
+
fallbackAxisSideDirection: m = "none",
|
|
4637
4637
|
flipAlignment: g = !0,
|
|
4638
4638
|
...y
|
|
4639
4639
|
} = Be(e, t);
|
|
4640
4640
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
4641
4641
|
return {};
|
|
4642
|
-
const
|
|
4643
|
-
!h &&
|
|
4644
|
-
const
|
|
4645
|
-
let
|
|
4646
|
-
if (f &&
|
|
4647
|
-
const
|
|
4648
|
-
|
|
4642
|
+
const v = qe(o), _ = Te(s), b = qe(s) === s, w = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), $ = h || (b || !g ? [Wn(s)] : gf(s)), x = m !== "none";
|
|
4643
|
+
!h && x && $.push(...yf(s, g, m, w));
|
|
4644
|
+
const C = [s, ...$], S = await c.detectOverflow(t, y), E = [];
|
|
4645
|
+
let P = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
4646
|
+
if (f && E.push(S[v]), l) {
|
|
4647
|
+
const L = hf(o, a, w);
|
|
4648
|
+
E.push(S[L[0]], S[L[1]]);
|
|
4649
4649
|
}
|
|
4650
|
-
if (
|
|
4650
|
+
if (P = [...P, {
|
|
4651
4651
|
placement: o,
|
|
4652
|
-
overflows:
|
|
4653
|
-
}], !
|
|
4652
|
+
overflows: E
|
|
4653
|
+
}], !E.every((L) => L <= 0)) {
|
|
4654
4654
|
var F, T;
|
|
4655
|
-
const
|
|
4656
|
-
if (
|
|
4655
|
+
const L = (((F = i.flip) == null ? void 0 : F.index) || 0) + 1, D = C[L];
|
|
4656
|
+
if (D && (!(l === "alignment" ? _ !== Te(D) : !1) || // We leave the current main axis only if every placement on that axis
|
|
4657
4657
|
// overflows the main axis.
|
|
4658
|
-
|
|
4658
|
+
P.every((z) => Te(z.placement) === _ ? z.overflows[0] > 0 : !0)))
|
|
4659
4659
|
return {
|
|
4660
4660
|
data: {
|
|
4661
|
-
index:
|
|
4662
|
-
overflows:
|
|
4661
|
+
index: L,
|
|
4662
|
+
overflows: P
|
|
4663
4663
|
},
|
|
4664
4664
|
reset: {
|
|
4665
|
-
placement:
|
|
4665
|
+
placement: D
|
|
4666
4666
|
}
|
|
4667
4667
|
};
|
|
4668
|
-
let
|
|
4669
|
-
if (!
|
|
4668
|
+
let R = (T = P.filter((k) => k.overflows[0] <= 0).sort((k, z) => k.overflows[1] - z.overflows[1])[0]) == null ? void 0 : T.placement;
|
|
4669
|
+
if (!R)
|
|
4670
4670
|
switch (p) {
|
|
4671
4671
|
case "bestFit": {
|
|
4672
4672
|
var I;
|
|
4673
|
-
const k = (I =
|
|
4674
|
-
if (
|
|
4673
|
+
const k = (I = P.filter((z) => {
|
|
4674
|
+
if (x) {
|
|
4675
4675
|
const W = Te(z.placement);
|
|
4676
|
-
return W ===
|
|
4676
|
+
return W === _ || // Create a bias to the `y` side axis due to horizontal
|
|
4677
4677
|
// reading directions favoring greater width.
|
|
4678
4678
|
W === "y";
|
|
4679
4679
|
}
|
|
4680
4680
|
return !0;
|
|
4681
4681
|
}).map((z) => [z.placement, z.overflows.filter((W) => W > 0).reduce((W, se) => W + se, 0)]).sort((z, W) => z[1] - W[1])[0]) == null ? void 0 : I[0];
|
|
4682
|
-
k && (
|
|
4682
|
+
k && (R = k);
|
|
4683
4683
|
break;
|
|
4684
4684
|
}
|
|
4685
4685
|
case "initialPlacement":
|
|
4686
|
-
|
|
4686
|
+
R = s;
|
|
4687
4687
|
break;
|
|
4688
4688
|
}
|
|
4689
|
-
if (o !==
|
|
4689
|
+
if (o !== R)
|
|
4690
4690
|
return {
|
|
4691
4691
|
reset: {
|
|
4692
|
-
placement:
|
|
4692
|
+
placement: R
|
|
4693
4693
|
}
|
|
4694
4694
|
};
|
|
4695
4695
|
}
|
|
@@ -4760,7 +4760,7 @@ async function Of(e, t) {
|
|
|
4760
4760
|
let {
|
|
4761
4761
|
mainAxis: h,
|
|
4762
4762
|
crossAxis: p,
|
|
4763
|
-
alignmentAxis:
|
|
4763
|
+
alignmentAxis: m
|
|
4764
4764
|
} = typeof l == "number" ? {
|
|
4765
4765
|
mainAxis: l,
|
|
4766
4766
|
crossAxis: 0,
|
|
@@ -4770,7 +4770,7 @@ async function Of(e, t) {
|
|
|
4770
4770
|
crossAxis: l.crossAxis || 0,
|
|
4771
4771
|
alignmentAxis: l.alignmentAxis
|
|
4772
4772
|
};
|
|
4773
|
-
return s && typeof
|
|
4773
|
+
return s && typeof m == "number" && (p = s === "end" ? m * -1 : m), c ? {
|
|
4774
4774
|
x: p * f,
|
|
4775
4775
|
y: h * d
|
|
4776
4776
|
} : {
|
|
@@ -4814,14 +4814,14 @@ const kf = function(e) {
|
|
|
4814
4814
|
mainAxis: a = !0,
|
|
4815
4815
|
crossAxis: s = !1,
|
|
4816
4816
|
limiter: c = {
|
|
4817
|
-
fn: (
|
|
4817
|
+
fn: (v) => {
|
|
4818
4818
|
let {
|
|
4819
|
-
x:
|
|
4820
|
-
y:
|
|
4821
|
-
} =
|
|
4819
|
+
x: _,
|
|
4820
|
+
y: b
|
|
4821
|
+
} = v;
|
|
4822
4822
|
return {
|
|
4823
|
-
x:
|
|
4824
|
-
y:
|
|
4823
|
+
x: _,
|
|
4824
|
+
y: b
|
|
4825
4825
|
};
|
|
4826
4826
|
}
|
|
4827
4827
|
},
|
|
@@ -4830,18 +4830,18 @@ const kf = function(e) {
|
|
|
4830
4830
|
x: n,
|
|
4831
4831
|
y: r
|
|
4832
4832
|
}, l = await i.detectOverflow(t, d), h = Te(qe(o)), p = Uo(h);
|
|
4833
|
-
let
|
|
4833
|
+
let m = f[p], g = f[h];
|
|
4834
4834
|
if (a) {
|
|
4835
|
-
const
|
|
4836
|
-
|
|
4835
|
+
const v = p === "y" ? "top" : "left", _ = p === "y" ? "bottom" : "right", b = m + l[v], w = m - l[_];
|
|
4836
|
+
m = uo(b, m, w);
|
|
4837
4837
|
}
|
|
4838
4838
|
if (s) {
|
|
4839
|
-
const
|
|
4840
|
-
g = uo(
|
|
4839
|
+
const v = h === "y" ? "top" : "left", _ = h === "y" ? "bottom" : "right", b = g + l[v], w = g - l[_];
|
|
4840
|
+
g = uo(b, g, w);
|
|
4841
4841
|
}
|
|
4842
4842
|
const y = c.fn({
|
|
4843
4843
|
...t,
|
|
4844
|
-
[p]:
|
|
4844
|
+
[p]: m,
|
|
4845
4845
|
[h]: g
|
|
4846
4846
|
});
|
|
4847
4847
|
return {
|
|
@@ -4875,7 +4875,7 @@ const kf = function(e) {
|
|
|
4875
4875
|
x: n,
|
|
4876
4876
|
y: r
|
|
4877
4877
|
}, l = Te(o), h = Uo(l);
|
|
4878
|
-
let p = f[h],
|
|
4878
|
+
let p = f[h], m = f[l];
|
|
4879
4879
|
const g = Be(s, t), y = typeof g == "number" ? {
|
|
4880
4880
|
mainAxis: g,
|
|
4881
4881
|
crossAxis: 0
|
|
@@ -4885,17 +4885,17 @@ const kf = function(e) {
|
|
|
4885
4885
|
...g
|
|
4886
4886
|
};
|
|
4887
4887
|
if (c) {
|
|
4888
|
-
const
|
|
4889
|
-
p <
|
|
4888
|
+
const b = h === "y" ? "height" : "width", w = i.reference[h] - i.floating[b] + y.mainAxis, $ = i.reference[h] + i.reference[b] - y.mainAxis;
|
|
4889
|
+
p < w ? p = w : p > $ && (p = $);
|
|
4890
4890
|
}
|
|
4891
4891
|
if (d) {
|
|
4892
|
-
var
|
|
4893
|
-
const
|
|
4894
|
-
|
|
4892
|
+
var v, _;
|
|
4893
|
+
const b = h === "y" ? "width" : "height", w = sc.has(qe(o)), $ = i.reference[l] - i.floating[b] + (w && ((v = a.offset) == null ? void 0 : v[l]) || 0) + (w ? 0 : y.crossAxis), x = i.reference[l] + i.reference[b] + (w ? 0 : ((_ = a.offset) == null ? void 0 : _[l]) || 0) - (w ? y.crossAxis : 0);
|
|
4894
|
+
m < $ ? m = $ : m > x && (m = x);
|
|
4895
4895
|
}
|
|
4896
4896
|
return {
|
|
4897
4897
|
[h]: p,
|
|
4898
|
-
[l]:
|
|
4898
|
+
[l]: m
|
|
4899
4899
|
};
|
|
4900
4900
|
}
|
|
4901
4901
|
};
|
|
@@ -4915,24 +4915,24 @@ const kf = function(e) {
|
|
|
4915
4915
|
},
|
|
4916
4916
|
...d
|
|
4917
4917
|
} = Be(e, t), f = await a.detectOverflow(t, d), l = qe(o), h = jt(o), p = Te(o) === "y", {
|
|
4918
|
-
width:
|
|
4918
|
+
width: m,
|
|
4919
4919
|
height: g
|
|
4920
4920
|
} = i.floating;
|
|
4921
|
-
let y,
|
|
4922
|
-
l === "top" || l === "bottom" ? (y = l,
|
|
4923
|
-
const
|
|
4924
|
-
let
|
|
4925
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (
|
|
4926
|
-
const
|
|
4927
|
-
p ?
|
|
4921
|
+
let y, v;
|
|
4922
|
+
l === "top" || l === "bottom" ? (y = l, v = h === (await (a.isRTL == null ? void 0 : a.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (v = l, y = h === "end" ? "top" : "bottom");
|
|
4923
|
+
const _ = g - f.top - f.bottom, b = m - f.left - f.right, w = nt(g - f[y], _), $ = nt(m - f[v], b), x = !t.middlewareData.shift;
|
|
4924
|
+
let C = w, S = $;
|
|
4925
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (S = b), (r = t.middlewareData.shift) != null && r.enabled.y && (C = _), x && !h) {
|
|
4926
|
+
const P = le(f.left, 0), F = le(f.right, 0), T = le(f.top, 0), I = le(f.bottom, 0);
|
|
4927
|
+
p ? S = m - 2 * (P !== 0 || F !== 0 ? P + F : le(f.left, f.right)) : C = g - 2 * (T !== 0 || I !== 0 ? T + I : le(f.top, f.bottom));
|
|
4928
4928
|
}
|
|
4929
4929
|
await c({
|
|
4930
4930
|
...t,
|
|
4931
|
-
availableWidth:
|
|
4932
|
-
availableHeight:
|
|
4931
|
+
availableWidth: S,
|
|
4932
|
+
availableHeight: C
|
|
4933
4933
|
});
|
|
4934
|
-
const
|
|
4935
|
-
return
|
|
4934
|
+
const E = await a.getDimensions(s.floating);
|
|
4935
|
+
return m !== E.width || g !== E.height ? {
|
|
4936
4936
|
reset: {
|
|
4937
4937
|
rects: !0
|
|
4938
4938
|
}
|
|
@@ -5102,10 +5102,10 @@ function dt(e, t, n, r) {
|
|
|
5102
5102
|
let c = (o.left + s.x) / a.x, d = (o.top + s.y) / a.y, f = o.width / a.x, l = o.height / a.y;
|
|
5103
5103
|
if (i) {
|
|
5104
5104
|
const h = ue(i), p = r && xe(r) ? ue(r) : r;
|
|
5105
|
-
let
|
|
5106
|
-
for (; g && r && p !==
|
|
5107
|
-
const y = Ot(g),
|
|
5108
|
-
c *= y.x, d *= y.y, f *= y.x, l *= y.y, c +=
|
|
5105
|
+
let m = h, g = po(m);
|
|
5106
|
+
for (; g && r && p !== m; ) {
|
|
5107
|
+
const y = Ot(g), v = g.getBoundingClientRect(), _ = $e(g), b = v.left + (g.clientLeft + parseFloat(_.paddingLeft)) * y.x, w = v.top + (g.clientTop + parseFloat(_.paddingTop)) * y.y;
|
|
5108
|
+
c *= y.x, d *= y.y, f *= y.x, l *= y.y, c += b, d += w, m = ue(g), g = po(m);
|
|
5109
5109
|
}
|
|
5110
5110
|
}
|
|
5111
5111
|
return zn({
|
|
@@ -5178,8 +5178,8 @@ function Hf(e, t) {
|
|
|
5178
5178
|
}
|
|
5179
5179
|
const d = nr(r);
|
|
5180
5180
|
if (d <= 0) {
|
|
5181
|
-
const f = r.ownerDocument, l = f.body, h = getComputedStyle(l), p = f.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0,
|
|
5182
|
-
|
|
5181
|
+
const f = r.ownerDocument, l = f.body, h = getComputedStyle(l), p = f.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, m = Math.abs(r.clientWidth - l.clientWidth - p);
|
|
5182
|
+
m <= na && (i -= m);
|
|
5183
5183
|
} else d <= na && (i += d);
|
|
5184
5184
|
return {
|
|
5185
5185
|
width: i,
|
|
@@ -5363,30 +5363,30 @@ function Zf(e, t) {
|
|
|
5363
5363
|
} = d;
|
|
5364
5364
|
if (s || t(), !h || !p)
|
|
5365
5365
|
return;
|
|
5366
|
-
const
|
|
5367
|
-
rootMargin: -
|
|
5366
|
+
const m = Cn(l), g = Cn(o.clientWidth - (f + h)), y = Cn(o.clientHeight - (l + p)), v = Cn(f), b = {
|
|
5367
|
+
rootMargin: -m + "px " + -g + "px " + -y + "px " + -v + "px",
|
|
5368
5368
|
threshold: le(0, nt(1, c)) || 1
|
|
5369
5369
|
};
|
|
5370
|
-
let
|
|
5371
|
-
function
|
|
5372
|
-
const
|
|
5373
|
-
if (
|
|
5374
|
-
if (!
|
|
5370
|
+
let w = !0;
|
|
5371
|
+
function $(x) {
|
|
5372
|
+
const C = x[0].intersectionRatio;
|
|
5373
|
+
if (C !== c) {
|
|
5374
|
+
if (!w)
|
|
5375
5375
|
return a();
|
|
5376
|
-
|
|
5376
|
+
C ? a(!1, C) : r = setTimeout(() => {
|
|
5377
5377
|
a(!1, 1e-7);
|
|
5378
5378
|
}, 1e3);
|
|
5379
5379
|
}
|
|
5380
|
-
|
|
5380
|
+
C === 1 && !gc(d, e.getBoundingClientRect()) && a(), w = !1;
|
|
5381
5381
|
}
|
|
5382
5382
|
try {
|
|
5383
|
-
n = new IntersectionObserver(
|
|
5384
|
-
...
|
|
5383
|
+
n = new IntersectionObserver($, {
|
|
5384
|
+
...b,
|
|
5385
5385
|
// Handle <iframe>s
|
|
5386
5386
|
root: o.ownerDocument
|
|
5387
5387
|
});
|
|
5388
5388
|
} catch {
|
|
5389
|
-
n = new IntersectionObserver(b
|
|
5389
|
+
n = new IntersectionObserver($, b);
|
|
5390
5390
|
}
|
|
5391
5391
|
n.observe(e);
|
|
5392
5392
|
}
|
|
@@ -5401,31 +5401,31 @@ function Xf(e, t, n, r) {
|
|
|
5401
5401
|
layoutShift: s = typeof IntersectionObserver == "function",
|
|
5402
5402
|
animationFrame: c = !1
|
|
5403
5403
|
} = r, d = Ko(e), f = o || i ? [...d ? Xt(d) : [], ...t ? Xt(t) : []] : [];
|
|
5404
|
-
f.forEach((
|
|
5405
|
-
o &&
|
|
5404
|
+
f.forEach((v) => {
|
|
5405
|
+
o && v.addEventListener("scroll", n, {
|
|
5406
5406
|
passive: !0
|
|
5407
|
-
}), i &&
|
|
5407
|
+
}), i && v.addEventListener("resize", n);
|
|
5408
5408
|
});
|
|
5409
5409
|
const l = d && s ? Zf(d, n) : null;
|
|
5410
5410
|
let h = -1, p = null;
|
|
5411
|
-
a && (p = new ResizeObserver((
|
|
5412
|
-
let [
|
|
5413
|
-
|
|
5414
|
-
var
|
|
5415
|
-
(
|
|
5411
|
+
a && (p = new ResizeObserver((v) => {
|
|
5412
|
+
let [_] = v;
|
|
5413
|
+
_ && _.target === d && p && t && (p.unobserve(t), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
|
|
5414
|
+
var b;
|
|
5415
|
+
(b = p) == null || b.observe(t);
|
|
5416
5416
|
})), n();
|
|
5417
5417
|
}), d && !c && p.observe(d), t && p.observe(t));
|
|
5418
|
-
let
|
|
5418
|
+
let m, g = c ? dt(e) : null;
|
|
5419
5419
|
c && y();
|
|
5420
5420
|
function y() {
|
|
5421
|
-
const
|
|
5422
|
-
g && !gc(g,
|
|
5421
|
+
const v = dt(e);
|
|
5422
|
+
g && !gc(g, v) && n(), g = v, m = requestAnimationFrame(y);
|
|
5423
5423
|
}
|
|
5424
5424
|
return n(), () => {
|
|
5425
|
-
var
|
|
5426
|
-
f.forEach((
|
|
5427
|
-
o &&
|
|
5428
|
-
}), l == null || l(), (
|
|
5425
|
+
var v;
|
|
5426
|
+
f.forEach((_) => {
|
|
5427
|
+
o && _.removeEventListener("scroll", n), i && _.removeEventListener("resize", n);
|
|
5428
|
+
}), l == null || l(), (v = p) == null || v.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
5429
5429
|
};
|
|
5430
5430
|
}
|
|
5431
5431
|
const Jf = kf, Qf = Tf, ep = Ef, tp = Pf, np = Sf, ia = Cf, rp = Af, op = (e, t, n) => {
|
|
@@ -5499,39 +5499,39 @@ function ip(e) {
|
|
|
5499
5499
|
transform: s = !0,
|
|
5500
5500
|
whileElementsMounted: c,
|
|
5501
5501
|
open: d
|
|
5502
|
-
} = e, [f, l] =
|
|
5502
|
+
} = e, [f, l] = M({
|
|
5503
5503
|
x: 0,
|
|
5504
5504
|
y: 0,
|
|
5505
5505
|
strategy: n,
|
|
5506
5506
|
placement: t,
|
|
5507
5507
|
middlewareData: {},
|
|
5508
5508
|
isPositioned: !1
|
|
5509
|
-
}), [h, p] =
|
|
5509
|
+
}), [h, p] = M(r);
|
|
5510
5510
|
Bn(h, r) || p(r);
|
|
5511
|
-
const [
|
|
5512
|
-
k !==
|
|
5513
|
-
}, []),
|
|
5514
|
-
k !==
|
|
5515
|
-
}, []),
|
|
5516
|
-
if (
|
|
5511
|
+
const [m, g] = M(null), [y, v] = M(null), _ = U((k) => {
|
|
5512
|
+
k !== x.current && (x.current = k, g(k));
|
|
5513
|
+
}, []), b = U((k) => {
|
|
5514
|
+
k !== C.current && (C.current = k, v(k));
|
|
5515
|
+
}, []), w = i || m, $ = a || y, x = A(null), C = A(null), S = A(f), E = c != null, P = sa(c), F = sa(o), T = U(() => {
|
|
5516
|
+
if (!x.current || !C.current)
|
|
5517
5517
|
return;
|
|
5518
5518
|
const k = {
|
|
5519
5519
|
placement: t,
|
|
5520
5520
|
strategy: n,
|
|
5521
5521
|
middleware: h
|
|
5522
5522
|
};
|
|
5523
|
-
F.current && (k.platform = F.current), op(
|
|
5523
|
+
F.current && (k.platform = F.current), op(x.current, C.current, k).then((z) => {
|
|
5524
5524
|
const W = {
|
|
5525
5525
|
...z,
|
|
5526
5526
|
isPositioned: !0
|
|
5527
5527
|
};
|
|
5528
|
-
I.current && !Bn(
|
|
5528
|
+
I.current && !Bn(S.current, W) && (S.current = W, an(() => {
|
|
5529
5529
|
l(W);
|
|
5530
5530
|
}));
|
|
5531
5531
|
});
|
|
5532
5532
|
}, [h, t, n, F]);
|
|
5533
5533
|
An(() => {
|
|
5534
|
-
d === !1 &&
|
|
5534
|
+
d === !1 && S.current.isPositioned && (S.current.isPositioned = !1, l((k) => ({
|
|
5535
5535
|
...k,
|
|
5536
5536
|
isPositioned: !1
|
|
5537
5537
|
})));
|
|
@@ -5540,33 +5540,33 @@ function ip(e) {
|
|
|
5540
5540
|
An(() => (I.current = !0, () => {
|
|
5541
5541
|
I.current = !1;
|
|
5542
5542
|
}), []), An(() => {
|
|
5543
|
-
if (
|
|
5544
|
-
if (
|
|
5545
|
-
return
|
|
5543
|
+
if (w && (x.current = w), $ && (C.current = $), w && $) {
|
|
5544
|
+
if (P.current)
|
|
5545
|
+
return P.current(w, $, T);
|
|
5546
5546
|
T();
|
|
5547
5547
|
}
|
|
5548
|
-
}, [
|
|
5549
|
-
const
|
|
5550
|
-
reference: $,
|
|
5551
|
-
floating: E,
|
|
5552
|
-
setReference: m,
|
|
5553
|
-
setFloating: w
|
|
5554
|
-
}), [m, w]), R = K(() => ({
|
|
5548
|
+
}, [w, $, T, P, E]);
|
|
5549
|
+
const L = K(() => ({
|
|
5555
5550
|
reference: x,
|
|
5556
|
-
floating:
|
|
5557
|
-
|
|
5551
|
+
floating: C,
|
|
5552
|
+
setReference: _,
|
|
5553
|
+
setFloating: b
|
|
5554
|
+
}), [_, b]), D = K(() => ({
|
|
5555
|
+
reference: w,
|
|
5556
|
+
floating: $
|
|
5557
|
+
}), [w, $]), R = K(() => {
|
|
5558
5558
|
const k = {
|
|
5559
5559
|
position: n,
|
|
5560
5560
|
left: 0,
|
|
5561
5561
|
top: 0
|
|
5562
5562
|
};
|
|
5563
|
-
if (!
|
|
5563
|
+
if (!D.floating)
|
|
5564
5564
|
return k;
|
|
5565
|
-
const z = aa(
|
|
5565
|
+
const z = aa(D.floating, f.x), W = aa(D.floating, f.y);
|
|
5566
5566
|
return s ? {
|
|
5567
5567
|
...k,
|
|
5568
5568
|
transform: "translate(" + z + "px, " + W + "px)",
|
|
5569
|
-
...vc(
|
|
5569
|
+
...vc(D.floating) >= 1.5 && {
|
|
5570
5570
|
willChange: "transform"
|
|
5571
5571
|
}
|
|
5572
5572
|
} : {
|
|
@@ -5574,14 +5574,14 @@ function ip(e) {
|
|
|
5574
5574
|
left: z,
|
|
5575
5575
|
top: W
|
|
5576
5576
|
};
|
|
5577
|
-
}, [n, s,
|
|
5577
|
+
}, [n, s, D.floating, f.x, f.y]);
|
|
5578
5578
|
return K(() => ({
|
|
5579
5579
|
...f,
|
|
5580
5580
|
update: T,
|
|
5581
|
-
refs:
|
|
5582
|
-
elements:
|
|
5583
|
-
floatingStyles:
|
|
5584
|
-
}), [f, T, D, R
|
|
5581
|
+
refs: L,
|
|
5582
|
+
elements: D,
|
|
5583
|
+
floatingStyles: R
|
|
5584
|
+
}), [f, T, L, D, R]);
|
|
5585
5585
|
}
|
|
5586
5586
|
const ap = (e) => {
|
|
5587
5587
|
function t(n) {
|
|
@@ -5627,7 +5627,7 @@ const ap = (e) => {
|
|
|
5627
5627
|
options: [e, t]
|
|
5628
5628
|
});
|
|
5629
5629
|
function hp(e) {
|
|
5630
|
-
const [t, n] =
|
|
5630
|
+
const [t, n] = M(void 0);
|
|
5631
5631
|
return Dt(() => {
|
|
5632
5632
|
if (e) {
|
|
5633
5633
|
n({
|
|
@@ -5658,7 +5658,7 @@ function hp(e) {
|
|
|
5658
5658
|
]), t;
|
|
5659
5659
|
}
|
|
5660
5660
|
const mc = "Popper", [_c, yc] = Fo(mc), [gp, bc] = _c(mc), vp = (e) => {
|
|
5661
|
-
const { __scopePopper: t, children: n } = e, [r, o] =
|
|
5661
|
+
const { __scopePopper: t, children: n } = e, [r, o] = M(null);
|
|
5662
5662
|
return /* @__PURE__ */ O(gp, {
|
|
5663
5663
|
scope: t,
|
|
5664
5664
|
anchor: r,
|
|
@@ -5673,17 +5673,17 @@ const mc = "Popper", [_c, yc] = Fo(mc), [gp, bc] = _c(mc), vp = (e) => {
|
|
|
5673
5673
|
}));
|
|
5674
5674
|
}), wc = "PopperContent", [yp, ty] = _c(wc), bp = /* @__PURE__ */ Z((e, t) => {
|
|
5675
5675
|
var n, r, o, i, a, s, c, d;
|
|
5676
|
-
const { __scopePopper: f, side: l = "bottom", sideOffset: h = 0, align: p = "center", alignOffset:
|
|
5676
|
+
const { __scopePopper: f, side: l = "bottom", sideOffset: h = 0, align: p = "center", alignOffset: m = 0, arrowPadding: g = 0, avoidCollisions: y = !0, collisionBoundary: v = [], collisionPadding: _ = 0, sticky: b = "partial", hideWhenDetached: w = !1, updatePositionStrategy: $ = "optimized", onPlaced: x, ...C } = e, S = bc(wc, f), [E, P] = M(null), F = De(
|
|
5677
5677
|
t,
|
|
5678
|
-
(vt) =>
|
|
5679
|
-
), [T, I] =
|
|
5678
|
+
(vt) => P(vt)
|
|
5679
|
+
), [T, I] = M(null), L = hp(T), D = (n = L == null ? void 0 : L.width) !== null && n !== void 0 ? n : 0, R = (r = L == null ? void 0 : L.height) !== null && r !== void 0 ? r : 0, k = l + (p !== "center" ? "-" + p : ""), z = typeof _ == "number" ? _ : {
|
|
5680
5680
|
top: 0,
|
|
5681
5681
|
right: 0,
|
|
5682
5682
|
bottom: 0,
|
|
5683
5683
|
left: 0,
|
|
5684
|
-
...
|
|
5685
|
-
}, W = Array.isArray(
|
|
5686
|
-
|
|
5684
|
+
..._
|
|
5685
|
+
}, W = Array.isArray(v) ? v : [
|
|
5686
|
+
v
|
|
5687
5687
|
], se = W.length > 0, pt = {
|
|
5688
5688
|
padding: z,
|
|
5689
5689
|
boundary: W.filter(wp),
|
|
@@ -5694,20 +5694,20 @@ const mc = "Popper", [_c, yc] = Fo(mc), [gp, bc] = _c(mc), vp = (e) => {
|
|
|
5694
5694
|
strategy: "fixed",
|
|
5695
5695
|
placement: k,
|
|
5696
5696
|
whileElementsMounted: (...vt) => Xf(...vt, {
|
|
5697
|
-
animationFrame:
|
|
5697
|
+
animationFrame: $ === "always"
|
|
5698
5698
|
}),
|
|
5699
5699
|
elements: {
|
|
5700
|
-
reference:
|
|
5700
|
+
reference: S.anchor
|
|
5701
5701
|
},
|
|
5702
5702
|
middleware: [
|
|
5703
5703
|
sp({
|
|
5704
|
-
mainAxis: h +
|
|
5705
|
-
alignmentAxis:
|
|
5704
|
+
mainAxis: h + R,
|
|
5705
|
+
alignmentAxis: m
|
|
5706
5706
|
}),
|
|
5707
5707
|
y && cp({
|
|
5708
5708
|
mainAxis: !0,
|
|
5709
5709
|
crossAxis: !1,
|
|
5710
|
-
limiter:
|
|
5710
|
+
limiter: b === "partial" ? lp() : void 0,
|
|
5711
5711
|
...pt
|
|
5712
5712
|
}),
|
|
5713
5713
|
y && up({
|
|
@@ -5716,8 +5716,8 @@ const mc = "Popper", [_c, yc] = Fo(mc), [gp, bc] = _c(mc), vp = (e) => {
|
|
|
5716
5716
|
dp({
|
|
5717
5717
|
...pt,
|
|
5718
5718
|
apply: ({ elements: vt, rects: B, availableWidth: X, availableHeight: J }) => {
|
|
5719
|
-
const { width: Q, height: fe } = B.reference,
|
|
5720
|
-
|
|
5719
|
+
const { width: Q, height: fe } = B.reference, oe = vt.floating.style;
|
|
5720
|
+
oe.setProperty("--radix-popper-available-width", `${X}px`), oe.setProperty("--radix-popper-available-height", `${J}px`), oe.setProperty("--radix-popper-anchor-width", `${Q}px`), oe.setProperty("--radix-popper-anchor-height", `${fe}px`);
|
|
5721
5721
|
}
|
|
5722
5722
|
}),
|
|
5723
5723
|
T && pp({
|
|
@@ -5725,26 +5725,26 @@ const mc = "Popper", [_c, yc] = Fo(mc), [gp, bc] = _c(mc), vp = (e) => {
|
|
|
5725
5725
|
padding: g
|
|
5726
5726
|
}),
|
|
5727
5727
|
xp({
|
|
5728
|
-
arrowWidth:
|
|
5729
|
-
arrowHeight:
|
|
5728
|
+
arrowWidth: D,
|
|
5729
|
+
arrowHeight: R
|
|
5730
5730
|
}),
|
|
5731
|
-
|
|
5731
|
+
w && fp({
|
|
5732
5732
|
strategy: "referenceHidden",
|
|
5733
5733
|
...pt
|
|
5734
5734
|
})
|
|
5735
5735
|
]
|
|
5736
|
-
}), [Ee, at] = xc(ht), gt = tt(
|
|
5736
|
+
}), [Ee, at] = xc(ht), gt = tt(x);
|
|
5737
5737
|
Dt(() => {
|
|
5738
5738
|
Ze && (gt == null || gt());
|
|
5739
5739
|
}, [
|
|
5740
5740
|
Ze,
|
|
5741
5741
|
gt
|
|
5742
5742
|
]);
|
|
5743
|
-
const zt = (o = _e.arrow) === null || o === void 0 ? void 0 : o.x, lr = (i = _e.arrow) === null || i === void 0 ? void 0 : i.y, ur = ((a = _e.arrow) === null || a === void 0 ? void 0 : a.centerOffset) !== 0, [st, dn] =
|
|
5743
|
+
const zt = (o = _e.arrow) === null || o === void 0 ? void 0 : o.x, lr = (i = _e.arrow) === null || i === void 0 ? void 0 : i.y, ur = ((a = _e.arrow) === null || a === void 0 ? void 0 : a.centerOffset) !== 0, [st, dn] = M();
|
|
5744
5744
|
return Dt(() => {
|
|
5745
|
-
|
|
5745
|
+
E && dn(window.getComputedStyle(E).zIndex);
|
|
5746
5746
|
}, [
|
|
5747
|
-
|
|
5747
|
+
E
|
|
5748
5748
|
]), /* @__PURE__ */ O("div", {
|
|
5749
5749
|
ref: Ye.setFloating,
|
|
5750
5750
|
"data-radix-popper-content-wrapper": "",
|
|
@@ -5770,10 +5770,10 @@ const mc = "Popper", [_c, yc] = Fo(mc), [gp, bc] = _c(mc), vp = (e) => {
|
|
|
5770
5770
|
}, /* @__PURE__ */ O(ot.div, Y({
|
|
5771
5771
|
"data-side": Ee,
|
|
5772
5772
|
"data-align": at
|
|
5773
|
-
},
|
|
5773
|
+
}, C, {
|
|
5774
5774
|
ref: F,
|
|
5775
5775
|
style: {
|
|
5776
|
-
...
|
|
5776
|
+
...C.style,
|
|
5777
5777
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
5778
5778
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
5779
5779
|
animation: Ze ? void 0 : "none",
|
|
@@ -5790,16 +5790,16 @@ const xp = (e) => ({
|
|
|
5790
5790
|
options: e,
|
|
5791
5791
|
fn(t) {
|
|
5792
5792
|
var n, r, o, i, a;
|
|
5793
|
-
const { placement: s, rects: c, middlewareData: d } = t, l = ((n = d.arrow) === null || n === void 0 ? void 0 : n.centerOffset) !== 0, h = l ? 0 : e.arrowWidth, p = l ? 0 : e.arrowHeight, [
|
|
5793
|
+
const { placement: s, rects: c, middlewareData: d } = t, l = ((n = d.arrow) === null || n === void 0 ? void 0 : n.centerOffset) !== 0, h = l ? 0 : e.arrowWidth, p = l ? 0 : e.arrowHeight, [m, g] = xc(s), y = {
|
|
5794
5794
|
start: "0%",
|
|
5795
5795
|
center: "50%",
|
|
5796
5796
|
end: "100%"
|
|
5797
|
-
}[g],
|
|
5798
|
-
let
|
|
5799
|
-
return
|
|
5797
|
+
}[g], v = ((r = (o = d.arrow) === null || o === void 0 ? void 0 : o.x) !== null && r !== void 0 ? r : 0) + h / 2, _ = ((i = (a = d.arrow) === null || a === void 0 ? void 0 : a.y) !== null && i !== void 0 ? i : 0) + p / 2;
|
|
5798
|
+
let b = "", w = "";
|
|
5799
|
+
return m === "bottom" ? (b = l ? y : `${v}px`, w = `${-p}px`) : m === "top" ? (b = l ? y : `${v}px`, w = `${c.floating.height + p}px`) : m === "right" ? (b = `${-p}px`, w = l ? y : `${_}px`) : m === "left" && (b = `${c.floating.width + p}px`, w = l ? y : `${_}px`), {
|
|
5800
5800
|
data: {
|
|
5801
|
-
x:
|
|
5802
|
-
y:
|
|
5801
|
+
x: b,
|
|
5802
|
+
y: w
|
|
5803
5803
|
}
|
|
5804
5804
|
};
|
|
5805
5805
|
}
|
|
@@ -5814,7 +5814,7 @@ function xc(e) {
|
|
|
5814
5814
|
const $p = vp, Cp = _p, Ep = bp, $c = "Popover", [Cc] = Fo($c, [
|
|
5815
5815
|
yc
|
|
5816
5816
|
]), Go = yc(), [Sp, Vt] = Cc($c), Op = (e) => {
|
|
5817
|
-
const { __scopePopover: t, children: n, open: r, defaultOpen: o, onOpenChange: i, modal: a = !1 } = e, s = Go(t), c = A(null), [d, f] =
|
|
5817
|
+
const { __scopePopover: t, children: n, open: r, defaultOpen: o, onOpenChange: i, modal: a = !1 } = e, s = Go(t), c = A(null), [d, f] = M(!1), [l = !1, h] = Fs({
|
|
5818
5818
|
prop: r,
|
|
5819
5819
|
defaultProp: o,
|
|
5820
5820
|
onChange: i
|
|
@@ -6077,7 +6077,7 @@ const Np = Op, Ip = Tp, jp = Rp, Fp = Dp, ca = (e) => {
|
|
|
6077
6077
|
onValueChange: o,
|
|
6078
6078
|
onClose: i
|
|
6079
6079
|
}) => {
|
|
6080
|
-
const { t: a } =
|
|
6080
|
+
const { t: a } = re(), s = rn(n()), c = K(() => {
|
|
6081
6081
|
switch (s.queryState) {
|
|
6082
6082
|
case "error":
|
|
6083
6083
|
case "idle":
|
|
@@ -6086,12 +6086,12 @@ const Np = Op, Ip = Tp, jp = Rp, Fp = Dp, ca = (e) => {
|
|
|
6086
6086
|
case "loaded":
|
|
6087
6087
|
case "revalidating": {
|
|
6088
6088
|
const p = s.data[t.key] ?? [];
|
|
6089
|
-
return Object.fromEntries(p.map((
|
|
6089
|
+
return Object.fromEntries(p.map((m) => [m.value, m.jobs]));
|
|
6090
6090
|
}
|
|
6091
6091
|
default:
|
|
6092
6092
|
$t(s);
|
|
6093
6093
|
}
|
|
6094
|
-
}, [s, t.key]), d = Pc(e), f = d.length > 0, [l, h] =
|
|
6094
|
+
}, [s, t.key]), d = Pc(e), f = d.length > 0, [l, h] = M();
|
|
6095
6095
|
return /* @__PURE__ */ u("div", { class: "theme-fill:bg-neutral-1 flex min-h-0 w-full flex-1 flex-col", children: [
|
|
6096
6096
|
t.searchable && /* @__PURE__ */ u("div", { class: "border-b-px border-neutral-4", children: /* @__PURE__ */ u(
|
|
6097
6097
|
"input",
|
|
@@ -6118,28 +6118,28 @@ const Np = Op, Ip = Tp, jp = Rp, Fp = Dp, ca = (e) => {
|
|
|
6118
6118
|
);
|
|
6119
6119
|
case "idle":
|
|
6120
6120
|
case "loading":
|
|
6121
|
-
return /* @__PURE__ */ u("div", { "aria-hidden": !0, class: "flex flex-col p-2", children: Array.from({ length: 10 }).map((p,
|
|
6121
|
+
return /* @__PURE__ */ u("div", { "aria-hidden": !0, class: "flex flex-col p-2", children: Array.from({ length: 10 }).map((p, m) => /* @__PURE__ */ u(
|
|
6122
6122
|
"div",
|
|
6123
6123
|
{
|
|
6124
|
-
style: { animationDelay:
|
|
6124
|
+
style: { animationDelay: m * -0.1 + "s" },
|
|
6125
6125
|
class: "bg-neutral-3 animate-skeleton h-12 w-full"
|
|
6126
6126
|
},
|
|
6127
|
-
|
|
6127
|
+
m
|
|
6128
6128
|
)) });
|
|
6129
6129
|
case "revalidating":
|
|
6130
6130
|
case "loaded": {
|
|
6131
|
-
const p = s.data[t.key] ?? [],
|
|
6132
|
-
for (const
|
|
6133
|
-
if (
|
|
6134
|
-
const
|
|
6135
|
-
...
|
|
6136
|
-
results: Bp(c,
|
|
6137
|
-
disabled: zp(c,
|
|
6131
|
+
const p = s.data[t.key] ?? [], m = l && l.length > 1 ? p.filter((v) => v.label.toLowerCase().includes(l.toLowerCase())) : p, g = [];
|
|
6132
|
+
for (const v of m) {
|
|
6133
|
+
if (v.label.length < 1) continue;
|
|
6134
|
+
const _ = {
|
|
6135
|
+
...v,
|
|
6136
|
+
results: Bp(c, v),
|
|
6137
|
+
disabled: zp(c, v)
|
|
6138
6138
|
};
|
|
6139
|
-
t.results === "only-available" ?
|
|
6139
|
+
t.results === "only-available" ? _.disabled === !1 && g.push(_) : g.push(_);
|
|
6140
6140
|
}
|
|
6141
|
-
return g.find((
|
|
6142
|
-
const
|
|
6141
|
+
return g.find((v) => !v.disabled) ? /* @__PURE__ */ u("ul", { class: kc(), children: Vp(g, t.sortSuggestions).map((v) => {
|
|
6142
|
+
const _ = d.includes(v.value);
|
|
6143
6143
|
return /* @__PURE__ */ u(
|
|
6144
6144
|
"li",
|
|
6145
6145
|
{
|
|
@@ -6150,23 +6150,24 @@ const Np = Op, Ip = Tp, jp = Rp, Fp = Dp, ca = (e) => {
|
|
|
6150
6150
|
"button",
|
|
6151
6151
|
{
|
|
6152
6152
|
type: "button",
|
|
6153
|
-
disabled:
|
|
6153
|
+
disabled: v.disabled,
|
|
6154
6154
|
"data-filter": !0,
|
|
6155
|
-
"data-current-value":
|
|
6155
|
+
"data-current-value": _ ? "true" : void 0,
|
|
6156
|
+
"aria-pressed": _,
|
|
6156
6157
|
onClick: () => {
|
|
6157
6158
|
switch (e.select) {
|
|
6158
6159
|
case "many": {
|
|
6159
|
-
const
|
|
6160
|
+
const b = Wp(d, v.value);
|
|
6160
6161
|
o({
|
|
6161
6162
|
select: "many",
|
|
6162
|
-
value:
|
|
6163
|
+
value: b
|
|
6163
6164
|
});
|
|
6164
6165
|
break;
|
|
6165
6166
|
}
|
|
6166
6167
|
case "one":
|
|
6167
6168
|
o({
|
|
6168
6169
|
select: "one",
|
|
6169
|
-
value:
|
|
6170
|
+
value: _ ? void 0 : v.value
|
|
6170
6171
|
});
|
|
6171
6172
|
break;
|
|
6172
6173
|
default:
|
|
@@ -6174,18 +6175,18 @@ const Np = Op, Ip = Tp, jp = Rp, Fp = Dp, ca = (e) => {
|
|
|
6174
6175
|
}
|
|
6175
6176
|
},
|
|
6176
6177
|
class: Ac({
|
|
6177
|
-
active:
|
|
6178
|
-
disabled:
|
|
6178
|
+
active: _,
|
|
6179
|
+
disabled: v.disabled
|
|
6179
6180
|
}),
|
|
6180
6181
|
children: [
|
|
6181
|
-
/* @__PURE__ */ u("span", { class: "max-w-full truncate", children:
|
|
6182
|
+
/* @__PURE__ */ u("span", { class: "max-w-full truncate", children: v.label }),
|
|
6182
6183
|
" ",
|
|
6183
|
-
/* @__PURE__ */ u(Up, { colorScheme:
|
|
6184
|
+
/* @__PURE__ */ u(Up, { colorScheme: _ ? "accentStrong" : "neutralStrong", children: v.results })
|
|
6184
6185
|
]
|
|
6185
6186
|
}
|
|
6186
6187
|
)
|
|
6187
6188
|
},
|
|
6188
|
-
|
|
6189
|
+
v.value
|
|
6189
6190
|
);
|
|
6190
6191
|
}) }) : /* @__PURE__ */ u("p", { class: "font-style-tag text-style-tag font-weight-tag w-full flex-1 px-4 pb-1 pt-4 text-center", children: a("no_filter_options_available") });
|
|
6191
6192
|
}
|
|
@@ -6282,7 +6283,7 @@ const Np = Op, Ip = Tp, jp = Rp, Fp = Dp, ca = (e) => {
|
|
|
6282
6283
|
theme: s,
|
|
6283
6284
|
widgetId: c
|
|
6284
6285
|
}) => {
|
|
6285
|
-
const d = Xc(r.key, ua) ? ua[r.key] : void 0, f = r.icon ?? d ?? "filter", l = Pc(t), h = l.length > 0, p = Is("(pointer: coarse)"),
|
|
6286
|
+
const d = Xc(r.key, ua) ? ua[r.key] : void 0, f = r.icon ?? d ?? "filter", l = Pc(t), h = l.length > 0, { t: p } = re(), m = h ? `${r.label}, ${l.length} ${p("selected")}` : r.label, g = Is("(pointer: coarse)"), y = /* @__PURE__ */ u(H, { children: [
|
|
6286
6287
|
/* @__PURE__ */ u("div", { class: "flex min-w-0 flex-1 items-center gap-1.5", children: [
|
|
6287
6288
|
/* @__PURE__ */ u(te, { "aria-hidden": !0, class: "flex-none", name: f }),
|
|
6288
6289
|
/* @__PURE__ */ u("span", { class: "truncate", children: r.label })
|
|
@@ -6296,7 +6297,7 @@ const Np = Op, Ip = Tp, jp = Rp, Fp = Dp, ca = (e) => {
|
|
|
6296
6297
|
}
|
|
6297
6298
|
),
|
|
6298
6299
|
/* @__PURE__ */ u(Kp, { selectedValues: l })
|
|
6299
|
-
] }),
|
|
6300
|
+
] }), v = /* @__PURE__ */ u(
|
|
6300
6301
|
qp,
|
|
6301
6302
|
{
|
|
6302
6303
|
useQuery: a,
|
|
@@ -6305,19 +6306,18 @@ const Np = Op, Ip = Tp, jp = Rp, Fp = Dp, ca = (e) => {
|
|
|
6305
6306
|
unfilteredQuery: i,
|
|
6306
6307
|
property: r,
|
|
6307
6308
|
value: t,
|
|
6308
|
-
isMobile:
|
|
6309
|
+
isMobile: g
|
|
6309
6310
|
}
|
|
6310
6311
|
);
|
|
6311
|
-
return
|
|
6312
|
+
return g ? /* @__PURE__ */ u(sf, { open: e, onOpenChange: n, children: [
|
|
6312
6313
|
/* @__PURE__ */ u(
|
|
6313
6314
|
cf,
|
|
6314
6315
|
{
|
|
6315
6316
|
"data-filter-key": r.key,
|
|
6316
|
-
"aria-label":
|
|
6317
|
-
"aria-selected": e ? "true" : void 0,
|
|
6317
|
+
"aria-label": m,
|
|
6318
6318
|
class: da({ state: e || h ? "active" : "default" }),
|
|
6319
6319
|
onTouchStart: Yp,
|
|
6320
|
-
children:
|
|
6320
|
+
children: y
|
|
6321
6321
|
}
|
|
6322
6322
|
),
|
|
6323
6323
|
/* @__PURE__ */ u(lf, { children: /* @__PURE__ */ u("div", { class: "inploi-job-search", "data-widget-id": c, children: [
|
|
@@ -6327,18 +6327,17 @@ const Np = Op, Ip = Tp, jp = Rp, Fp = Dp, ca = (e) => {
|
|
|
6327
6327
|
/* @__PURE__ */ u(te, { name: f, class: "flex-none" }),
|
|
6328
6328
|
/* @__PURE__ */ u("p", { class: "font-style-filter font-weight-filter text-style-filter truncate", children: r.label })
|
|
6329
6329
|
] }),
|
|
6330
|
-
|
|
6330
|
+
v
|
|
6331
6331
|
] })
|
|
6332
6332
|
] }) })
|
|
6333
|
-
] }) : /* @__PURE__ */ u(Np, { open: e, onOpenChange: (
|
|
6333
|
+
] }) : /* @__PURE__ */ u(Np, { open: e, onOpenChange: (_) => n(_), modal: g, children: [
|
|
6334
6334
|
/* @__PURE__ */ u(
|
|
6335
6335
|
Ip,
|
|
6336
6336
|
{
|
|
6337
6337
|
"data-filter-key": r.key,
|
|
6338
|
-
"aria-label":
|
|
6339
|
-
"aria-selected": e ? "true" : void 0,
|
|
6338
|
+
"aria-label": m,
|
|
6340
6339
|
class: da({ state: e || h ? "active" : "default" }),
|
|
6341
|
-
children:
|
|
6340
|
+
children: y
|
|
6342
6341
|
}
|
|
6343
6342
|
),
|
|
6344
6343
|
/* @__PURE__ */ u(jp, { children: /* @__PURE__ */ u("div", { class: "inploi-job-search", "data-widget-id": c, children: /* @__PURE__ */ u(
|
|
@@ -6349,7 +6348,7 @@ const Np = Op, Ip = Tp, jp = Rp, Fp = Dp, ca = (e) => {
|
|
|
6349
6348
|
align: "center",
|
|
6350
6349
|
collisionPadding: la,
|
|
6351
6350
|
class: fa({ mode: "desktop", class: io(s) }),
|
|
6352
|
-
children:
|
|
6351
|
+
children: v
|
|
6353
6352
|
}
|
|
6354
6353
|
) }) })
|
|
6355
6354
|
] });
|
|
@@ -6406,7 +6405,7 @@ const Zp = (e, t) => {
|
|
|
6406
6405
|
widgetId: s,
|
|
6407
6406
|
i18n: c
|
|
6408
6407
|
}) => {
|
|
6409
|
-
const { t: d } =
|
|
6408
|
+
const { t: d } = re(), [f, l] = M(void 0), h = K(
|
|
6410
6409
|
() => ({
|
|
6411
6410
|
filters: Kn(e, "value"),
|
|
6412
6411
|
mode: t.mode,
|
|
@@ -6428,7 +6427,7 @@ const Zp = (e, t) => {
|
|
|
6428
6427
|
}),
|
|
6429
6428
|
In
|
|
6430
6429
|
)
|
|
6431
|
-
),
|
|
6430
|
+
), m = U(
|
|
6432
6431
|
(g) => () => {
|
|
6433
6432
|
const y = {
|
|
6434
6433
|
...t,
|
|
@@ -6457,26 +6456,26 @@ const Zp = (e, t) => {
|
|
|
6457
6456
|
}
|
|
6458
6457
|
) : /* @__PURE__ */ u("div", { class: "ijs-filters-section flex w-full flex-col items-stretch justify-center gap-2 overflow-auto px-4 py-2 md:flex-row md:flex-wrap md:items-center", children: [
|
|
6459
6458
|
e.filter((g) => g.hidden !== !0).map((g) => {
|
|
6460
|
-
const y = f === g.key,
|
|
6461
|
-
|
|
6462
|
-
const
|
|
6463
|
-
const { newActiveKey:
|
|
6459
|
+
const y = f === g.key, v = t.filters[g.key] ?? { select: g.select, value: void 0 }, _ = h.filters[g.key];
|
|
6460
|
+
_ && Zp(v, _);
|
|
6461
|
+
const b = (x) => {
|
|
6462
|
+
const { newActiveKey: C, newValue: S } = Xp({
|
|
6464
6463
|
activeKey: f,
|
|
6465
|
-
value:
|
|
6464
|
+
value: x ?? _,
|
|
6466
6465
|
appliedFilters: t.filters
|
|
6467
6466
|
});
|
|
6468
|
-
return l(
|
|
6469
|
-
},
|
|
6467
|
+
return l(C), n(g.key, S);
|
|
6468
|
+
}, w = (x) => l(x ? g.key : void 0), $ = m(g.key);
|
|
6470
6469
|
return /* @__PURE__ */ u(jn, { Fallback: et, children: /* @__PURE__ */ u(
|
|
6471
6470
|
Gp,
|
|
6472
6471
|
{
|
|
6473
6472
|
unfilteredQuery: p,
|
|
6474
6473
|
active: y,
|
|
6475
6474
|
property: g,
|
|
6476
|
-
onActiveChange:
|
|
6477
|
-
value:
|
|
6478
|
-
useQuery:
|
|
6479
|
-
onValueChange:
|
|
6475
|
+
onActiveChange: w,
|
|
6476
|
+
value: v,
|
|
6477
|
+
useQuery: $,
|
|
6478
|
+
onValueChange: b,
|
|
6480
6479
|
theme: i,
|
|
6481
6480
|
widgetId: s
|
|
6482
6481
|
}
|
|
@@ -6571,47 +6570,47 @@ function Xh(e, t, n) {
|
|
|
6571
6570
|
if (typeof e != "function")
|
|
6572
6571
|
throw new TypeError(Gh);
|
|
6573
6572
|
t = _a(t) || 0, Kh(n) && (f = !!n.leading, l = "maxWait" in n, i = l ? Yh(_a(n.maxWait) || 0, t) : i, h = "trailing" in n ? !!n.trailing : h);
|
|
6574
|
-
function p(
|
|
6575
|
-
var
|
|
6576
|
-
return r = o = void 0, d =
|
|
6573
|
+
function p(x) {
|
|
6574
|
+
var C = r, S = o;
|
|
6575
|
+
return r = o = void 0, d = x, a = e.apply(S, C), a;
|
|
6577
6576
|
}
|
|
6578
|
-
function
|
|
6579
|
-
return d =
|
|
6577
|
+
function m(x) {
|
|
6578
|
+
return d = x, s = setTimeout(v, t), f ? p(x) : a;
|
|
6580
6579
|
}
|
|
6581
|
-
function g(
|
|
6582
|
-
var
|
|
6583
|
-
return l ? Zh(
|
|
6580
|
+
function g(x) {
|
|
6581
|
+
var C = x - c, S = x - d, E = t - C;
|
|
6582
|
+
return l ? Zh(E, i - S) : E;
|
|
6584
6583
|
}
|
|
6585
|
-
function y(
|
|
6586
|
-
var
|
|
6587
|
-
return c === void 0 ||
|
|
6584
|
+
function y(x) {
|
|
6585
|
+
var C = x - c, S = x - d;
|
|
6586
|
+
return c === void 0 || C >= t || C < 0 || l && S >= i;
|
|
6588
6587
|
}
|
|
6589
|
-
function
|
|
6590
|
-
var
|
|
6591
|
-
if (y(
|
|
6592
|
-
return
|
|
6593
|
-
s = setTimeout(
|
|
6588
|
+
function v() {
|
|
6589
|
+
var x = jr();
|
|
6590
|
+
if (y(x))
|
|
6591
|
+
return _(x);
|
|
6592
|
+
s = setTimeout(v, g(x));
|
|
6594
6593
|
}
|
|
6595
|
-
function
|
|
6596
|
-
return s = void 0, h && r ? p(
|
|
6594
|
+
function _(x) {
|
|
6595
|
+
return s = void 0, h && r ? p(x) : (r = o = void 0, a);
|
|
6597
6596
|
}
|
|
6598
|
-
function
|
|
6597
|
+
function b() {
|
|
6599
6598
|
s !== void 0 && clearTimeout(s), d = 0, r = c = o = s = void 0;
|
|
6600
6599
|
}
|
|
6601
|
-
function
|
|
6602
|
-
return s === void 0 ? a :
|
|
6600
|
+
function w() {
|
|
6601
|
+
return s === void 0 ? a : _(jr());
|
|
6603
6602
|
}
|
|
6604
|
-
function
|
|
6605
|
-
var
|
|
6606
|
-
if (r = arguments, o = this, c =
|
|
6603
|
+
function $() {
|
|
6604
|
+
var x = jr(), C = y(x);
|
|
6605
|
+
if (r = arguments, o = this, c = x, C) {
|
|
6607
6606
|
if (s === void 0)
|
|
6608
|
-
return
|
|
6607
|
+
return m(c);
|
|
6609
6608
|
if (l)
|
|
6610
|
-
return clearTimeout(s), s = setTimeout(
|
|
6609
|
+
return clearTimeout(s), s = setTimeout(v, t), p(c);
|
|
6611
6610
|
}
|
|
6612
|
-
return s === void 0 && (s = setTimeout(
|
|
6611
|
+
return s === void 0 && (s = setTimeout(v, t)), a;
|
|
6613
6612
|
}
|
|
6614
|
-
return
|
|
6613
|
+
return $.cancel = b, $.flush = w, $;
|
|
6615
6614
|
}
|
|
6616
6615
|
var Jh = Xh;
|
|
6617
6616
|
const Qh = /* @__PURE__ */ Es(Jh), go = "|", eg = (e, t) => {
|
|
@@ -6679,7 +6678,7 @@ const Qh = /* @__PURE__ */ Es(Jh), go = "|", eg = (e, t) => {
|
|
|
6679
6678
|
radius: Number.isNaN(a) ? Qt(mo) : a
|
|
6680
6679
|
};
|
|
6681
6680
|
}, og = (e, t = 1e3) => {
|
|
6682
|
-
const [n, r] =
|
|
6681
|
+
const [n, r] = M(e), o = K(() => Qh((i) => r(i), t), [t]);
|
|
6683
6682
|
return N(() => {
|
|
6684
6683
|
o(e);
|
|
6685
6684
|
}, [e, o]), n;
|
|
@@ -6699,23 +6698,24 @@ const Qh = /* @__PURE__ */ Es(Jh), go = "|", eg = (e, t) => {
|
|
|
6699
6698
|
menuProps: l,
|
|
6700
6699
|
query: h
|
|
6701
6700
|
}, p) => {
|
|
6702
|
-
const [
|
|
6701
|
+
const [m, g] = M(!1), [y, v] = M(), _ = A(!1), { t: b } = re();
|
|
6703
6702
|
N(() => {
|
|
6704
|
-
var
|
|
6705
|
-
|
|
6703
|
+
var x;
|
|
6704
|
+
v((x = o[0]) == null ? void 0 : x.id), _.current = !1;
|
|
6706
6705
|
}, [o]);
|
|
6707
|
-
const
|
|
6708
|
-
i(
|
|
6709
|
-
};
|
|
6706
|
+
const w = (x) => {
|
|
6707
|
+
i(x), g(!1);
|
|
6708
|
+
}, $ = !t && m && !e && o.length > 0;
|
|
6710
6709
|
return /* @__PURE__ */ u("div", { class: "relative h-full", children: [
|
|
6711
6710
|
/* @__PURE__ */ u(
|
|
6712
6711
|
"input",
|
|
6713
6712
|
{
|
|
6714
6713
|
name: n,
|
|
6714
|
+
"aria-label": r,
|
|
6715
6715
|
ref: p,
|
|
6716
6716
|
disabled: e,
|
|
6717
|
-
"data-active":
|
|
6718
|
-
"aria-controls": `ijs-${n}-menu
|
|
6717
|
+
"data-active": m ? "true" : void 0,
|
|
6718
|
+
"aria-controls": $ ? `ijs-${n}-menu` : void 0,
|
|
6719
6719
|
placeholder: r,
|
|
6720
6720
|
class: un({ size: "md" }),
|
|
6721
6721
|
onFocus: () => {
|
|
@@ -6727,30 +6727,30 @@ const Qh = /* @__PURE__ */ Es(Jh), go = "|", eg = (e, t) => {
|
|
|
6727
6727
|
}, 100);
|
|
6728
6728
|
},
|
|
6729
6729
|
value: h,
|
|
6730
|
-
onChange: (
|
|
6731
|
-
|
|
6730
|
+
onChange: (x) => {
|
|
6731
|
+
_.current = !1, s(x.currentTarget.value);
|
|
6732
6732
|
},
|
|
6733
|
-
onKeyDown: (
|
|
6734
|
-
switch (g(!0),
|
|
6733
|
+
onKeyDown: (x) => {
|
|
6734
|
+
switch (g(!0), x.key) {
|
|
6735
6735
|
case "ArrowDown":
|
|
6736
6736
|
case "ArrowUp": {
|
|
6737
|
-
const
|
|
6738
|
-
|
|
6739
|
-
const
|
|
6740
|
-
if (
|
|
6741
|
-
const
|
|
6742
|
-
if (!
|
|
6743
|
-
|
|
6737
|
+
const C = x.key === "ArrowDown" ? 1 : -1;
|
|
6738
|
+
x.preventDefault();
|
|
6739
|
+
const S = o.findIndex((P) => P.id === y);
|
|
6740
|
+
if (S === -1) return;
|
|
6741
|
+
const E = o[S + C] ?? o[x.key === "ArrowDown" ? 0 : o.length - 1];
|
|
6742
|
+
if (!E) return;
|
|
6743
|
+
v(E.id), _.current = !0;
|
|
6744
6744
|
break;
|
|
6745
6745
|
}
|
|
6746
6746
|
case "Enter":
|
|
6747
|
-
|
|
6747
|
+
x.preventDefault(), a(y, _.current);
|
|
6748
6748
|
}
|
|
6749
6749
|
},
|
|
6750
6750
|
...f
|
|
6751
6751
|
}
|
|
6752
6752
|
),
|
|
6753
|
-
|
|
6753
|
+
$ ? /* @__PURE__ */ u(
|
|
6754
6754
|
"ul",
|
|
6755
6755
|
{
|
|
6756
6756
|
className: kc({
|
|
@@ -6758,9 +6758,9 @@ const Qh = /* @__PURE__ */ Es(Jh), go = "|", eg = (e, t) => {
|
|
|
6758
6758
|
className: "ring-width-section rounded-input ring-job-card-stroke absolute left-0 right-0 top-12 z-50 w-full shadow-sm"
|
|
6759
6759
|
}),
|
|
6760
6760
|
id: `ijs-${n}-menu`,
|
|
6761
|
-
onMouseDown: (
|
|
6761
|
+
onMouseDown: (x) => x.preventDefault(),
|
|
6762
6762
|
...l,
|
|
6763
|
-
children: t ? /* @__PURE__ */ u("div", { role: "alert", children:
|
|
6763
|
+
children: t ? /* @__PURE__ */ u("div", { role: "alert", children: b("geo_suggestions_error") }) : o.map((x) => /* @__PURE__ */ u(
|
|
6764
6764
|
"li",
|
|
6765
6765
|
{
|
|
6766
6766
|
class: Tc({
|
|
@@ -6772,21 +6772,21 @@ const Qh = /* @__PURE__ */ Es(Jh), go = "|", eg = (e, t) => {
|
|
|
6772
6772
|
{
|
|
6773
6773
|
type: "button",
|
|
6774
6774
|
onMouseEnter: () => {
|
|
6775
|
-
|
|
6775
|
+
v(x.id), _.current = !0;
|
|
6776
6776
|
},
|
|
6777
6777
|
class: Ac({
|
|
6778
|
-
active:
|
|
6778
|
+
active: x.id === y,
|
|
6779
6779
|
className: "line-clamp-1 overflow-hidden truncate"
|
|
6780
6780
|
}),
|
|
6781
|
-
onClick: () => x
|
|
6782
|
-
onKeyDown: (
|
|
6783
|
-
|
|
6781
|
+
onClick: () => w(x.id),
|
|
6782
|
+
onKeyDown: (C) => {
|
|
6783
|
+
C.key === "Enter" && w(x.id);
|
|
6784
6784
|
},
|
|
6785
|
-
children:
|
|
6785
|
+
children: x.label
|
|
6786
6786
|
}
|
|
6787
6787
|
)
|
|
6788
6788
|
},
|
|
6789
|
-
|
|
6789
|
+
x.id
|
|
6790
6790
|
))
|
|
6791
6791
|
}
|
|
6792
6792
|
) : null
|
|
@@ -6894,7 +6894,7 @@ const _g = ({ signal: e, timeoutMs: t }) => new Promise((n, r) => {
|
|
|
6894
6894
|
onError: t,
|
|
6895
6895
|
signal: n
|
|
6896
6896
|
}) => {
|
|
6897
|
-
const [r, o] =
|
|
6897
|
+
const [r, o] = M("idle"), [i, a] = M(null), { t: s } = re(), c = (f) => {
|
|
6898
6898
|
o("idle"), a(f), e(f);
|
|
6899
6899
|
}, d = (f) => {
|
|
6900
6900
|
const l = wg(f);
|
|
@@ -6962,26 +6962,26 @@ const _g = ({ signal: e, timeoutMs: t }) => new Promise((n, r) => {
|
|
|
6962
6962
|
countries: o,
|
|
6963
6963
|
onError: i
|
|
6964
6964
|
}) => {
|
|
6965
|
-
const { t: a } =
|
|
6965
|
+
const { t: a } = re(), [s, c] = M(""), [d, f] = M(), l = og(s, 500), [h, p] = M(new AbortController()), m = Rt(l.trim().length >= vo ? [l, o] : null, wa, {
|
|
6966
6966
|
keepPreviousData: !1,
|
|
6967
6967
|
revalidateIfStale: !1,
|
|
6968
6968
|
revalidateOnFocus: !1
|
|
6969
|
-
}), { data: g, queryState: y, error:
|
|
6969
|
+
}), { data: g, queryState: y, error: v } = rn(m), _ = A(0), [b, w] = M("view"), $ = A(null), x = A(null), C = A(null), S = A(!1);
|
|
6970
6970
|
N(() => {
|
|
6971
6971
|
var T, I;
|
|
6972
|
-
|
|
6973
|
-
}, [
|
|
6974
|
-
const
|
|
6975
|
-
var
|
|
6976
|
-
|
|
6977
|
-
},
|
|
6972
|
+
b === "edit" && ((T = $.current) == null || T.focus()), b === "view" && n && S.current && (S.current = !1, (I = C.current) == null || I.focus());
|
|
6973
|
+
}, [b, n]);
|
|
6974
|
+
const E = (T, I) => {
|
|
6975
|
+
var L;
|
|
6976
|
+
_.current++, S.current = ((L = x.current) == null ? void 0 : L.contains(document.activeElement)) ?? !1, e(T, I), f(I), c(""), w("view");
|
|
6977
|
+
}, P = (T, I) => {
|
|
6978
6978
|
T && ol({ kind: "places", surface: "job-search", ...T, picked: I });
|
|
6979
6979
|
};
|
|
6980
|
-
return /* @__PURE__ */ u("div", { ref:
|
|
6981
|
-
|
|
6980
|
+
return /* @__PURE__ */ u("div", { ref: x, class: "relative flex-1", children: [
|
|
6981
|
+
b === "view" && n ? /* @__PURE__ */ u(
|
|
6982
6982
|
"button",
|
|
6983
6983
|
{
|
|
6984
|
-
ref:
|
|
6984
|
+
ref: C,
|
|
6985
6985
|
"aria-label": `${a("geo_search_placeholder")}: ${d ?? a("location_provided")}`,
|
|
6986
6986
|
type: "button",
|
|
6987
6987
|
class: un({
|
|
@@ -6989,52 +6989,52 @@ const _g = ({ signal: e, timeoutMs: t }) => new Promise((n, r) => {
|
|
|
6989
6989
|
className: "flex h-10 w-full cursor-text items-stretch px-1 py-1"
|
|
6990
6990
|
}),
|
|
6991
6991
|
onClick: () => {
|
|
6992
|
-
|
|
6992
|
+
w("edit");
|
|
6993
6993
|
},
|
|
6994
6994
|
children: /* @__PURE__ */ u("div", { class: kt({ size: "sm", variant: "accentStrong", interactive: !0, class: "truncate" }), children: d ?? a("location_provided") })
|
|
6995
6995
|
}
|
|
6996
6996
|
) : /* @__PURE__ */ u(
|
|
6997
6997
|
ig,
|
|
6998
6998
|
{
|
|
6999
|
-
ref:
|
|
7000
|
-
error:
|
|
6999
|
+
ref: $,
|
|
7000
|
+
error: v,
|
|
7001
7001
|
query: s,
|
|
7002
7002
|
name: "location-search",
|
|
7003
7003
|
onQueryChange: (T) => {
|
|
7004
|
-
|
|
7004
|
+
_.current++, c(T), i(void 0);
|
|
7005
7005
|
},
|
|
7006
7006
|
onFocus: () => {
|
|
7007
7007
|
h.abort(), p(new AbortController());
|
|
7008
7008
|
},
|
|
7009
7009
|
onBlur: () => {
|
|
7010
|
-
const T =
|
|
7010
|
+
const T = $.current;
|
|
7011
7011
|
if (!(!T || document.activeElement === T)) {
|
|
7012
|
-
if (
|
|
7012
|
+
if (w("view"), n) return c("");
|
|
7013
7013
|
T.value.trim() && i(a("geo_choose_location"));
|
|
7014
7014
|
}
|
|
7015
7015
|
},
|
|
7016
7016
|
onItemSelect: (T) => {
|
|
7017
7017
|
if (y !== "loaded") return;
|
|
7018
|
-
const I = g.results.find((
|
|
7019
|
-
I && (
|
|
7018
|
+
const I = g.results.find((L) => L.mapbox_id === T);
|
|
7019
|
+
I && (P(g.lookup, !0), E(I.coordinates, I.name_preferred));
|
|
7020
7020
|
},
|
|
7021
7021
|
onEnter: async (T, I) => {
|
|
7022
|
-
const
|
|
7023
|
-
if (!
|
|
7024
|
-
if (
|
|
7025
|
-
const
|
|
7026
|
-
let
|
|
7022
|
+
const L = s.trim();
|
|
7023
|
+
if (!L) return;
|
|
7024
|
+
if (L.length < vo) return i(a("geo_query_too_short"));
|
|
7025
|
+
const D = ++_.current;
|
|
7026
|
+
let R = null;
|
|
7027
7027
|
try {
|
|
7028
|
-
const k = l === s && y === "loaded" ? g : await wa([
|
|
7029
|
-
|
|
7028
|
+
const k = l === s && y === "loaded" ? g : await wa([L, o], void 0, () => {
|
|
7029
|
+
R = { arm: "direct", source: "direct" };
|
|
7030
7030
|
});
|
|
7031
|
-
if (
|
|
7031
|
+
if (D !== _.current) return;
|
|
7032
7032
|
const z = k.results.find((se) => se.mapbox_id === T), W = z ?? k.results[0];
|
|
7033
|
-
if (
|
|
7033
|
+
if (P(k.lookup, I && !!z), W) return E(W.coordinates, W.name_preferred);
|
|
7034
7034
|
i(a("geo_no_match"));
|
|
7035
7035
|
} catch {
|
|
7036
|
-
if (
|
|
7037
|
-
|
|
7036
|
+
if (D !== _.current) return;
|
|
7037
|
+
P(R, !1), i(a("geo_suggestions_error"));
|
|
7038
7038
|
}
|
|
7039
7039
|
},
|
|
7040
7040
|
inputPlaceholder: a("geo_search_placeholder"),
|
|
@@ -7052,7 +7052,7 @@ const _g = ({ signal: e, timeoutMs: t }) => new Promise((n, r) => {
|
|
|
7052
7052
|
/* @__PURE__ */ u("div", { class: "absolute bottom-0 right-0 top-0 flex items-center", children: !s && !n ? /* @__PURE__ */ u(
|
|
7053
7053
|
$g,
|
|
7054
7054
|
{
|
|
7055
|
-
onLocate: (T) =>
|
|
7055
|
+
onLocate: (T) => E(T, a("geo_my_location")),
|
|
7056
7056
|
onError: i,
|
|
7057
7057
|
signal: h.signal
|
|
7058
7058
|
}
|
|
@@ -7062,7 +7062,7 @@ const _g = ({ signal: e, timeoutMs: t }) => new Promise((n, r) => {
|
|
|
7062
7062
|
type: "button",
|
|
7063
7063
|
"aria-label": a("geo_clear_search"),
|
|
7064
7064
|
onClick: () => {
|
|
7065
|
-
|
|
7065
|
+
_.current++, c(""), i(void 0), f(void 0), t({ radius: r, type: "provided" }), w("edit"), $.current && ($.current.value = "", $.current.focus());
|
|
7066
7066
|
},
|
|
7067
7067
|
class: Ue({
|
|
7068
7068
|
variant: "neutral",
|
|
@@ -7079,29 +7079,29 @@ const _g = ({ signal: e, timeoutMs: t }) => new Promise((n, r) => {
|
|
|
7079
7079
|
onValueChange: n,
|
|
7080
7080
|
distanceUnit: r = "miles"
|
|
7081
7081
|
}) => {
|
|
7082
|
-
const { t: o, locale: i } =
|
|
7082
|
+
const { t: o, locale: i } = re(), a = Zn(), [s, c] = M(), d = Rt("job-countries", () => Yc(e), {
|
|
7083
7083
|
revalidateIfStale: !1,
|
|
7084
7084
|
revalidateOnFocus: !1,
|
|
7085
7085
|
revalidateOnReconnect: !1
|
|
7086
7086
|
}), f = K(
|
|
7087
7087
|
() => d.data ? Qp(d.data) : Rc,
|
|
7088
7088
|
[d.data]
|
|
7089
|
-
), l = K(() => Dc(i, r, 2), [i, r]), h = r === "miles" ? Qt(mo) : ho(Og), p = (t == null ? void 0 : t.type) === "provided" ? t.radius : h,
|
|
7089
|
+
), l = K(() => Dc(i, r, 2), [i, r]), h = r === "miles" ? Qt(mo) : ho(Og), p = (t == null ? void 0 : t.type) === "provided" ? t.radius : h, m = (t == null ? void 0 : t.type) === "provided" ? t.coords : void 0, g = (t == null ? void 0 : t.type) === "provided" ? t.label : void 0, y = r === "miles" ? Eg.map((v) => ({ value: Qt(v), label: l.format(v) })) : Sg.map((v) => ({ value: ho(v), label: l.format(v) }));
|
|
7090
7090
|
return /* @__PURE__ */ u("div", { class: "flex flex-col gap-2", children: [
|
|
7091
7091
|
/* @__PURE__ */ u("div", { class: "flex flex-col gap-2 md:flex-row", children: [
|
|
7092
7092
|
/* @__PURE__ */ u(
|
|
7093
7093
|
Cg,
|
|
7094
7094
|
{
|
|
7095
|
-
coords:
|
|
7095
|
+
coords: m,
|
|
7096
7096
|
radius: p,
|
|
7097
7097
|
countries: f,
|
|
7098
7098
|
onValueChange: n,
|
|
7099
|
-
onSelect: (
|
|
7099
|
+
onSelect: (v, _) => {
|
|
7100
7100
|
c(void 0), n({
|
|
7101
7101
|
type: "provided",
|
|
7102
7102
|
radius: p,
|
|
7103
|
-
coords:
|
|
7104
|
-
label:
|
|
7103
|
+
coords: v,
|
|
7104
|
+
label: _
|
|
7105
7105
|
});
|
|
7106
7106
|
},
|
|
7107
7107
|
onError: c
|
|
@@ -7118,19 +7118,19 @@ const _g = ({ signal: e, timeoutMs: t }) => new Promise((n, r) => {
|
|
|
7118
7118
|
size: "unsized",
|
|
7119
7119
|
className: "w-full appearance-none truncate py-2 pl-3 pr-10"
|
|
7120
7120
|
}),
|
|
7121
|
-
disabled: !
|
|
7122
|
-
value:
|
|
7123
|
-
onChange: (
|
|
7121
|
+
disabled: !m,
|
|
7122
|
+
value: m ? p : "",
|
|
7123
|
+
onChange: (v) => {
|
|
7124
7124
|
c(void 0), n({
|
|
7125
7125
|
type: "provided",
|
|
7126
|
-
coords:
|
|
7126
|
+
coords: m,
|
|
7127
7127
|
label: g,
|
|
7128
|
-
radius: Number(
|
|
7128
|
+
radius: Number(v.currentTarget.value)
|
|
7129
7129
|
});
|
|
7130
7130
|
},
|
|
7131
7131
|
children: [
|
|
7132
|
-
|
|
7133
|
-
y.map((
|
|
7132
|
+
m ? null : /* @__PURE__ */ u("option", { value: "", children: o("geo_any_distance") }),
|
|
7133
|
+
y.map((v) => /* @__PURE__ */ u("option", { value: v.value, class: "truncate", children: v.label }, v.value))
|
|
7134
7134
|
]
|
|
7135
7135
|
}
|
|
7136
7136
|
),
|
|
@@ -7150,7 +7150,7 @@ const _g = ({ signal: e, timeoutMs: t }) => new Promise((n, r) => {
|
|
|
7150
7150
|
) : null
|
|
7151
7151
|
] });
|
|
7152
7152
|
}, Tg = 2, Ag = ({ value: e, onValueChange: t }) => {
|
|
7153
|
-
const [n, r] =
|
|
7153
|
+
const [n, r] = M(e ?? ""), o = n !== "" && n === e, { t: i } = re();
|
|
7154
7154
|
return N(() => {
|
|
7155
7155
|
r(e ?? "");
|
|
7156
7156
|
}, [e]), N(() => {
|
|
@@ -7219,7 +7219,7 @@ const _g = ({ signal: e, timeoutMs: t }) => new Promise((n, r) => {
|
|
|
7219
7219
|
strings: t,
|
|
7220
7220
|
class: n
|
|
7221
7221
|
}) => {
|
|
7222
|
-
const [r, o] =
|
|
7222
|
+
const [r, o] = M(0), [i, a] = M(!0), s = [...t, t[0]];
|
|
7223
7223
|
return N(() => {
|
|
7224
7224
|
r === s.length && (a(!1), o(0));
|
|
7225
7225
|
const c = setTimeout(() => {
|
|
@@ -7253,11 +7253,11 @@ const _g = ({ signal: e, timeoutMs: t }) => new Promise((n, r) => {
|
|
|
7253
7253
|
return document.addEventListener("selectionchange", n), () => document.removeEventListener("selectionchange", n);
|
|
7254
7254
|
}, [e, t]);
|
|
7255
7255
|
}, xa = 3, Dg = ({ value: e, onValueChange: t, options: n }) => {
|
|
7256
|
-
const [r, o] =
|
|
7256
|
+
const [r, o] = M(e ?? ""), i = r.trim(), a = i !== "" && i === e, { t: s } = re(), c = i.split("");
|
|
7257
7257
|
N(() => {
|
|
7258
7258
|
o(e ?? "");
|
|
7259
7259
|
}, [e]);
|
|
7260
|
-
const [d, f] =
|
|
7260
|
+
const [d, f] = M(0), l = A(null);
|
|
7261
7261
|
return Rg(l, (h) => {
|
|
7262
7262
|
h.target instanceof HTMLInputElement && f(h.target.scrollLeft);
|
|
7263
7263
|
}), N(() => {
|
|
@@ -7372,7 +7372,7 @@ const _g = ({ signal: e, timeoutMs: t }) => new Promise((n, r) => {
|
|
|
7372
7372
|
active: !1
|
|
7373
7373
|
}
|
|
7374
7374
|
}), Ic = "bg-neutral-3 rounded-interactive ring-neutral-3 mr-[3px] inline-flex min-w-0 max-w-full ring-[3px]", Lg = ({ value: e, onValueChange: t }) => {
|
|
7375
|
-
const { t: n } =
|
|
7375
|
+
const { t: n } = re();
|
|
7376
7376
|
return /* @__PURE__ */ u("div", { class: Ic, children: [
|
|
7377
7377
|
/* @__PURE__ */ u(
|
|
7378
7378
|
"button",
|
|
@@ -7406,7 +7406,7 @@ const _g = ({ signal: e, timeoutMs: t }) => new Promise((n, r) => {
|
|
|
7406
7406
|
onValueChange: t
|
|
7407
7407
|
}) => {
|
|
7408
7408
|
var o;
|
|
7409
|
-
const { t: n } =
|
|
7409
|
+
const { t: n } = re(), r = e.query.trim() ? "sort_most_relevant" : ((o = e.geo) == null ? void 0 : o.type) === "provided" && e.geo.coords ? "sort_closest" : void 0;
|
|
7410
7410
|
return r ? /* @__PURE__ */ u("div", { role: "group", "aria-label": n("sort_by"), class: Ic, children: [
|
|
7411
7411
|
/* @__PURE__ */ u(
|
|
7412
7412
|
"button",
|
|
@@ -7744,17 +7744,17 @@ const M_ = /* @__PURE__ */ Es(L_), Yt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
7744
7744
|
size: r,
|
|
7745
7745
|
distanceUnit: o
|
|
7746
7746
|
}) => {
|
|
7747
|
-
var y,
|
|
7748
|
-
const { t: i, locale: a } =
|
|
7747
|
+
var y, v, _;
|
|
7748
|
+
const { t: i, locale: a } = re(), s = e.distanceMeters === null ? null : i("distance_away", { distance: th(e.distanceMeters, o ?? "miles", a) }), c = t.subheading ? Vr({ job: e, property: t.subheading }) : null, d = t.infoTags.flatMap((b) => Ta(Vr({ job: e, property: b }))).filter(Boolean), f = Ta(
|
|
7749
7749
|
(y = t.overrides) != null && y.salary ? Vr({ job: e, property: t.overrides.salary }) : e.pay
|
|
7750
|
-
).filter(Boolean), l = t.postedDate ?? "show", h = (
|
|
7751
|
-
var
|
|
7752
|
-
n == null || n(e), (
|
|
7750
|
+
).filter(Boolean), l = t.postedDate ?? "show", h = (v = t.overrides) != null && v.baseUrl ? t.overrides.baseUrl(e.id.toString()) : e.href, p = t.newUnderDays ?? 7, m = e.createdAt ? new Date(e.createdAt).getTime() > Date.now() - p * j_ : !1, g = (b) => {
|
|
7751
|
+
var w, $;
|
|
7752
|
+
n == null || n(e), ($ = (w = t.overrides) == null ? void 0 : w.onClick) == null || $.call(w, b);
|
|
7753
7753
|
};
|
|
7754
7754
|
return /* @__PURE__ */ u(
|
|
7755
7755
|
"a",
|
|
7756
7756
|
{
|
|
7757
|
-
onMouseEnter: (
|
|
7757
|
+
onMouseEnter: (_ = t.overrides) == null ? void 0 : _.onMouseEnter,
|
|
7758
7758
|
onClick: g,
|
|
7759
7759
|
href: h,
|
|
7760
7760
|
target: t.openJob === "redirect-new-tab" ? "_blank" : void 0,
|
|
@@ -7771,7 +7771,7 @@ const M_ = /* @__PURE__ */ Es(L_), Yt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
7771
7771
|
] }) : null,
|
|
7772
7772
|
/* @__PURE__ */ u("p", { class: N_({ size: r }), children: [
|
|
7773
7773
|
e.title.trim(),
|
|
7774
|
-
|
|
7774
|
+
m && l !== "hide" && /* @__PURE__ */ u(H, { children: [
|
|
7775
7775
|
" ",
|
|
7776
7776
|
/* @__PURE__ */ u(
|
|
7777
7777
|
"span",
|
|
@@ -7797,8 +7797,8 @@ const M_ = /* @__PURE__ */ Es(L_), Yt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
7797
7797
|
/* @__PURE__ */ u(te, { name: "target-location", class: "size-4 flex-none", "aria-hidden": !0 }),
|
|
7798
7798
|
s
|
|
7799
7799
|
] }) : null,
|
|
7800
|
-
/* @__PURE__ */ u("div", { class: "flex min-w-0 max-w-full flex-wrap items-center gap-2", children: f.map((
|
|
7801
|
-
d.length > 0 && /* @__PURE__ */ u("ul", { class: "flex min-w-0 max-w-full flex-wrap items-center gap-2", children: d.map((
|
|
7800
|
+
/* @__PURE__ */ u("div", { class: "flex min-w-0 max-w-full flex-wrap items-center gap-2", children: f.map((b, w) => /* @__PURE__ */ u("span", { class: kt({ variant: "monetaryWeak", size: "xs" }), children: b }, w)) }),
|
|
7801
|
+
d.length > 0 && /* @__PURE__ */ u("ul", { class: "flex min-w-0 max-w-full flex-wrap items-center gap-2", children: d.map((b) => /* @__PURE__ */ u("li", { class: kt({ size: "xs", class: "max-w-full truncate" }), children: b }, b)) })
|
|
7802
7802
|
] })
|
|
7803
7803
|
] }),
|
|
7804
7804
|
r === "sm" ? /* @__PURE__ */ u("div", { "aria-hidden": !0, class: "absolute right-1 top-1/2 -translate-y-1/2 transform", children: /* @__PURE__ */ u(te, { name: "chevron-right", class: "size-5 text-copy-neutral-icon" }) }) : /* @__PURE__ */ u("div", { "aria-hidden": !0, class: "flex items-center", children: /* @__PURE__ */ u(te, { name: "chevron-right", class: "text-copy-neutral-icon" }) })
|
|
@@ -7850,7 +7850,7 @@ const M_ = /* @__PURE__ */ Es(L_), Yt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
7850
7850
|
config: n,
|
|
7851
7851
|
remainingItems: r
|
|
7852
7852
|
}) => {
|
|
7853
|
-
const { t: o } =
|
|
7853
|
+
const { t: o } = re(), i = Math.min(ut, r);
|
|
7854
7854
|
return e === "revalidating" ? /* @__PURE__ */ u("ul", { class: "flex flex-col gap-3", "aria-hidden": !0, children: Array.from({ length: ut }).map((a, s) => /* @__PURE__ */ u("li", { children: /* @__PURE__ */ u(Jo, { seed: s, animationDelay: (s - 4) * 0.1, config: n }) }, s)) }) : /* @__PURE__ */ u(
|
|
7855
7855
|
"button",
|
|
7856
7856
|
{
|
|
@@ -7877,33 +7877,42 @@ const M_ = /* @__PURE__ */ Es(L_), Yt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
7877
7877
|
prioritySegment: d,
|
|
7878
7878
|
i18n: f,
|
|
7879
7879
|
distanceUnit: l
|
|
7880
|
-
}) =>
|
|
7881
|
-
const
|
|
7882
|
-
return /* @__PURE__ */ u(
|
|
7883
|
-
|
|
7884
|
-
{
|
|
7885
|
-
|
|
7886
|
-
|
|
7887
|
-
|
|
7888
|
-
|
|
7889
|
-
|
|
7890
|
-
|
|
7891
|
-
|
|
7892
|
-
|
|
7893
|
-
|
|
7894
|
-
|
|
7895
|
-
|
|
7896
|
-
|
|
7897
|
-
|
|
7898
|
-
|
|
7899
|
-
|
|
7900
|
-
|
|
7901
|
-
|
|
7902
|
-
|
|
7903
|
-
|
|
7904
|
-
|
|
7905
|
-
|
|
7906
|
-
|
|
7880
|
+
}) => {
|
|
7881
|
+
const { t: h } = re(), p = A(), [m, g] = M();
|
|
7882
|
+
return /* @__PURE__ */ u(H, { children: [
|
|
7883
|
+
/* @__PURE__ */ u("p", { class: "sr-only", role: "status", children: m === void 0 ? "" : m === 0 ? h("no_jobs_found") : h("jobs_found", { count: m }) }),
|
|
7884
|
+
Array.from({ length: e.page }).map((y, v) => {
|
|
7885
|
+
const _ = v === e.page - 1;
|
|
7886
|
+
return /* @__PURE__ */ u(jn, { Fallback: et, children: /* @__PURE__ */ u(
|
|
7887
|
+
H_,
|
|
7888
|
+
{
|
|
7889
|
+
state: e,
|
|
7890
|
+
rpcClient: t,
|
|
7891
|
+
page: v + 1,
|
|
7892
|
+
isFirst: v === 0,
|
|
7893
|
+
isLast: _,
|
|
7894
|
+
fetchNextPage: () => {
|
|
7895
|
+
p.current = e.page + 1, a(e.page + 1);
|
|
7896
|
+
},
|
|
7897
|
+
focusPage: p,
|
|
7898
|
+
jobCardConfig: n,
|
|
7899
|
+
initialData: r,
|
|
7900
|
+
onResultsUpdate: (b) => {
|
|
7901
|
+
g(b.totalCount), o == null || o(b);
|
|
7902
|
+
},
|
|
7903
|
+
onJobClick: i,
|
|
7904
|
+
mode: s,
|
|
7905
|
+
afterResults: c,
|
|
7906
|
+
prioritySegment: d,
|
|
7907
|
+
i18n: f,
|
|
7908
|
+
distanceUnit: l
|
|
7909
|
+
},
|
|
7910
|
+
v
|
|
7911
|
+
) }, v);
|
|
7912
|
+
})
|
|
7913
|
+
] });
|
|
7914
|
+
}, Aa = ({ page: e }) => {
|
|
7915
|
+
const { t } = re();
|
|
7907
7916
|
return /* @__PURE__ */ u(
|
|
7908
7917
|
"div",
|
|
7909
7918
|
{
|
|
@@ -7930,89 +7939,95 @@ const M_ = /* @__PURE__ */ Es(L_), Yt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
7930
7939
|
isFirst: r,
|
|
7931
7940
|
isLast: o,
|
|
7932
7941
|
fetchNextPage: i,
|
|
7933
|
-
|
|
7934
|
-
|
|
7935
|
-
|
|
7936
|
-
|
|
7937
|
-
|
|
7938
|
-
|
|
7939
|
-
|
|
7940
|
-
|
|
7942
|
+
focusPage: a,
|
|
7943
|
+
jobCardConfig: s,
|
|
7944
|
+
initialData: c,
|
|
7945
|
+
onResultsUpdate: d,
|
|
7946
|
+
onJobClick: f,
|
|
7947
|
+
afterResults: l,
|
|
7948
|
+
prioritySegment: h,
|
|
7949
|
+
i18n: p,
|
|
7950
|
+
distanceUnit: m
|
|
7941
7951
|
}) => {
|
|
7942
|
-
const { t:
|
|
7952
|
+
const { t: g } = re(), y = n === 1 ? c : void 0, { data: v, error: _, queryState: b, swr: w } = rn(
|
|
7943
7953
|
Rt(
|
|
7944
7954
|
Hn({ state: e, baseKey: n.toString() }),
|
|
7945
7955
|
() => Sl({
|
|
7946
7956
|
rpcClient: t,
|
|
7947
7957
|
state: e,
|
|
7948
7958
|
page: n,
|
|
7949
|
-
t:
|
|
7950
|
-
prioritySegment:
|
|
7951
|
-
locale:
|
|
7952
|
-
fallbackLocale:
|
|
7959
|
+
t: g,
|
|
7960
|
+
prioritySegment: h,
|
|
7961
|
+
locale: p ? p.locale : void 0,
|
|
7962
|
+
fallbackLocale: p ? p.fallbackLocale : void 0
|
|
7953
7963
|
}),
|
|
7954
|
-
{ ...In, fallbackData:
|
|
7964
|
+
{ ...In, fallbackData: y }
|
|
7955
7965
|
)
|
|
7956
7966
|
);
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
totalCount:
|
|
7967
|
+
N(() => {
|
|
7968
|
+
v && r && d({
|
|
7969
|
+
totalCount: v.pagination.total
|
|
7960
7970
|
});
|
|
7961
|
-
}, [
|
|
7971
|
+
}, [v, r, d]);
|
|
7972
|
+
const $ = A(null);
|
|
7973
|
+
switch (N(() => {
|
|
7974
|
+
var x, C;
|
|
7975
|
+
!v || a.current !== n || (a.current = void 0, (!document.activeElement || document.activeElement === document.body) && ((C = (x = $.current) == null ? void 0 : x.querySelector("a")) == null || C.focus({ preventScroll: !0 })));
|
|
7976
|
+
}, [v, a, n]), b) {
|
|
7962
7977
|
case "idle":
|
|
7963
7978
|
return null;
|
|
7964
7979
|
case "loading":
|
|
7965
7980
|
return /* @__PURE__ */ u(H, { children: [
|
|
7966
7981
|
r ? /* @__PURE__ */ u("div", { class: "flex w-full max-w-[45rem] items-center justify-between gap-3 self-center", children: [
|
|
7967
7982
|
/* @__PURE__ */ u("p", { class: "animate-skeleton text-copy-neutral-lowcontrast text-style-tag m-0 min-w-0 max-w-[25%] flex-none p-0 text-left [overflow-wrap:anywhere]", children: /* @__PURE__ */ u(Yt, { chars: 8 }) }),
|
|
7968
|
-
/* @__PURE__ */ u("div", { class: "flex min-w-0 flex-1 justify-end", children:
|
|
7983
|
+
/* @__PURE__ */ u("div", { class: "flex min-w-0 flex-1 justify-end", children: l })
|
|
7969
7984
|
] }) : /* @__PURE__ */ u(Aa, { page: n }),
|
|
7970
|
-
/* @__PURE__ */ u("ul", { class: "flex w-full max-w-[45rem] flex-col gap-3 self-center", "aria-hidden": !0, children: Array.from({ length: ut }).map((x,
|
|
7985
|
+
/* @__PURE__ */ u("ul", { class: "flex w-full max-w-[45rem] flex-col gap-3 self-center", "aria-hidden": !0, children: Array.from({ length: ut }).map((x, C) => /* @__PURE__ */ u("li", { children: /* @__PURE__ */ u(Jo, { seed: C, animationDelay: (C - ut) * 0.1, config: s }) }, C)) })
|
|
7971
7986
|
] });
|
|
7972
7987
|
case "error":
|
|
7973
|
-
return /* @__PURE__ */ u(et, { error: new Error(
|
|
7988
|
+
return /* @__PURE__ */ u(et, { error: new Error(g("jobs_loading_error"), { cause: _ }), resetError: () => w.mutate() });
|
|
7974
7989
|
case "revalidating":
|
|
7975
7990
|
case "loaded": {
|
|
7976
|
-
if (Zc(
|
|
7991
|
+
if (Zc(v.pagination.current_page === n, "Received wrong page from server"), v.pagination.total === 0)
|
|
7977
7992
|
return /* @__PURE__ */ u("div", { class: "mx-auto flex flex-col items-center gap-2 px-2 py-4 text-center", children: [
|
|
7978
7993
|
/* @__PURE__ */ u(te, { "aria-hidden": !0, name: "magnifier", class: "text-copy-neutral-lowcontrast" }),
|
|
7979
7994
|
/* @__PURE__ */ u("div", { class: "flex flex-col items-center gap-1", children: [
|
|
7980
|
-
/* @__PURE__ */ u("p", { class: "text-copy-neutral text-style-job-heading", children:
|
|
7981
|
-
/* @__PURE__ */ u("p", { class: "text-copy-neutral-lowcontrast text-style-tag [text-wrap:pretty]", children:
|
|
7995
|
+
/* @__PURE__ */ u("p", { class: "text-copy-neutral text-style-job-heading", children: g("no_jobs_found") }),
|
|
7996
|
+
/* @__PURE__ */ u("p", { class: "text-copy-neutral-lowcontrast text-style-tag [text-wrap:pretty]", children: g("no_jobs_found_description") })
|
|
7982
7997
|
] })
|
|
7983
7998
|
] });
|
|
7984
|
-
const x =
|
|
7985
|
-
|
|
7999
|
+
const x = v.pagination.last_page !== v.pagination.current_page, C = n * ut, S = Math.max(v.pagination.total - C, 0), E = (P) => {
|
|
8000
|
+
f(P, n);
|
|
7986
8001
|
};
|
|
7987
8002
|
return /* @__PURE__ */ u(H, { children: [
|
|
7988
8003
|
r ? /* @__PURE__ */ u("div", { class: "flex w-full max-w-[45rem] items-center justify-between gap-3 self-center", children: [
|
|
7989
|
-
/* @__PURE__ */ u("p", { class: "text-copy-neutral-lowcontrast text-style-tag m-0 min-w-0 max-w-[25%] flex-none p-0 text-left [overflow-wrap:anywhere]", children:
|
|
7990
|
-
/* @__PURE__ */ u("div", { class: "flex min-w-0 flex-1 justify-end", children:
|
|
8004
|
+
/* @__PURE__ */ u("p", { class: "text-copy-neutral-lowcontrast text-style-tag m-0 min-w-0 max-w-[25%] flex-none p-0 text-left [overflow-wrap:anywhere]", children: g("jobs_found", { count: v.pagination.total }) }),
|
|
8005
|
+
/* @__PURE__ */ u("div", { class: "flex min-w-0 flex-1 justify-end", children: l })
|
|
7991
8006
|
] }) : /* @__PURE__ */ u(Aa, { page: n }),
|
|
7992
|
-
/* @__PURE__ */ u("ul", { "aria-label": `Page ${n}`, class: "flex w-full max-w-[45rem] flex-col gap-3 self-center", children:
|
|
8007
|
+
/* @__PURE__ */ u("ul", { ref: $, "aria-label": `Page ${n}`, class: "flex w-full max-w-[45rem] flex-col gap-3 self-center", children: v.results.map((P) => /* @__PURE__ */ u(
|
|
7993
8008
|
"li",
|
|
7994
8009
|
{
|
|
7995
8010
|
class: "ease-expo-out duration-slow transition-opacity",
|
|
7996
|
-
style: { opacity:
|
|
7997
|
-
children: /* @__PURE__ */ u(Uc, { job:
|
|
8011
|
+
style: { opacity: b === "revalidating" ? 0.33 : 1 },
|
|
8012
|
+
children: /* @__PURE__ */ u(Uc, { job: P, onJobClick: E, config: s, distanceUnit: m })
|
|
7998
8013
|
},
|
|
7999
|
-
|
|
8014
|
+
P.id
|
|
8000
8015
|
)) }),
|
|
8001
8016
|
x && o && /* @__PURE__ */ u(
|
|
8002
8017
|
F_,
|
|
8003
8018
|
{
|
|
8004
|
-
state:
|
|
8019
|
+
state: b,
|
|
8005
8020
|
fetchNextPage: i,
|
|
8006
|
-
config:
|
|
8007
|
-
remainingItems:
|
|
8021
|
+
config: s,
|
|
8022
|
+
remainingItems: S
|
|
8008
8023
|
}
|
|
8009
8024
|
)
|
|
8010
8025
|
] });
|
|
8011
8026
|
}
|
|
8012
8027
|
default:
|
|
8013
|
-
$t(
|
|
8028
|
+
$t(b);
|
|
8014
8029
|
}
|
|
8015
|
-
}, U_ = Lo(() => import("./map-
|
|
8030
|
+
}, U_ = Lo(() => import("./map-BdK-wTC4.js").then((e) => e.Map)), W_ = ({
|
|
8016
8031
|
state: e,
|
|
8017
8032
|
rpcClient: t,
|
|
8018
8033
|
mapConfig: n,
|
|
@@ -8024,10 +8039,10 @@ const M_ = /* @__PURE__ */ Es(L_), Yt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
8024
8039
|
i18n: c,
|
|
8025
8040
|
distanceUnit: d
|
|
8026
8041
|
}) => {
|
|
8027
|
-
var
|
|
8028
|
-
const { t: f } =
|
|
8029
|
-
(
|
|
8030
|
-
r(
|
|
8042
|
+
var v, _;
|
|
8043
|
+
const { t: f } = re(), [l, h] = M(new AbortController()), p = Is("(max-width: 767px)"), m = U(
|
|
8044
|
+
(b) => {
|
|
8045
|
+
r(b), l.abort(), h(new AbortController());
|
|
8031
8046
|
},
|
|
8032
8047
|
[r, l]
|
|
8033
8048
|
), g = rn(
|
|
@@ -8065,19 +8080,19 @@ const M_ = /* @__PURE__ */ Es(L_), Yt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
8065
8080
|
{
|
|
8066
8081
|
config: n,
|
|
8067
8082
|
mapData: g,
|
|
8068
|
-
autoFit: ((
|
|
8069
|
-
onBoundsChange:
|
|
8083
|
+
autoFit: ((v = e.geo) == null ? void 0 : v.type) !== "bounds",
|
|
8084
|
+
onBoundsChange: m
|
|
8070
8085
|
}
|
|
8071
8086
|
) }) : /* @__PURE__ */ u("div", { class: "animate-skeleton bg-neutral-6 h-full w-full" }) }),
|
|
8072
8087
|
/* @__PURE__ */ u("ul", { class: "flex h-full w-full snap-x snap-proximity scroll-px-4 gap-3 overflow-auto p-4 md:order-1 md:max-w-xl md:flex-col", children: [
|
|
8073
|
-
((
|
|
8088
|
+
((_ = g.data) == null ? void 0 : _.results.length) === 0 ? /* @__PURE__ */ u("div", { class: "mx-auto flex h-full w-full flex-col items-center justify-center gap-2 text-center", children: [
|
|
8074
8089
|
/* @__PURE__ */ u(te, { "aria-hidden": !0, name: "magnifier", class: "text-copy-neutral-lowcontrast" }),
|
|
8075
8090
|
/* @__PURE__ */ u("div", { class: "flex flex-col items-center gap-1", children: [
|
|
8076
8091
|
/* @__PURE__ */ u("p", { class: "text-copy-neutral text-style-job-heading", children: f("no_jobs_found") }),
|
|
8077
8092
|
/* @__PURE__ */ u("p", { class: "text-copy-neutral-lowcontrast text-style-tag [text-wrap:pretty]", children: f("no_jobs_found_description") })
|
|
8078
8093
|
] })
|
|
8079
8094
|
] }) : null,
|
|
8080
|
-
y ? g.data.results.map((
|
|
8095
|
+
y ? g.data.results.map((b) => /* @__PURE__ */ u(
|
|
8081
8096
|
"li",
|
|
8082
8097
|
{
|
|
8083
8098
|
class: "ease-expo-out duration-slow min-w-[calc(100%-1rem)] snap-start transition-opacity",
|
|
@@ -8085,16 +8100,16 @@ const M_ = /* @__PURE__ */ Es(L_), Yt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
8085
8100
|
children: /* @__PURE__ */ u(
|
|
8086
8101
|
Uc,
|
|
8087
8102
|
{
|
|
8088
|
-
job:
|
|
8089
|
-
onJobClick: (
|
|
8103
|
+
job: b,
|
|
8104
|
+
onJobClick: (w) => i(w, 1),
|
|
8090
8105
|
config: a,
|
|
8091
8106
|
size: p ? "sm" : void 0,
|
|
8092
8107
|
distanceUnit: d
|
|
8093
8108
|
}
|
|
8094
8109
|
)
|
|
8095
8110
|
},
|
|
8096
|
-
|
|
8097
|
-
)) : Array.from({ length: 6 }).map((
|
|
8111
|
+
b.id
|
|
8112
|
+
)) : Array.from({ length: 6 }).map((b, w) => /* @__PURE__ */ u("li", { children: /* @__PURE__ */ u(Jo, { seed: w, animationDelay: (w - 6) * 0.1, config: a }) }, w))
|
|
8098
8113
|
] })
|
|
8099
8114
|
] })
|
|
8100
8115
|
] });
|
|
@@ -8154,42 +8169,42 @@ const M_ = /* @__PURE__ */ Es(L_), Yt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
8154
8169
|
onStateChange: o,
|
|
8155
8170
|
params: i
|
|
8156
8171
|
}) => {
|
|
8157
|
-
var
|
|
8158
|
-
const { t: a } =
|
|
8172
|
+
var S, E, P, F, T, I, L;
|
|
8173
|
+
const { t: a } = re(), s = A(null), c = K(() => Kn(t, "defaultValue"), [t]), [d, f] = M(!0), [l, h] = M(
|
|
8159
8174
|
() => typeof i.initialState == "function" ? i.initialState(i) : i.initialState
|
|
8160
|
-
), [p,
|
|
8175
|
+
), [p, m] = M(0), { onJobClick: g, analyticsPaginate: y } = B_({
|
|
8161
8176
|
appRef: s,
|
|
8162
8177
|
analytics: n,
|
|
8163
8178
|
state: l,
|
|
8164
8179
|
hasInteracted: !d,
|
|
8165
8180
|
totalCount: p,
|
|
8166
8181
|
defaultFilters: c
|
|
8167
|
-
}),
|
|
8168
|
-
(
|
|
8169
|
-
h((
|
|
8170
|
-
if (
|
|
8171
|
-
const k = { ...
|
|
8182
|
+
}), v = U(
|
|
8183
|
+
(D) => {
|
|
8184
|
+
h((R) => {
|
|
8185
|
+
if (R.page === D) return R;
|
|
8186
|
+
const k = { ...R, page: D };
|
|
8172
8187
|
return o == null || o(k), k;
|
|
8173
|
-
}), y(
|
|
8188
|
+
}), y(D);
|
|
8174
8189
|
},
|
|
8175
8190
|
[y, o]
|
|
8176
|
-
),
|
|
8177
|
-
(
|
|
8178
|
-
h((
|
|
8179
|
-
const k = { ...
|
|
8191
|
+
), _ = U(
|
|
8192
|
+
(D) => {
|
|
8193
|
+
h((R) => {
|
|
8194
|
+
const k = { ...R, view: D };
|
|
8180
8195
|
return o == null || o(k), k;
|
|
8181
8196
|
});
|
|
8182
8197
|
},
|
|
8183
8198
|
[o]
|
|
8184
|
-
),
|
|
8185
|
-
(
|
|
8186
|
-
h((
|
|
8199
|
+
), b = U(
|
|
8200
|
+
(D) => {
|
|
8201
|
+
h((R) => {
|
|
8187
8202
|
var W;
|
|
8188
|
-
if (!
|
|
8203
|
+
if (!R.query && !D || R.query === D) return R;
|
|
8189
8204
|
f(!1);
|
|
8190
|
-
const k = Pa(
|
|
8191
|
-
...
|
|
8192
|
-
query:
|
|
8205
|
+
const k = Pa(R.geo), z = {
|
|
8206
|
+
...R,
|
|
8207
|
+
query: D,
|
|
8193
8208
|
geo: k,
|
|
8194
8209
|
page: 1,
|
|
8195
8210
|
mode: (W = i.naturalLanguageSearch) != null && W.enabled ? "vector" : "query"
|
|
@@ -8197,45 +8212,45 @@ const M_ = /* @__PURE__ */ Es(L_), Yt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
8197
8212
|
return o == null || o(z), z;
|
|
8198
8213
|
});
|
|
8199
8214
|
},
|
|
8200
|
-
[o, (
|
|
8201
|
-
),
|
|
8202
|
-
(
|
|
8203
|
-
f(!1), h((
|
|
8204
|
-
const k = { ...
|
|
8215
|
+
[o, (S = i.naturalLanguageSearch) == null ? void 0 : S.enabled]
|
|
8216
|
+
), w = U(
|
|
8217
|
+
(D) => {
|
|
8218
|
+
f(!1), h((R) => {
|
|
8219
|
+
const k = { ...R, geo: D, page: 1 };
|
|
8205
8220
|
return o == null || o(k), k;
|
|
8206
8221
|
});
|
|
8207
8222
|
},
|
|
8208
8223
|
[o]
|
|
8209
|
-
),
|
|
8210
|
-
f(!1), h((
|
|
8211
|
-
const
|
|
8212
|
-
...
|
|
8224
|
+
), $ = U(() => {
|
|
8225
|
+
f(!1), h((D) => {
|
|
8226
|
+
const R = {
|
|
8227
|
+
...D,
|
|
8213
8228
|
filters: Kn(t, "defaultValue"),
|
|
8214
8229
|
query: "",
|
|
8215
8230
|
geo: void 0,
|
|
8216
8231
|
page: 1,
|
|
8217
8232
|
resultOrder: void 0
|
|
8218
8233
|
};
|
|
8219
|
-
return o == null || o(
|
|
8234
|
+
return o == null || o(R), R;
|
|
8220
8235
|
});
|
|
8221
|
-
}, [o, t]),
|
|
8222
|
-
(
|
|
8223
|
-
h((
|
|
8224
|
-
if (
|
|
8236
|
+
}, [o, t]), x = U(
|
|
8237
|
+
(D) => {
|
|
8238
|
+
h((R) => {
|
|
8239
|
+
if (R.resultOrder === D) return R;
|
|
8225
8240
|
f(!1);
|
|
8226
|
-
const k = { ...
|
|
8241
|
+
const k = { ...R, resultOrder: D, page: 1 };
|
|
8227
8242
|
return o == null || o(k), k;
|
|
8228
8243
|
});
|
|
8229
8244
|
},
|
|
8230
8245
|
[o]
|
|
8231
|
-
),
|
|
8232
|
-
return /* @__PURE__ */ u(ku, { value: { provider: () =>
|
|
8246
|
+
), C = K(() => (e.environment, /* @__PURE__ */ new Map()), [e.environment]);
|
|
8247
|
+
return /* @__PURE__ */ u(ku, { value: { provider: () => C }, children: /* @__PURE__ */ u(
|
|
8233
8248
|
"div",
|
|
8234
8249
|
{
|
|
8235
8250
|
ref: s,
|
|
8236
8251
|
class: At(
|
|
8237
8252
|
"ijs-app font-family-default font-weight-default font-style-default flex min-h-screen flex-col gap-4",
|
|
8238
|
-
{ "reduce-motion": (
|
|
8253
|
+
{ "reduce-motion": (E = i.theme.accessibility) == null ? void 0 : E.reducedMotion },
|
|
8239
8254
|
io(i.theme)
|
|
8240
8255
|
),
|
|
8241
8256
|
children: [
|
|
@@ -8243,14 +8258,14 @@ const M_ = /* @__PURE__ */ Es(L_), Yt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
8243
8258
|
/* @__PURE__ */ u("div", { class: "px-4", children: /* @__PURE__ */ u("div", { class: "bg-section-strong-bg ring-section-weak-stroke rounded-section ring-px lg:ring-width-section flex flex-col gap-4 p-4 md:flex-row", children: [
|
|
8244
8259
|
/* @__PURE__ */ u("section", { class: "flex flex-1 flex-col gap-1", children: [
|
|
8245
8260
|
/* @__PURE__ */ u("p", { class: "text-style-filter text-copy-neutral font-style-filter font-weight-filter", children: a("search_label") }),
|
|
8246
|
-
(
|
|
8261
|
+
(P = i.naturalLanguageSearch) != null && P.enabled ? /* @__PURE__ */ u(
|
|
8247
8262
|
Dg,
|
|
8248
8263
|
{
|
|
8249
8264
|
value: l.query,
|
|
8250
|
-
onValueChange:
|
|
8265
|
+
onValueChange: b,
|
|
8251
8266
|
options: i.naturalLanguageSearch
|
|
8252
8267
|
}
|
|
8253
|
-
) : i.enableKeywordSearch ? /* @__PURE__ */ u(Ag, { value: l.query, onValueChange:
|
|
8268
|
+
) : i.enableKeywordSearch ? /* @__PURE__ */ u(Ag, { value: l.query, onValueChange: b }) : null
|
|
8254
8269
|
] }),
|
|
8255
8270
|
(F = i.geolocation) != null && F.enabled ? /* @__PURE__ */ u("section", { class: "flex flex-1 flex-col gap-1", children: [
|
|
8256
8271
|
/* @__PURE__ */ u("p", { class: "text-style-filter text-copy-neutral font-style-filter font-weight-filter", children: a("geo_label") }),
|
|
@@ -8260,9 +8275,9 @@ const M_ = /* @__PURE__ */ Es(L_), Yt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
8260
8275
|
rpcClient: e,
|
|
8261
8276
|
value: l.geo,
|
|
8262
8277
|
distanceUnit: i.geolocation.distanceUnit,
|
|
8263
|
-
onValueChange: (
|
|
8264
|
-
f(!1), h((
|
|
8265
|
-
const k = { ...
|
|
8278
|
+
onValueChange: (D) => {
|
|
8279
|
+
f(!1), h((R) => {
|
|
8280
|
+
const k = { ...R, geo: D, page: 1 };
|
|
8266
8281
|
return o == null || o(k), k;
|
|
8267
8282
|
}), y(1);
|
|
8268
8283
|
}
|
|
@@ -8274,13 +8289,13 @@ const M_ = /* @__PURE__ */ Es(L_), Yt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
8274
8289
|
Jp,
|
|
8275
8290
|
{
|
|
8276
8291
|
state: l,
|
|
8277
|
-
onFilterValueChange: (
|
|
8292
|
+
onFilterValueChange: (D, R) => {
|
|
8278
8293
|
f(!1), h((k) => {
|
|
8279
|
-
const z = { ...k.filters, [
|
|
8294
|
+
const z = { ...k.filters, [D]: R }, W = Pa(k.geo), se = { ...k, filters: z, geo: W, page: 1 };
|
|
8280
8295
|
return o == null || o(se), se;
|
|
8281
8296
|
}), y(1);
|
|
8282
8297
|
},
|
|
8283
|
-
onResetFilters:
|
|
8298
|
+
onResetFilters: $,
|
|
8284
8299
|
properties: t,
|
|
8285
8300
|
rpcClient: e,
|
|
8286
8301
|
alerts: i.alerts,
|
|
@@ -8299,17 +8314,17 @@ const M_ = /* @__PURE__ */ Es(L_), Yt = ({ chars: e }) => /* @__PURE__ */ u(
|
|
|
8299
8314
|
jobCardConfig: i.jobCard,
|
|
8300
8315
|
mapConfig: i.map,
|
|
8301
8316
|
initialData: d ? r == null ? void 0 : r.jobs : void 0,
|
|
8302
|
-
onResultsUpdate: (
|
|
8303
|
-
|
|
8317
|
+
onResultsUpdate: (D) => {
|
|
8318
|
+
m(D.totalCount);
|
|
8304
8319
|
},
|
|
8305
8320
|
onJobClick: g,
|
|
8306
|
-
onPaginate:
|
|
8321
|
+
onPaginate: v,
|
|
8307
8322
|
mode: (T = i.naturalLanguageSearch) != null && T.enabled ? "vector" : "query",
|
|
8308
|
-
onGeoChange:
|
|
8309
|
-
onViewChange:
|
|
8310
|
-
onResultOrderChange:
|
|
8323
|
+
onGeoChange: w,
|
|
8324
|
+
onViewChange: _,
|
|
8325
|
+
onResultOrderChange: x,
|
|
8311
8326
|
prioritySegment: (I = i.results) == null ? void 0 : I.prioritySegment,
|
|
8312
|
-
distanceUnit: (
|
|
8327
|
+
distanceUnit: (L = i.geolocation) == null ? void 0 : L.distanceUnit,
|
|
8313
8328
|
i18n: i.i18n
|
|
8314
8329
|
}
|
|
8315
8330
|
) }),
|
|
@@ -8399,8 +8414,8 @@ export {
|
|
|
8399
8414
|
iy as n,
|
|
8400
8415
|
oy as o,
|
|
8401
8416
|
X_ as p,
|
|
8402
|
-
|
|
8403
|
-
|
|
8417
|
+
re as q,
|
|
8418
|
+
M as r,
|
|
8404
8419
|
ry as s,
|
|
8405
8420
|
u as t,
|
|
8406
8421
|
og as u,
|