@inploi/plugin-job-search 1.0.0 → 1.0.1
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/components/filter.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/job-search.api.d.ts +12 -12
- package/dist/job-search.d.ts +5 -3
- package/dist/job-search.schemas.d.ts +6 -6
- package/dist/style/tokens.d.ts +1 -1
- package/dist/{job-search.api-f001f5fd.js → utils-054b6e73.js} +1505 -1504
- package/dist/utils-8c59d05c.cjs +17 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.ts +0 -2
- package/dist/utils.js +3 -5
- package/package.json +3 -3
- package/dist/job-search.api-fce04187.cjs +0 -17
- package/dist/lib/currency.d.ts +0 -10
- package/dist/lib/datetime.d.ts +0 -11
|
@@ -11,7 +11,39 @@ function wo(e, t) {
|
|
|
11
11
|
function So(e, t) {
|
|
12
12
|
return e in t;
|
|
13
13
|
}
|
|
14
|
-
var
|
|
14
|
+
var fn = {
|
|
15
|
+
ANNUALLY: "per year",
|
|
16
|
+
DAILY: "per day",
|
|
17
|
+
HOURLY: "per hour",
|
|
18
|
+
MONTHLY: "per month",
|
|
19
|
+
WEEKLY: "per week"
|
|
20
|
+
}, Co = (e) => {
|
|
21
|
+
const { salary: t, config: n, t: r = (s) => s } = e, o = new Intl.NumberFormat(n.locales, {
|
|
22
|
+
style: "currency",
|
|
23
|
+
currency: t.pay_currency,
|
|
24
|
+
// @ts-expect-error - CI/CD is not happy with this, though locally it works
|
|
25
|
+
trailingZeroDisplay: "stripIfInteger"
|
|
26
|
+
});
|
|
27
|
+
if (t.pay_display === !1)
|
|
28
|
+
return;
|
|
29
|
+
if (t.pay_mask)
|
|
30
|
+
return r("competitive");
|
|
31
|
+
if (t.pay_max && Number.isNaN(+t.pay_max) || t.pay_min && Number.isNaN(+t.pay_min) || t.pay && Number.isNaN(+t.pay))
|
|
32
|
+
return r("invalid_salary");
|
|
33
|
+
const a = t.pay_type && t.pay_type in fn ? fn[t.pay_type] : void 0;
|
|
34
|
+
return t.pay ? [o.format(+t.pay), a].filter(Boolean).join(" ") : t.pay_max && t.pay_min ? [o.formatRange(+t.pay_min, +t.pay_max), a].filter(Boolean).join(" ") || "" : t.pay_max ? `${r("up_to")} ${[o.format(+t.pay_max), a].filter(Boolean).join(" ")}` : t.pay_min ? `${r("from")} ${[o.format(+t.pay_min), a].filter(Boolean).join(" ")}` : r("invalid_salary");
|
|
35
|
+
}, xo = new Intl.RelativeTimeFormat(void 0, { numeric: "auto" }), To = ({
|
|
36
|
+
from: e = /* @__PURE__ */ new Date(),
|
|
37
|
+
to: t,
|
|
38
|
+
formatter: n = xo,
|
|
39
|
+
t: r = (o) => o
|
|
40
|
+
}) => {
|
|
41
|
+
const a = (t instanceof Date ? t : new Date(t)).getTime() - e.getTime(), s = {
|
|
42
|
+
days: Math.round(a / 1e3 / 60 / 60 / 24),
|
|
43
|
+
months: Math.round(a / 1e3 / 60 / 60 / 24 / 30)
|
|
44
|
+
};
|
|
45
|
+
return s.days === 0 ? r("today") : Math.abs(s.days) < 30 ? n.format(s.days, "days") : Math.abs(s.days) < 3 ? n.format(s.months, "months") : s.months < 0 ? r("over_30_days_ago") : r("in_over_30_days");
|
|
46
|
+
}, ze, w, tr, Ee, _n, nr, Ot, rr, Ne = {}, or = [], ko = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, at = Array.isArray;
|
|
15
47
|
function ie(e, t) {
|
|
16
48
|
for (var n in t)
|
|
17
49
|
e[n] = t[n];
|
|
@@ -28,16 +60,16 @@ function X(e, t, n) {
|
|
|
28
60
|
if (arguments.length > 2 && (s.children = arguments.length > 3 ? ze.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null)
|
|
29
61
|
for (a in e.defaultProps)
|
|
30
62
|
s[a] === void 0 && (s[a] = e.defaultProps[a]);
|
|
31
|
-
return
|
|
63
|
+
return Pe(e, s, r, o, null);
|
|
32
64
|
}
|
|
33
|
-
function
|
|
65
|
+
function Pe(e, t, n, r, o) {
|
|
34
66
|
var a = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: o ?? ++tr };
|
|
35
67
|
return o == null && w.vnode != null && w.vnode(a), a;
|
|
36
68
|
}
|
|
37
69
|
function ir() {
|
|
38
70
|
return { current: null };
|
|
39
71
|
}
|
|
40
|
-
function
|
|
72
|
+
function I(e) {
|
|
41
73
|
return e.children;
|
|
42
74
|
}
|
|
43
75
|
function G(e, t) {
|
|
@@ -63,7 +95,7 @@ function sr(e) {
|
|
|
63
95
|
}
|
|
64
96
|
}
|
|
65
97
|
function Rt(e) {
|
|
66
|
-
(!e.__d && (e.__d = !0) && Ee.push(e) && !nt.__r++ ||
|
|
98
|
+
(!e.__d && (e.__d = !0) && Ee.push(e) && !nt.__r++ || _n !== w.debounceRendering) && ((_n = w.debounceRendering) || nr)(nt);
|
|
67
99
|
}
|
|
68
100
|
function nt() {
|
|
69
101
|
var e, t, n, r, o, a, s, l, c;
|
|
@@ -74,7 +106,7 @@ function nt() {
|
|
|
74
106
|
function lr(e, t, n, r, o, a, s, l, c, d, f) {
|
|
75
107
|
var i, p, y, _, h, C, g, E, S, v, b = 0, m = r && r.__k || or, k = m.length, x = k, T = t.length;
|
|
76
108
|
for (n.__k = [], i = 0; i < T; i++)
|
|
77
|
-
(_ = n.__k[i] = (_ = t[i]) == null || typeof _ == "boolean" || typeof _ == "function" ? null : typeof _ == "string" || typeof _ == "number" || typeof _ == "bigint" ?
|
|
109
|
+
(_ = n.__k[i] = (_ = t[i]) == null || typeof _ == "boolean" || typeof _ == "function" ? null : typeof _ == "string" || typeof _ == "number" || typeof _ == "bigint" ? Pe(null, _, null, null, _) : at(_) ? Pe(I, { children: _ }, null, null, null) : _.__b > 0 ? Pe(_.type, _.props, _.key, _.ref ? _.ref : null, _.__v) : _) != null && (_.__ = n, _.__b = n.__b + 1, (E = Oo(_, m, g = i + b, x)) === -1 ? y = Ne : (y = m[E] || Ne, m[E] = void 0, x--), Ht(e, _, y, o, a, s, l, c, d, f), h = _.__e, (p = _.ref) && y.ref != p && (y.ref && Ft(y.ref, null, _), f.push(p, _.__c || h, _)), h != null && (C == null && (C = h), v = !(S = y === Ne || y.__v === null) && E === g, S ? E == -1 && b-- : E !== g && (E === g + 1 ? (b++, v = !0) : E > g ? x > T - g ? (b += E - g, v = !0) : b-- : b = E < g && E == g - 1 ? E - g : 0), g = i + b, v = v || E == i && !S, typeof _.type != "function" || E === g && y.__k !== _.__k ? typeof _.type == "function" || v ? _.__d !== void 0 ? (c = _.__d, _.__d = void 0) : c = h.nextSibling : c = ur(e, h, c) : c = cr(_, c, e), typeof n.type == "function" && (n.__d = c)));
|
|
78
110
|
for (n.__e = C, i = k; i--; )
|
|
79
111
|
m[i] != null && (typeof n.type == "function" && m[i].__e != null && m[i].__e == n.__d && (n.__d = m[i].__e.nextSibling), fr(m[i], m[i]));
|
|
80
112
|
}
|
|
@@ -91,7 +123,7 @@ function le(e, t) {
|
|
|
91
123
|
function ur(e, t, n) {
|
|
92
124
|
return n == null || n.parentNode !== e ? e.insertBefore(t, null) : t == n && t.parentNode != null || e.insertBefore(t, n), t.nextSibling;
|
|
93
125
|
}
|
|
94
|
-
function
|
|
126
|
+
function Oo(e, t, n, r) {
|
|
95
127
|
var o = e.key, a = e.type, s = n - 1, l = n + 1, c = t[n];
|
|
96
128
|
if (c === null || c && o == c.key && a === c.type)
|
|
97
129
|
return n;
|
|
@@ -110,15 +142,15 @@ function xo(e, t, n, r) {
|
|
|
110
142
|
}
|
|
111
143
|
return -1;
|
|
112
144
|
}
|
|
113
|
-
function
|
|
145
|
+
function Ro(e, t, n, r, o) {
|
|
114
146
|
var a;
|
|
115
147
|
for (a in n)
|
|
116
148
|
a === "children" || a === "key" || a in t || rt(e, a, null, n[a], r);
|
|
117
149
|
for (a in t)
|
|
118
150
|
o && typeof t[a] != "function" || a === "children" || a === "key" || a === "value" || a === "checked" || n[a] === t[a] || rt(e, a, t[a], n[a], r);
|
|
119
151
|
}
|
|
120
|
-
function
|
|
121
|
-
t[0] === "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" ||
|
|
152
|
+
function pn(e, t, n) {
|
|
153
|
+
t[0] === "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || ko.test(t) ? n : n + "px";
|
|
122
154
|
}
|
|
123
155
|
function rt(e, t, n, r, o) {
|
|
124
156
|
var a;
|
|
@@ -129,13 +161,13 @@ function rt(e, t, n, r, o) {
|
|
|
129
161
|
else {
|
|
130
162
|
if (typeof r == "string" && (e.style.cssText = r = ""), r)
|
|
131
163
|
for (t in r)
|
|
132
|
-
n && t in n ||
|
|
164
|
+
n && t in n || pn(e.style, t, "");
|
|
133
165
|
if (n)
|
|
134
166
|
for (t in n)
|
|
135
|
-
r && n[t] === r[t] ||
|
|
167
|
+
r && n[t] === r[t] || pn(e.style, t, n[t]);
|
|
136
168
|
}
|
|
137
169
|
else if (t[0] === "o" && t[1] === "n")
|
|
138
|
-
a = t !== (t = t.replace(/Capture$/, "")), t = t.toLowerCase() in e ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + a] = n, n ? r || e.addEventListener(t, a ?
|
|
170
|
+
a = t !== (t = t.replace(/Capture$/, "")), t = t.toLowerCase() in e ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + a] = n, n ? r || e.addEventListener(t, a ? yn : hn, a) : e.removeEventListener(t, a ? yn : hn, a);
|
|
139
171
|
else if (t !== "dangerouslySetInnerHTML") {
|
|
140
172
|
if (o)
|
|
141
173
|
t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
@@ -148,10 +180,10 @@ function rt(e, t, n, r, o) {
|
|
|
148
180
|
typeof n == "function" || (n == null || n === !1 && t[4] !== "-" ? e.removeAttribute(t) : e.setAttribute(t, n));
|
|
149
181
|
}
|
|
150
182
|
}
|
|
151
|
-
function
|
|
183
|
+
function hn(e) {
|
|
152
184
|
return this.l[e.type + !1](w.event ? w.event(e) : e);
|
|
153
185
|
}
|
|
154
|
-
function
|
|
186
|
+
function yn(e) {
|
|
155
187
|
return this.l[e.type + !0](w.event ? w.event(e) : e);
|
|
156
188
|
}
|
|
157
189
|
function Ht(e, t, n, r, o, a, s, l, c, d) {
|
|
@@ -162,7 +194,7 @@ function Ht(e, t, n, r, o, a, s, l, c, d) {
|
|
|
162
194
|
try {
|
|
163
195
|
e:
|
|
164
196
|
if (typeof T == "function") {
|
|
165
|
-
if (g = t.props, E = (f = T.contextType) && r[f.__c], S = f ? E ? E.props.value : f.__ : r, n.__c ? C = (i = t.__c = n.__c).__ = i.__E : ("prototype" in T && T.prototype.render ? t.__c = i = new T(g, S) : (t.__c = i = new G(g, S), i.constructor = T, i.render =
|
|
197
|
+
if (g = t.props, E = (f = T.contextType) && r[f.__c], S = f ? E ? E.props.value : f.__ : r, n.__c ? C = (i = t.__c = n.__c).__ = i.__E : ("prototype" in T && T.prototype.render ? t.__c = i = new T(g, S) : (t.__c = i = new G(g, S), i.constructor = T, i.render = No), E && E.sub(i), i.props = g, i.state || (i.state = {}), i.context = S, i.__n = r, p = i.__d = !0, i.__h = [], i._sb = []), i.__s == null && (i.__s = i.state), T.getDerivedStateFromProps != null && (i.__s == i.state && (i.__s = ie({}, i.__s)), ie(i.__s, T.getDerivedStateFromProps(g, i.__s))), y = i.props, _ = i.state, i.__v = t, p)
|
|
166
198
|
T.getDerivedStateFromProps == null && i.componentWillMount != null && i.componentWillMount(), i.componentDidMount != null && i.__h.push(i.componentDidMount);
|
|
167
199
|
else {
|
|
168
200
|
if (T.getDerivedStateFromProps == null && g !== y && i.componentWillReceiveProps != null && i.componentWillReceiveProps(g, S), !i.__e && (i.shouldComponentUpdate != null && i.shouldComponentUpdate(g, i.__s, S) === !1 || t.__v === n.__v)) {
|
|
@@ -185,9 +217,9 @@ function Ht(e, t, n, r, o, a, s, l, c, d) {
|
|
|
185
217
|
do
|
|
186
218
|
i.__d = !1, b && b(t), f = i.render(i.props, i.state, i.context), i.state = i.__s;
|
|
187
219
|
while (i.__d && ++m < 25);
|
|
188
|
-
i.state = i.__s, i.getChildContext != null && (r = ie(ie({}, r), i.getChildContext())), p || i.getSnapshotBeforeUpdate == null || (h = i.getSnapshotBeforeUpdate(y, _)), lr(e, at(x = f != null && f.type ===
|
|
220
|
+
i.state = i.__s, i.getChildContext != null && (r = ie(ie({}, r), i.getChildContext())), p || i.getSnapshotBeforeUpdate == null || (h = i.getSnapshotBeforeUpdate(y, _)), lr(e, at(x = f != null && f.type === I && f.key == null ? f.props.children : f) ? x : [x], t, n, r, o, a, s, l, c, d), i.base = t.__e, t.__h = null, i.__h.length && s.push(i), C && (i.__E = i.__ = null);
|
|
189
221
|
} else
|
|
190
|
-
a == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e =
|
|
222
|
+
a == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e = Lo(n.__e, t, n, r, o, a, s, c, d);
|
|
191
223
|
(f = w.diffed) && f(t);
|
|
192
224
|
} catch (O) {
|
|
193
225
|
t.__v = null, (c || a != null) && (t.__e = l, t.__h = !!c, a[a.indexOf(l)] = null), w.__e(O, t, n);
|
|
@@ -206,7 +238,7 @@ function dr(e, t, n) {
|
|
|
206
238
|
}
|
|
207
239
|
});
|
|
208
240
|
}
|
|
209
|
-
function
|
|
241
|
+
function Lo(e, t, n, r, o, a, s, l, c) {
|
|
210
242
|
var d, f, i, p = n.props, y = t.props, _ = t.type, h = 0;
|
|
211
243
|
if (_ === "svg" && (o = !0), a != null) {
|
|
212
244
|
for (; h < a.length; h++)
|
|
@@ -223,13 +255,13 @@ function ko(e, t, n, r, o, a, s, l, c) {
|
|
|
223
255
|
if (_ === null)
|
|
224
256
|
p === y || l && e.data === y || (e.data = y);
|
|
225
257
|
else {
|
|
226
|
-
if (a = a && ze.call(e.childNodes), f = (p = n.props ||
|
|
258
|
+
if (a = a && ze.call(e.childNodes), f = (p = n.props || Ne).dangerouslySetInnerHTML, i = y.dangerouslySetInnerHTML, !l) {
|
|
227
259
|
if (a != null)
|
|
228
260
|
for (p = {}, h = 0; h < e.attributes.length; h++)
|
|
229
261
|
p[e.attributes[h].name] = e.attributes[h].value;
|
|
230
262
|
(i || f) && (i && (f && i.__html == f.__html || i.__html === e.innerHTML) || (e.innerHTML = i && i.__html || ""));
|
|
231
263
|
}
|
|
232
|
-
if (
|
|
264
|
+
if (Ro(e, y, p, o, l), i)
|
|
233
265
|
t.__k = [];
|
|
234
266
|
else if (lr(e, at(h = t.props.children) ? h : [h], t, n, r, o && _ !== "foreignObject", a, s, a ? a[0] : n.__k && tt(n, 0), l, c), a != null)
|
|
235
267
|
for (h = a.length; h--; )
|
|
@@ -261,21 +293,21 @@ function fr(e, t, n) {
|
|
|
261
293
|
r[o] && fr(r[o], t, n || typeof e.type != "function");
|
|
262
294
|
n || e.__e == null || ar(e.__e), e.__ = e.__e = e.__d = void 0;
|
|
263
295
|
}
|
|
264
|
-
function
|
|
296
|
+
function No(e, t, n) {
|
|
265
297
|
return this.constructor(e, n);
|
|
266
298
|
}
|
|
267
299
|
function $e(e, t, n) {
|
|
268
300
|
var r, o, a, s;
|
|
269
|
-
w.__ && w.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, a = [], s = [], Ht(t, e = (!r && n || t).__k = X(
|
|
301
|
+
w.__ && w.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, a = [], s = [], Ht(t, e = (!r && n || t).__k = X(I, null, [e]), o || Ne, Ne, t.ownerSVGElement !== void 0, !r && n ? [n] : o ? null : t.firstChild ? ze.call(t.childNodes) : null, a, !r && n ? n : o ? o.__e : t.firstChild, r, s), dr(a, e, s);
|
|
270
302
|
}
|
|
271
303
|
function _r(e, t) {
|
|
272
304
|
$e(e, t, _r);
|
|
273
305
|
}
|
|
274
|
-
function
|
|
306
|
+
function Do(e, t, n) {
|
|
275
307
|
var r, o, a, s, l = ie({}, e.props);
|
|
276
308
|
for (a in e.type && e.type.defaultProps && (s = e.type.defaultProps), t)
|
|
277
309
|
a == "key" ? r = t[a] : a == "ref" ? o = t[a] : l[a] = t[a] === void 0 && s !== void 0 ? s[a] : t[a];
|
|
278
|
-
return arguments.length > 2 && (l.children = arguments.length > 3 ? ze.call(arguments, 2) : n),
|
|
310
|
+
return arguments.length > 2 && (l.children = arguments.length > 3 ? ze.call(arguments, 2) : n), Pe(e.type, l, r || e.key, o || e.ref, null);
|
|
279
311
|
}
|
|
280
312
|
function it(e, t) {
|
|
281
313
|
var n = { __c: t = "__cC" + rr++, __: e, Consumer: function(r, o) {
|
|
@@ -313,18 +345,18 @@ ze = or.slice, w = { __e: function(e, t, n, r) {
|
|
|
313
345
|
n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = ie({}, this.state), typeof e == "function" && (e = e(ie({}, n), this.props)), e && ie(n, e), e != null && this.__v && (t && this._sb.push(t), Rt(this));
|
|
314
346
|
}, G.prototype.forceUpdate = function(e) {
|
|
315
347
|
this.__v && (this.__e = !0, e && this.__h.push(e), Rt(this));
|
|
316
|
-
}, G.prototype.render =
|
|
348
|
+
}, G.prototype.render = I, Ee = [], nr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Ot = function(e, t) {
|
|
317
349
|
return e.__v.__b - t.__v.__b;
|
|
318
350
|
}, nt.__r = 0, rr = 0;
|
|
319
|
-
var
|
|
351
|
+
var Lt = "RFC3986", Nt = {
|
|
320
352
|
RFC1738: (e) => String(e).replace(/%20/g, "+"),
|
|
321
353
|
RFC3986: (e) => String(e)
|
|
322
|
-
},
|
|
354
|
+
}, Ao = "RFC1738", Io = Array.isArray, Y = (() => {
|
|
323
355
|
const e = [];
|
|
324
356
|
for (let t = 0; t < 256; ++t)
|
|
325
357
|
e.push("%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase());
|
|
326
358
|
return e;
|
|
327
|
-
})(), ht = 1024,
|
|
359
|
+
})(), ht = 1024, Mo = (e, t, n, r, o) => {
|
|
328
360
|
if (e.length === 0)
|
|
329
361
|
return e;
|
|
330
362
|
let a = e;
|
|
@@ -344,7 +376,7 @@ var Nt = "RFC3986", It = {
|
|
|
344
376
|
i >= 48 && i <= 57 || // 0-9
|
|
345
377
|
i >= 65 && i <= 90 || // a-z
|
|
346
378
|
i >= 97 && i <= 122 || // A-Z
|
|
347
|
-
o ===
|
|
379
|
+
o === Ao && (i === 40 || i === 41)) {
|
|
348
380
|
d[d.length] = c.charAt(f);
|
|
349
381
|
continue;
|
|
350
382
|
}
|
|
@@ -366,10 +398,10 @@ var Nt = "RFC3986", It = {
|
|
|
366
398
|
}
|
|
367
399
|
return s;
|
|
368
400
|
};
|
|
369
|
-
function
|
|
401
|
+
function Po(e) {
|
|
370
402
|
return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
|
|
371
403
|
}
|
|
372
|
-
function
|
|
404
|
+
function gn(e, t) {
|
|
373
405
|
if (Io(e)) {
|
|
374
406
|
const n = [];
|
|
375
407
|
for (let r = 0; r < e.length; r += 1)
|
|
@@ -378,7 +410,7 @@ function yn(e, t) {
|
|
|
378
410
|
}
|
|
379
411
|
return t(e);
|
|
380
412
|
}
|
|
381
|
-
var
|
|
413
|
+
var jo = Object.prototype.hasOwnProperty, pr = {
|
|
382
414
|
brackets(e) {
|
|
383
415
|
return String(e) + "[]";
|
|
384
416
|
},
|
|
@@ -389,9 +421,9 @@ var Do = Object.prototype.hasOwnProperty, pr = {
|
|
|
389
421
|
repeat(e) {
|
|
390
422
|
return String(e);
|
|
391
423
|
}
|
|
392
|
-
}, J = Array.isArray,
|
|
393
|
-
|
|
394
|
-
},
|
|
424
|
+
}, J = Array.isArray, Vo = Array.prototype.push, hr = function(e, t) {
|
|
425
|
+
Vo.apply(e, J(t) ? t : [t]);
|
|
426
|
+
}, $o = Date.prototype.toISOString, P = {
|
|
395
427
|
addQueryPrefix: !1,
|
|
396
428
|
allowDots: !1,
|
|
397
429
|
allowEmptyArrays: !1,
|
|
@@ -401,19 +433,19 @@ var Do = Object.prototype.hasOwnProperty, pr = {
|
|
|
401
433
|
delimiter: "&",
|
|
402
434
|
encode: !0,
|
|
403
435
|
encodeDotInKeys: !1,
|
|
404
|
-
encoder:
|
|
436
|
+
encoder: Mo,
|
|
405
437
|
encodeValuesOnly: !1,
|
|
406
|
-
format:
|
|
407
|
-
formatter:
|
|
438
|
+
format: Lt,
|
|
439
|
+
formatter: Nt[Lt],
|
|
408
440
|
/** @deprecated */
|
|
409
441
|
indices: !1,
|
|
410
442
|
serializeDate(e) {
|
|
411
|
-
return
|
|
443
|
+
return $o.call(e);
|
|
412
444
|
},
|
|
413
445
|
skipNulls: !1,
|
|
414
446
|
strictNullHandling: !1
|
|
415
447
|
};
|
|
416
|
-
function
|
|
448
|
+
function Uo(e) {
|
|
417
449
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
418
450
|
}
|
|
419
451
|
var yt = {};
|
|
@@ -428,25 +460,25 @@ function yr(e, t, n, r, o, a, s, l, c, d, f, i, p, y, _, h, C, g) {
|
|
|
428
460
|
}
|
|
429
461
|
typeof S.get(yt) > "u" && (v = 0);
|
|
430
462
|
}
|
|
431
|
-
if (typeof d == "function" ? E = d(t, E) : E instanceof Date ? E = p == null ? void 0 : p(E) : n === "comma" && J(E) && (E =
|
|
463
|
+
if (typeof d == "function" ? E = d(t, E) : E instanceof Date ? E = p == null ? void 0 : p(E) : n === "comma" && J(E) && (E = gn(E, function(O) {
|
|
432
464
|
return O instanceof Date ? p == null ? void 0 : p(O) : O;
|
|
433
465
|
})), E === null) {
|
|
434
466
|
if (a)
|
|
435
467
|
return c && !h ? (
|
|
436
468
|
// @ts-expect-error
|
|
437
|
-
c(t,
|
|
469
|
+
c(t, P.encoder, C, "key", y)
|
|
438
470
|
) : t;
|
|
439
471
|
E = "";
|
|
440
472
|
}
|
|
441
|
-
if (
|
|
473
|
+
if (Uo(E) || Po(E)) {
|
|
442
474
|
if (c) {
|
|
443
475
|
const O = h ? t : (
|
|
444
476
|
// @ts-expect-error
|
|
445
|
-
c(t,
|
|
477
|
+
c(t, P.encoder, C, "key", y)
|
|
446
478
|
);
|
|
447
479
|
return [
|
|
448
480
|
(_ == null ? void 0 : _(O)) + "=" + // @ts-expect-error
|
|
449
|
-
(_ == null ? void 0 : _(c(E,
|
|
481
|
+
(_ == null ? void 0 : _(c(E, P.encoder, C, "value", y)))
|
|
450
482
|
];
|
|
451
483
|
}
|
|
452
484
|
return [(_ == null ? void 0 : _(t)) + "=" + (_ == null ? void 0 : _(String(E)))];
|
|
@@ -456,7 +488,7 @@ function yr(e, t, n, r, o, a, s, l, c, d, f, i, p, y, _, h, C, g) {
|
|
|
456
488
|
return m;
|
|
457
489
|
let k;
|
|
458
490
|
if (n === "comma" && J(E))
|
|
459
|
-
h && c && (E =
|
|
491
|
+
h && c && (E = gn(E, c)), k = [{ value: E.length > 0 ? E.join(",") || null : void 0 }];
|
|
460
492
|
else if (J(d))
|
|
461
493
|
k = d;
|
|
462
494
|
else {
|
|
@@ -503,56 +535,56 @@ function yr(e, t, n, r, o, a, s, l, c, d, f, i, p, y, _, h, C, g) {
|
|
|
503
535
|
}
|
|
504
536
|
return m;
|
|
505
537
|
}
|
|
506
|
-
function
|
|
538
|
+
function Ho(e = P) {
|
|
507
539
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
508
540
|
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
509
541
|
if (typeof e.encodeDotInKeys < "u" && typeof e.encodeDotInKeys != "boolean")
|
|
510
542
|
throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
511
543
|
if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
|
|
512
544
|
throw new TypeError("Encoder has to be a function.");
|
|
513
|
-
const t = e.charset ||
|
|
545
|
+
const t = e.charset || P.charset;
|
|
514
546
|
if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
|
|
515
547
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
516
|
-
let n =
|
|
548
|
+
let n = Lt;
|
|
517
549
|
if (typeof e.format < "u") {
|
|
518
|
-
if (!
|
|
550
|
+
if (!jo.call(Nt, e.format))
|
|
519
551
|
throw new TypeError("Unknown format option provided.");
|
|
520
552
|
n = e.format;
|
|
521
553
|
}
|
|
522
|
-
const r =
|
|
523
|
-
let o =
|
|
554
|
+
const r = Nt[n];
|
|
555
|
+
let o = P.filter;
|
|
524
556
|
(typeof e.filter == "function" || J(e.filter)) && (o = e.filter);
|
|
525
557
|
let a;
|
|
526
|
-
if (e.arrayFormat && e.arrayFormat in pr ? a = e.arrayFormat : "indices" in e ? a = e.indices ? "indices" : "repeat" : a =
|
|
558
|
+
if (e.arrayFormat && e.arrayFormat in pr ? a = e.arrayFormat : "indices" in e ? a = e.indices ? "indices" : "repeat" : a = P.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
|
|
527
559
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
528
|
-
const s = typeof e.allowDots > "u" ? e.encodeDotInKeys ? !0 :
|
|
560
|
+
const s = typeof e.allowDots > "u" ? e.encodeDotInKeys ? !0 : P.allowDots : !!e.allowDots;
|
|
529
561
|
return {
|
|
530
|
-
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix :
|
|
562
|
+
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : P.addQueryPrefix,
|
|
531
563
|
// @ts-ignore
|
|
532
564
|
allowDots: s,
|
|
533
|
-
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays :
|
|
565
|
+
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : P.allowEmptyArrays,
|
|
534
566
|
arrayFormat: a,
|
|
535
567
|
charset: t,
|
|
536
|
-
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel :
|
|
568
|
+
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : P.charsetSentinel,
|
|
537
569
|
commaRoundTrip: !!e.commaRoundTrip,
|
|
538
|
-
delimiter: typeof e.delimiter > "u" ?
|
|
539
|
-
encode: typeof e.encode == "boolean" ? e.encode :
|
|
540
|
-
encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys :
|
|
541
|
-
encoder: typeof e.encoder == "function" ? e.encoder :
|
|
542
|
-
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly :
|
|
570
|
+
delimiter: typeof e.delimiter > "u" ? P.delimiter : e.delimiter,
|
|
571
|
+
encode: typeof e.encode == "boolean" ? e.encode : P.encode,
|
|
572
|
+
encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : P.encodeDotInKeys,
|
|
573
|
+
encoder: typeof e.encoder == "function" ? e.encoder : P.encoder,
|
|
574
|
+
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : P.encodeValuesOnly,
|
|
543
575
|
filter: o,
|
|
544
576
|
format: n,
|
|
545
577
|
formatter: r,
|
|
546
|
-
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate :
|
|
547
|
-
skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls :
|
|
578
|
+
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : P.serializeDate,
|
|
579
|
+
skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : P.skipNulls,
|
|
548
580
|
// @ts-expect-error
|
|
549
581
|
sort: typeof e.sort == "function" ? e.sort : null,
|
|
550
|
-
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling :
|
|
582
|
+
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : P.strictNullHandling
|
|
551
583
|
};
|
|
552
584
|
}
|
|
553
585
|
function gr(e, t = {}) {
|
|
554
586
|
let n = e;
|
|
555
|
-
const r =
|
|
587
|
+
const r = Ho(t);
|
|
556
588
|
let o, a;
|
|
557
589
|
typeof r.filter == "function" ? (a = r.filter, n = a("", n)) : J(r.filter) && (a = r.filter, o = a);
|
|
558
590
|
const s = [];
|
|
@@ -604,7 +636,7 @@ var st = class extends Error {
|
|
|
604
636
|
this.name = "ValiError", this.issues = t;
|
|
605
637
|
}
|
|
606
638
|
};
|
|
607
|
-
function
|
|
639
|
+
function vn(e, t) {
|
|
608
640
|
return {
|
|
609
641
|
...e,
|
|
610
642
|
_parse(n, r) {
|
|
@@ -618,7 +650,7 @@ function Be(e) {
|
|
|
618
650
|
function we(e) {
|
|
619
651
|
return { output: e };
|
|
620
652
|
}
|
|
621
|
-
function
|
|
653
|
+
function Fo(e, t) {
|
|
622
654
|
return {
|
|
623
655
|
reason: e == null ? void 0 : e.reason,
|
|
624
656
|
validation: t.validation,
|
|
@@ -631,7 +663,7 @@ function $o(e, t) {
|
|
|
631
663
|
skipPipe: e == null ? void 0 : e.skipPipe
|
|
632
664
|
};
|
|
633
665
|
}
|
|
634
|
-
function
|
|
666
|
+
function Wo(e, t) {
|
|
635
667
|
return {
|
|
636
668
|
reason: t,
|
|
637
669
|
origin: e == null ? void 0 : e.origin,
|
|
@@ -647,9 +679,9 @@ function ve(e, t, n, r) {
|
|
|
647
679
|
for (const l of t) {
|
|
648
680
|
const c = l._parse(s);
|
|
649
681
|
if (c.issues) {
|
|
650
|
-
o = o ||
|
|
682
|
+
o = o || Wo(n, r);
|
|
651
683
|
for (const d of c.issues) {
|
|
652
|
-
const f =
|
|
684
|
+
const f = Fo(o, d);
|
|
653
685
|
a ? a.push(f) : a = [f];
|
|
654
686
|
}
|
|
655
687
|
if (o.abortEarly || o.abortPipeEarly)
|
|
@@ -665,7 +697,7 @@ function he(e, t) {
|
|
|
665
697
|
function vr(e) {
|
|
666
698
|
return typeof e == "function" ? e() : e;
|
|
667
699
|
}
|
|
668
|
-
function
|
|
700
|
+
function zo(e, t, n, r) {
|
|
669
701
|
return Be([
|
|
670
702
|
{
|
|
671
703
|
validation: e,
|
|
@@ -675,7 +707,7 @@ function Ho(e, t, n, r) {
|
|
|
675
707
|
}
|
|
676
708
|
]);
|
|
677
709
|
}
|
|
678
|
-
function
|
|
710
|
+
function Bo(e, t, n) {
|
|
679
711
|
if (!e || typeof e == "object" && !Array.isArray(e)) {
|
|
680
712
|
const [a, s] = he(t, n);
|
|
681
713
|
return [e, a, s];
|
|
@@ -706,7 +738,7 @@ function me(e, t, n, r, o, a) {
|
|
|
706
738
|
function mr(e) {
|
|
707
739
|
return typeof e.default == "function" ? e.default() : e.default;
|
|
708
740
|
}
|
|
709
|
-
function
|
|
741
|
+
function qo(e) {
|
|
710
742
|
return {
|
|
711
743
|
type: "any",
|
|
712
744
|
async: !1,
|
|
@@ -749,7 +781,7 @@ function Wt(e, t, n) {
|
|
|
749
781
|
}
|
|
750
782
|
};
|
|
751
783
|
}
|
|
752
|
-
function
|
|
784
|
+
function mn(e, t) {
|
|
753
785
|
const [n = "Invalid type", r] = he(e, t);
|
|
754
786
|
return {
|
|
755
787
|
type: "boolean",
|
|
@@ -802,7 +834,7 @@ function de(e, t) {
|
|
|
802
834
|
};
|
|
803
835
|
}
|
|
804
836
|
function se(e, t, n, r) {
|
|
805
|
-
const [o, a = "Invalid type", s] =
|
|
837
|
+
const [o, a = "Invalid type", s] = Bo(t, n, r);
|
|
806
838
|
let l;
|
|
807
839
|
return {
|
|
808
840
|
type: "object",
|
|
@@ -878,7 +910,7 @@ function fe(e, t) {
|
|
|
878
910
|
}
|
|
879
911
|
};
|
|
880
912
|
}
|
|
881
|
-
function
|
|
913
|
+
function L(e, t) {
|
|
882
914
|
const [n = "Invalid type", r] = he(e, t);
|
|
883
915
|
return {
|
|
884
916
|
type: "string",
|
|
@@ -890,7 +922,7 @@ function N(e, t) {
|
|
|
890
922
|
}
|
|
891
923
|
};
|
|
892
924
|
}
|
|
893
|
-
function
|
|
925
|
+
function Go(e, t, n, r) {
|
|
894
926
|
if (typeof t == "object" && !Array.isArray(t)) {
|
|
895
927
|
const [s, l] = he(n, r);
|
|
896
928
|
return [e, t, s, l];
|
|
@@ -899,11 +931,11 @@ function zo(e, t, n, r) {
|
|
|
899
931
|
t,
|
|
900
932
|
n
|
|
901
933
|
);
|
|
902
|
-
return [
|
|
934
|
+
return [L(), e, o, a];
|
|
903
935
|
}
|
|
904
|
-
var
|
|
936
|
+
var Ko = ["__proto__", "prototype", "constructor"];
|
|
905
937
|
function br(e, t, n, r) {
|
|
906
|
-
const [o, a, s = "Invalid type", l] =
|
|
938
|
+
const [o, a, s = "Invalid type", l] = Go(e, t, n, r);
|
|
907
939
|
return {
|
|
908
940
|
type: "record",
|
|
909
941
|
async: !1,
|
|
@@ -917,7 +949,7 @@ function br(e, t, n, r) {
|
|
|
917
949
|
let f;
|
|
918
950
|
const i = {};
|
|
919
951
|
for (const [p, y] of Object.entries(c))
|
|
920
|
-
if (!
|
|
952
|
+
if (!Ko.includes(p)) {
|
|
921
953
|
let _;
|
|
922
954
|
const h = this.key._parse(p, {
|
|
923
955
|
origin: "key",
|
|
@@ -961,7 +993,7 @@ function br(e, t, n, r) {
|
|
|
961
993
|
}
|
|
962
994
|
};
|
|
963
995
|
}
|
|
964
|
-
function
|
|
996
|
+
function bn(e, t = "Invalid type") {
|
|
965
997
|
return {
|
|
966
998
|
type: "union",
|
|
967
999
|
async: !1,
|
|
@@ -1016,7 +1048,7 @@ function _e(e, t, n) {
|
|
|
1016
1048
|
}
|
|
1017
1049
|
};
|
|
1018
1050
|
}
|
|
1019
|
-
function
|
|
1051
|
+
function Zo(e = "Invalid URL") {
|
|
1020
1052
|
return {
|
|
1021
1053
|
type: "url",
|
|
1022
1054
|
async: !1,
|
|
@@ -1029,160 +1061,233 @@ function qo(e = "Invalid URL") {
|
|
|
1029
1061
|
}
|
|
1030
1062
|
},
|
|
1031
1063
|
_parse(t) {
|
|
1032
|
-
return this.requirement(t) ? we(t) :
|
|
1064
|
+
return this.requirement(t) ? we(t) : zo(this.type, this.message, t, this.requirement);
|
|
1033
1065
|
}
|
|
1034
1066
|
};
|
|
1035
1067
|
}
|
|
1036
|
-
const Ws = "inploi-job-search",
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1068
|
+
const Ws = "inploi-job-search", Yo = 10, Jo = br(
|
|
1069
|
+
Wt(se({ label: vn(L(), String), value: vn(L(), String), jobs: de() }))
|
|
1070
|
+
), Qo = L([Zo()]), Xo = se({
|
|
1071
|
+
total: de(),
|
|
1072
|
+
current_page: de(),
|
|
1073
|
+
per_page: de(),
|
|
1074
|
+
last_page: de()
|
|
1075
|
+
}), ea = se({
|
|
1076
|
+
id: de(),
|
|
1077
|
+
company_name: L(),
|
|
1078
|
+
company_logo: z(fe(L())),
|
|
1079
|
+
employment_type: L(),
|
|
1080
|
+
location_type: bn([oe("LOCATION"), oe("REMOTE"), oe("HYBRID")]),
|
|
1081
|
+
pay_type: z(
|
|
1082
|
+
bn([oe("ANNUALLY"), oe("HOURLY"), oe("MONTHLY"), oe("WEEKLY"), oe("DAILY")])
|
|
1083
|
+
),
|
|
1084
|
+
pay_currency: L(),
|
|
1085
|
+
// Whether to mask the pay and show as "competitive"
|
|
1086
|
+
pay_mask: mn(),
|
|
1087
|
+
// Whether to display pay at all
|
|
1088
|
+
pay_display: mn(),
|
|
1089
|
+
// Decimal numeric string e.g. "12.70"
|
|
1090
|
+
pay: z(L()),
|
|
1091
|
+
// Decimal numeric string e.g. "12.70"
|
|
1092
|
+
pay_min: z(L()),
|
|
1093
|
+
// Decimal numeric string e.g. "12.70"
|
|
1094
|
+
pay_max: z(L()),
|
|
1095
|
+
description: L(),
|
|
1096
|
+
title: L(),
|
|
1097
|
+
// E.g.: Any varchar, e.g.: "Permanent contract"
|
|
1098
|
+
contract_type: z(L()),
|
|
1099
|
+
created_at: z(L()),
|
|
1100
|
+
custom_data: z(br(qo())),
|
|
1101
|
+
href: L(),
|
|
1102
|
+
industry: z(L()),
|
|
1103
|
+
category: z(L()),
|
|
1104
|
+
skills: fe(L()),
|
|
1105
|
+
town: fe(L()),
|
|
1106
|
+
city: z(L()),
|
|
1107
|
+
country: z(L()),
|
|
1108
|
+
vector_distance: fe(z(L()))
|
|
1109
|
+
}), ta = (e) => _e(ea, (t) => {
|
|
1110
|
+
const n = zt(Qo, t.company_logo);
|
|
1111
|
+
return {
|
|
1112
|
+
id: t.id,
|
|
1113
|
+
createdAt: t.created_at,
|
|
1114
|
+
company: {
|
|
1115
|
+
name: t.company_name,
|
|
1116
|
+
logo: n.success ? n.output : null
|
|
1117
|
+
},
|
|
1118
|
+
employmentType: t.employment_type,
|
|
1119
|
+
locationType: t.location_type,
|
|
1120
|
+
pay: Co({ salary: t, config: { locales: void 0 }, t: e }) ?? null,
|
|
1121
|
+
description: t.description,
|
|
1122
|
+
title: t.title,
|
|
1123
|
+
contractType: t.contract_type,
|
|
1124
|
+
href: t.href,
|
|
1125
|
+
relativePostedDate: t.created_at ? To({ to: new Date(t.created_at), t: e }) : "INVALID DATE",
|
|
1126
|
+
customData: t.custom_data,
|
|
1127
|
+
raw: t,
|
|
1128
|
+
match: t.vector_distance && parseFloat(t.vector_distance) < 0.15 ? e("great_match") : null
|
|
1129
|
+
};
|
|
1130
|
+
}), na = (e) => _e(
|
|
1131
|
+
se({
|
|
1132
|
+
data: Wt(ta(e)),
|
|
1133
|
+
pagination: Xo
|
|
1134
|
+
}),
|
|
1135
|
+
(t) => ({
|
|
1136
|
+
pagination: t.pagination,
|
|
1137
|
+
results: t.data
|
|
1138
|
+
})
|
|
1139
|
+
), ra = (e) => !e || Array.isArray(e) && e.length === 0 ? null : e, wr = (e) => {
|
|
1140
|
+
var n;
|
|
1141
|
+
const t = {};
|
|
1142
|
+
for (const r in e.filters) {
|
|
1143
|
+
const o = e.filters[r];
|
|
1144
|
+
t[r] = ra(o == null ? void 0 : o.value);
|
|
1145
|
+
}
|
|
1146
|
+
return ((n = e.geo) == null ? void 0 : n.type) === "provided" && e.geo.coords && (t.geolocation = {
|
|
1147
|
+
type: e.geo.type,
|
|
1148
|
+
lat: e.geo.coords.lat,
|
|
1149
|
+
lng: e.geo.coords.lng,
|
|
1150
|
+
radius: e.geo.radius
|
|
1151
|
+
}), t;
|
|
1152
|
+
}, zs = async ({
|
|
1153
|
+
apiClient: e,
|
|
1154
|
+
state: t,
|
|
1155
|
+
logger: n,
|
|
1156
|
+
signal: r
|
|
1157
|
+
}) => {
|
|
1158
|
+
try {
|
|
1159
|
+
const o = new URLSearchParams(
|
|
1160
|
+
gr({
|
|
1161
|
+
filters: wr(t),
|
|
1162
|
+
query: t.query
|
|
1163
|
+
})
|
|
1164
|
+
), a = "/search/filters", s = await e.fetch([a, o.toString()].filter(Boolean).join("?"), {
|
|
1165
|
+
signal: r
|
|
1059
1166
|
});
|
|
1060
|
-
|
|
1061
|
-
}
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
return t;
|
|
1073
|
-
}
|
|
1074
|
-
var sa = ia, la = sa, ca = /^\s+/;
|
|
1075
|
-
function ua(e) {
|
|
1076
|
-
return e && e.slice(0, la(e) + 1).replace(ca, "");
|
|
1077
|
-
}
|
|
1078
|
-
var da = ua, fa = Sr, _a = fa.Symbol, Cr = _a, bn = Cr, xr = Object.prototype, pa = xr.hasOwnProperty, ha = xr.toString, De = bn ? bn.toStringTag : void 0;
|
|
1079
|
-
function ya(e) {
|
|
1080
|
-
var t = pa.call(e, De), n = e[De];
|
|
1167
|
+
return Er(Jo, s);
|
|
1168
|
+
} catch (o) {
|
|
1169
|
+
throw o instanceof st ? n.error(o.message, o.issues) : n.error(o), o;
|
|
1170
|
+
}
|
|
1171
|
+
}, Bs = async ({
|
|
1172
|
+
apiClient: e,
|
|
1173
|
+
logger: t,
|
|
1174
|
+
signal: n,
|
|
1175
|
+
state: r,
|
|
1176
|
+
page: o = 1,
|
|
1177
|
+
t: a
|
|
1178
|
+
}) => {
|
|
1081
1179
|
try {
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1180
|
+
const s = new URLSearchParams(
|
|
1181
|
+
gr({
|
|
1182
|
+
filters: wr(r)
|
|
1183
|
+
})
|
|
1184
|
+
);
|
|
1185
|
+
s.set("page", o.toString()), s.set("per_page", Yo.toString()), r.query && (s.set("query", r.query), s.set("mode", r.mode));
|
|
1186
|
+
const l = await e.fetch(["/search/results", s.toString()].filter(Boolean).join("?"), {
|
|
1187
|
+
signal: n
|
|
1188
|
+
});
|
|
1189
|
+
return Er(na(a), l);
|
|
1190
|
+
} catch (s) {
|
|
1191
|
+
throw s instanceof st ? t.error(s.message, s.issues) : t.error(s), s;
|
|
1085
1192
|
}
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
}
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1193
|
+
}, Sr = (e) => {
|
|
1194
|
+
if (e.error)
|
|
1195
|
+
return { queryState: "error", error: e.error, swr: e };
|
|
1196
|
+
if (e.isLoading && e.data === void 0)
|
|
1197
|
+
return { queryState: "loading", swr: e };
|
|
1198
|
+
if ((e.isLoading || e.isValidating) && e.data)
|
|
1199
|
+
return { queryState: "revalidating", data: e.data, swr: e };
|
|
1200
|
+
if (!e.isLoading && e.data)
|
|
1201
|
+
return { queryState: "loaded", data: e.data, swr: e };
|
|
1202
|
+
if (!e.data && !e.isLoading)
|
|
1203
|
+
return { queryState: "idle", swr: e };
|
|
1204
|
+
throw console.error("Unhandled data state", e), new Error("Unhandled data state");
|
|
1205
|
+
}, qs = {
|
|
1206
|
+
keepPreviousData: !0,
|
|
1207
|
+
revalidateOnFocus: !1,
|
|
1208
|
+
revalidateOnReconnect: !1,
|
|
1209
|
+
revalidateIfStale: !1,
|
|
1210
|
+
revalidateFirstPage: !1
|
|
1211
|
+
};
|
|
1212
|
+
var oa = 0;
|
|
1213
|
+
function u(e, t, n, r, o, a) {
|
|
1214
|
+
var s, l, c = {};
|
|
1215
|
+
for (l in t)
|
|
1216
|
+
l == "ref" ? s = t[l] : c[l] = t[l];
|
|
1217
|
+
var d = { type: e, props: c, key: n, ref: s, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: --oa, __source: o, __self: a };
|
|
1218
|
+
if (typeof e == "function" && (s = e.defaultProps))
|
|
1219
|
+
for (l in s)
|
|
1220
|
+
c[l] === void 0 && (c[l] = s[l]);
|
|
1221
|
+
return w.vnode && w.vnode(d), d;
|
|
1100
1222
|
}
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1223
|
+
function Cr(e) {
|
|
1224
|
+
var t, n, r = "";
|
|
1225
|
+
if (typeof e == "string" || typeof e == "number")
|
|
1226
|
+
r += e;
|
|
1227
|
+
else if (typeof e == "object")
|
|
1228
|
+
if (Array.isArray(e)) {
|
|
1229
|
+
var o = e.length;
|
|
1230
|
+
for (t = 0; t < o; t++)
|
|
1231
|
+
e[t] && (n = Cr(e[t])) && (r && (r += " "), r += n);
|
|
1232
|
+
} else
|
|
1233
|
+
for (n in e)
|
|
1234
|
+
e[n] && (r && (r += " "), r += n);
|
|
1235
|
+
return r;
|
|
1104
1236
|
}
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
if (Ma(e))
|
|
1110
|
-
return Cn;
|
|
1111
|
-
if (Sn(e)) {
|
|
1112
|
-
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
1113
|
-
e = Sn(t) ? t + "" : t;
|
|
1114
|
-
}
|
|
1115
|
-
if (typeof e != "string")
|
|
1116
|
-
return e === 0 ? e : +e;
|
|
1117
|
-
e = Pa(e);
|
|
1118
|
-
var n = Va.test(e);
|
|
1119
|
-
return n || $a.test(e) ? Ua(e.slice(2), n ? 2 : 8) : ja.test(e) ? Cn : +e;
|
|
1237
|
+
function aa() {
|
|
1238
|
+
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++)
|
|
1239
|
+
(e = arguments[n]) && (t = Cr(e)) && (r && (r += " "), r += t);
|
|
1240
|
+
return r;
|
|
1120
1241
|
}
|
|
1121
|
-
var
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
function
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
l !== void 0 && clearTimeout(l), d = 0, r = c = o = l = void 0;
|
|
1153
|
-
}
|
|
1154
|
-
function v() {
|
|
1155
|
-
return l === void 0 ? s : E(gt());
|
|
1156
|
-
}
|
|
1157
|
-
function b() {
|
|
1158
|
-
var m = gt(), k = C(m);
|
|
1159
|
-
if (r = arguments, o = this, c = m, k) {
|
|
1160
|
-
if (l === void 0)
|
|
1161
|
-
return _(c);
|
|
1162
|
-
if (i)
|
|
1163
|
-
return clearTimeout(l), l = setTimeout(g, t), y(c);
|
|
1242
|
+
var ia = ["other", "few", "many", "two", "one", "zero"], En = ({
|
|
1243
|
+
terms: e,
|
|
1244
|
+
overrides: t,
|
|
1245
|
+
locale: n
|
|
1246
|
+
}) => {
|
|
1247
|
+
const r = new Intl.PluralRules(n);
|
|
1248
|
+
function o(a, s) {
|
|
1249
|
+
const l = (t == null ? void 0 : t[a]) ?? e[a];
|
|
1250
|
+
switch (typeof l) {
|
|
1251
|
+
case "string":
|
|
1252
|
+
return l.replace(/{{(\w+)}}/g, (c, d) => {
|
|
1253
|
+
var f;
|
|
1254
|
+
return ((f = s == null ? void 0 : s[d]) == null ? void 0 : f.toString()) ?? "";
|
|
1255
|
+
});
|
|
1256
|
+
case "object": {
|
|
1257
|
+
if (typeof (s == null ? void 0 : s.count) != "number")
|
|
1258
|
+
throw new Error(`Missing count for translation key “${a.toString()}”`);
|
|
1259
|
+
let c = r.select(s.count);
|
|
1260
|
+
if (!(c in l)) {
|
|
1261
|
+
const d = ia.find((f) => f in l);
|
|
1262
|
+
if (!d)
|
|
1263
|
+
throw new Error(`Missing plural rule for translation key “${a.toString()}”`);
|
|
1264
|
+
c = d;
|
|
1265
|
+
}
|
|
1266
|
+
return l[c].replace(/{{(\w+)}}/g, (d, f) => {
|
|
1267
|
+
var i;
|
|
1268
|
+
return ((i = s == null ? void 0 : s[f]) == null ? void 0 : i.toString()) ?? "";
|
|
1269
|
+
});
|
|
1270
|
+
}
|
|
1271
|
+
default:
|
|
1272
|
+
throw new Error(`Invalid translation value in dictionary for key “${a.toString()}”.`);
|
|
1164
1273
|
}
|
|
1165
|
-
return l === void 0 && (l = setTimeout(g, t)), s;
|
|
1166
1274
|
}
|
|
1167
|
-
return
|
|
1168
|
-
}
|
|
1169
|
-
var Ka = Ga;
|
|
1170
|
-
const Za = /* @__PURE__ */ Ko(Ka);
|
|
1171
|
-
var ce, I, vt, Tn, Le = 0, Tr = [], Xe = [], kn = w.__b, On = w.__r, Rn = w.diffed, Nn = w.__c, In = w.unmount;
|
|
1275
|
+
return o;
|
|
1276
|
+
}, ce, N, gt, wn, De = 0, xr = [], Xe = [], Sn = w.__b, Cn = w.__r, xn = w.diffed, Tn = w.__c, kn = w.unmount;
|
|
1172
1277
|
function Se(e, t) {
|
|
1173
|
-
w.__h && w.__h(
|
|
1174
|
-
var n =
|
|
1278
|
+
w.__h && w.__h(N, e, De || t), De = 0;
|
|
1279
|
+
var n = N.__H || (N.__H = { __: [], __h: [] });
|
|
1175
1280
|
return e >= n.__.length && n.__.push({ __V: Xe }), n.__[e];
|
|
1176
1281
|
}
|
|
1177
1282
|
function j(e) {
|
|
1178
|
-
return
|
|
1283
|
+
return De = 1, Bt(kr, e);
|
|
1179
1284
|
}
|
|
1180
1285
|
function Bt(e, t, n) {
|
|
1181
1286
|
var r = Se(ce++, 2);
|
|
1182
|
-
if (r.t = e, !r.__c && (r.__ = [n ? n(t) :
|
|
1287
|
+
if (r.t = e, !r.__c && (r.__ = [n ? n(t) : kr(void 0, t), function(l) {
|
|
1183
1288
|
var c = r.__N ? r.__N[0] : r.__[0], d = r.t(c, l);
|
|
1184
1289
|
c !== d && (r.__N = [d, r.__[1]], r.__c.setState({}));
|
|
1185
|
-
}], r.__c =
|
|
1290
|
+
}], r.__c = N, !N.u)) {
|
|
1186
1291
|
var o = function(l, c, d) {
|
|
1187
1292
|
if (!r.__c.__H)
|
|
1188
1293
|
return !0;
|
|
@@ -1201,33 +1306,33 @@ function Bt(e, t, n) {
|
|
|
1201
1306
|
}
|
|
1202
1307
|
}), !(!i && r.__c.props === l) && (!a || a.call(this, l, c, d));
|
|
1203
1308
|
};
|
|
1204
|
-
|
|
1205
|
-
var a =
|
|
1206
|
-
|
|
1309
|
+
N.u = !0;
|
|
1310
|
+
var a = N.shouldComponentUpdate, s = N.componentWillUpdate;
|
|
1311
|
+
N.componentWillUpdate = function(l, c, d) {
|
|
1207
1312
|
if (this.__e) {
|
|
1208
1313
|
var f = a;
|
|
1209
1314
|
a = void 0, o(l, c, d), a = f;
|
|
1210
1315
|
}
|
|
1211
1316
|
s && s.call(this, l, c, d);
|
|
1212
|
-
},
|
|
1317
|
+
}, N.shouldComponentUpdate = o;
|
|
1213
1318
|
}
|
|
1214
1319
|
return r.__N || r.__;
|
|
1215
1320
|
}
|
|
1216
1321
|
function ee(e, t) {
|
|
1217
1322
|
var n = Se(ce++, 3);
|
|
1218
|
-
!w.__s && Kt(n.__H, t) && (n.__ = e, n.i = t,
|
|
1323
|
+
!w.__s && Kt(n.__H, t) && (n.__ = e, n.i = t, N.__H.__h.push(n));
|
|
1219
1324
|
}
|
|
1220
1325
|
function Ce(e, t) {
|
|
1221
1326
|
var n = Se(ce++, 4);
|
|
1222
|
-
!w.__s && Kt(n.__H, t) && (n.__ = e, n.i = t,
|
|
1327
|
+
!w.__s && Kt(n.__H, t) && (n.__ = e, n.i = t, N.__h.push(n));
|
|
1223
1328
|
}
|
|
1224
1329
|
function q(e) {
|
|
1225
|
-
return
|
|
1330
|
+
return De = 5, be(function() {
|
|
1226
1331
|
return { current: e };
|
|
1227
1332
|
}, []);
|
|
1228
1333
|
}
|
|
1229
|
-
function
|
|
1230
|
-
|
|
1334
|
+
function Tr(e, t, n) {
|
|
1335
|
+
De = 6, Ce(function() {
|
|
1231
1336
|
return typeof e == "function" ? (e(t()), function() {
|
|
1232
1337
|
return e(null);
|
|
1233
1338
|
}) : e ? (e.current = t(), function() {
|
|
@@ -1240,20 +1345,20 @@ function be(e, t) {
|
|
|
1240
1345
|
return Kt(n.__H, t) ? (n.__V = e(), n.i = t, n.__h = e, n.__V) : n.__;
|
|
1241
1346
|
}
|
|
1242
1347
|
function je(e, t) {
|
|
1243
|
-
return
|
|
1348
|
+
return De = 8, be(function() {
|
|
1244
1349
|
return e;
|
|
1245
1350
|
}, t);
|
|
1246
1351
|
}
|
|
1247
1352
|
function lt(e) {
|
|
1248
|
-
var t =
|
|
1249
|
-
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(
|
|
1353
|
+
var t = N.context[e.__c], n = Se(ce++, 9);
|
|
1354
|
+
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(N)), t.props.value) : e.__;
|
|
1250
1355
|
}
|
|
1251
1356
|
function qt(e, t) {
|
|
1252
1357
|
w.useDebugValue && w.useDebugValue(t ? t(e) : e);
|
|
1253
1358
|
}
|
|
1254
|
-
function
|
|
1359
|
+
function sa(e) {
|
|
1255
1360
|
var t = Se(ce++, 10), n = j();
|
|
1256
|
-
return t.__ = e,
|
|
1361
|
+
return t.__ = e, N.componentDidCatch || (N.componentDidCatch = function(r, o) {
|
|
1257
1362
|
t.__ && t.__(r, o), n[1](r);
|
|
1258
1363
|
}), [n[0], function() {
|
|
1259
1364
|
n[1](void 0);
|
|
@@ -1262,50 +1367,50 @@ function Ya(e) {
|
|
|
1262
1367
|
function Gt() {
|
|
1263
1368
|
var e = Se(ce++, 11);
|
|
1264
1369
|
if (!e.__) {
|
|
1265
|
-
for (var t =
|
|
1370
|
+
for (var t = N.__v; t !== null && !t.__m && t.__ !== null; )
|
|
1266
1371
|
t = t.__;
|
|
1267
1372
|
var n = t.__m || (t.__m = [0, 0]);
|
|
1268
1373
|
e.__ = "P" + n[0] + "-" + n[1]++;
|
|
1269
1374
|
}
|
|
1270
1375
|
return e.__;
|
|
1271
1376
|
}
|
|
1272
|
-
function
|
|
1273
|
-
for (var e; e =
|
|
1377
|
+
function la() {
|
|
1378
|
+
for (var e; e = xr.shift(); )
|
|
1274
1379
|
if (e.__P && e.__H)
|
|
1275
1380
|
try {
|
|
1276
|
-
e.__H.__h.forEach(et), e.__H.__h.forEach(
|
|
1381
|
+
e.__H.__h.forEach(et), e.__H.__h.forEach(Dt), e.__H.__h = [];
|
|
1277
1382
|
} catch (t) {
|
|
1278
1383
|
e.__H.__h = [], w.__e(t, e.__v);
|
|
1279
1384
|
}
|
|
1280
1385
|
}
|
|
1281
1386
|
w.__b = function(e) {
|
|
1282
|
-
|
|
1387
|
+
N = null, Sn && Sn(e);
|
|
1283
1388
|
}, w.__r = function(e) {
|
|
1284
|
-
|
|
1285
|
-
var t = (
|
|
1286
|
-
t && (
|
|
1389
|
+
Cn && Cn(e), ce = 0;
|
|
1390
|
+
var t = (N = e.__c).__H;
|
|
1391
|
+
t && (gt === N ? (t.__h = [], N.__h = [], t.__.forEach(function(n) {
|
|
1287
1392
|
n.__N && (n.__ = n.__N), n.__V = Xe, n.__N = n.i = void 0;
|
|
1288
|
-
})) : (t.__h.forEach(et), t.__h.forEach(
|
|
1393
|
+
})) : (t.__h.forEach(et), t.__h.forEach(Dt), t.__h = [], ce = 0)), gt = N;
|
|
1289
1394
|
}, w.diffed = function(e) {
|
|
1290
|
-
|
|
1395
|
+
xn && xn(e);
|
|
1291
1396
|
var t = e.__c;
|
|
1292
|
-
t && t.__H && (t.__H.__h.length && (
|
|
1397
|
+
t && t.__H && (t.__H.__h.length && (xr.push(t) !== 1 && wn === w.requestAnimationFrame || ((wn = w.requestAnimationFrame) || ca)(la)), t.__H.__.forEach(function(n) {
|
|
1293
1398
|
n.i && (n.__H = n.i), n.__V !== Xe && (n.__ = n.__V), n.i = void 0, n.__V = Xe;
|
|
1294
|
-
})),
|
|
1399
|
+
})), gt = N = null;
|
|
1295
1400
|
}, w.__c = function(e, t) {
|
|
1296
1401
|
t.some(function(n) {
|
|
1297
1402
|
try {
|
|
1298
1403
|
n.__h.forEach(et), n.__h = n.__h.filter(function(r) {
|
|
1299
|
-
return !r.__ ||
|
|
1404
|
+
return !r.__ || Dt(r);
|
|
1300
1405
|
});
|
|
1301
1406
|
} catch (r) {
|
|
1302
1407
|
t.some(function(o) {
|
|
1303
1408
|
o.__h && (o.__h = []);
|
|
1304
1409
|
}), t = [], w.__e(r, n.__v);
|
|
1305
1410
|
}
|
|
1306
|
-
}),
|
|
1411
|
+
}), Tn && Tn(e, t);
|
|
1307
1412
|
}, w.unmount = function(e) {
|
|
1308
|
-
|
|
1413
|
+
kn && kn(e);
|
|
1309
1414
|
var t, n = e.__c;
|
|
1310
1415
|
n && n.__H && (n.__H.__.forEach(function(r) {
|
|
1311
1416
|
try {
|
|
@@ -1315,81 +1420,36 @@ w.__b = function(e) {
|
|
|
1315
1420
|
}
|
|
1316
1421
|
}), n.__H = void 0, t && w.__e(t, n.__v));
|
|
1317
1422
|
};
|
|
1318
|
-
var
|
|
1319
|
-
function
|
|
1423
|
+
var On = typeof requestAnimationFrame == "function";
|
|
1424
|
+
function ca(e) {
|
|
1320
1425
|
var t, n = function() {
|
|
1321
|
-
clearTimeout(r),
|
|
1426
|
+
clearTimeout(r), On && cancelAnimationFrame(t), setTimeout(e);
|
|
1322
1427
|
}, r = setTimeout(n, 100);
|
|
1323
|
-
|
|
1428
|
+
On && (t = requestAnimationFrame(n));
|
|
1324
1429
|
}
|
|
1325
1430
|
function et(e) {
|
|
1326
|
-
var t =
|
|
1327
|
-
typeof n == "function" && (e.__c = void 0, n()),
|
|
1431
|
+
var t = N, n = e.__c;
|
|
1432
|
+
typeof n == "function" && (e.__c = void 0, n()), N = t;
|
|
1328
1433
|
}
|
|
1329
|
-
function
|
|
1330
|
-
var t =
|
|
1331
|
-
e.__c = e.__(),
|
|
1434
|
+
function Dt(e) {
|
|
1435
|
+
var t = N;
|
|
1436
|
+
e.__c = e.__(), N = t;
|
|
1332
1437
|
}
|
|
1333
1438
|
function Kt(e, t) {
|
|
1334
1439
|
return !e || e.length !== t.length || t.some(function(n, r) {
|
|
1335
1440
|
return n !== e[r];
|
|
1336
1441
|
});
|
|
1337
1442
|
}
|
|
1338
|
-
function
|
|
1443
|
+
function kr(e, t) {
|
|
1339
1444
|
return typeof t == "function" ? t(e) : t;
|
|
1340
1445
|
}
|
|
1341
|
-
var
|
|
1342
|
-
function u(e, t, n, r, o, a) {
|
|
1343
|
-
var s, l, c = {};
|
|
1344
|
-
for (l in t)
|
|
1345
|
-
l == "ref" ? s = t[l] : c[l] = t[l];
|
|
1346
|
-
var d = { type: e, props: c, key: n, ref: s, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: --Xa, __source: o, __self: a };
|
|
1347
|
-
if (typeof e == "function" && (s = e.defaultProps))
|
|
1348
|
-
for (l in s)
|
|
1349
|
-
c[l] === void 0 && (c[l] = s[l]);
|
|
1350
|
-
return w.vnode && w.vnode(d), d;
|
|
1351
|
-
}
|
|
1352
|
-
var ei = ["other", "few", "many", "two", "one", "zero"], An = ({
|
|
1353
|
-
terms: e,
|
|
1354
|
-
overrides: t,
|
|
1355
|
-
locale: n
|
|
1356
|
-
}) => {
|
|
1357
|
-
const r = new Intl.PluralRules(n);
|
|
1358
|
-
function o(a, s) {
|
|
1359
|
-
const l = (t == null ? void 0 : t[a]) ?? e[a];
|
|
1360
|
-
switch (typeof l) {
|
|
1361
|
-
case "string":
|
|
1362
|
-
return l.replace(/{{(\w+)}}/g, (c, d) => {
|
|
1363
|
-
var f;
|
|
1364
|
-
return ((f = s == null ? void 0 : s[d]) == null ? void 0 : f.toString()) ?? "";
|
|
1365
|
-
});
|
|
1366
|
-
case "object": {
|
|
1367
|
-
if (typeof (s == null ? void 0 : s.count) != "number")
|
|
1368
|
-
throw new Error(`Missing count for translation key “${a.toString()}”`);
|
|
1369
|
-
let c = r.select(s.count);
|
|
1370
|
-
if (!(c in l)) {
|
|
1371
|
-
const d = ei.find((f) => f in l);
|
|
1372
|
-
if (!d)
|
|
1373
|
-
throw new Error(`Missing plural rule for translation key “${a.toString()}”`);
|
|
1374
|
-
c = d;
|
|
1375
|
-
}
|
|
1376
|
-
return l[c].replace(/{{(\w+)}}/g, (d, f) => {
|
|
1377
|
-
var i;
|
|
1378
|
-
return ((i = s == null ? void 0 : s[f]) == null ? void 0 : i.toString()) ?? "";
|
|
1379
|
-
});
|
|
1380
|
-
}
|
|
1381
|
-
default:
|
|
1382
|
-
throw new Error(`Invalid translation value in dictionary for key “${a.toString()}”.`);
|
|
1383
|
-
}
|
|
1384
|
-
}
|
|
1385
|
-
return o;
|
|
1386
|
-
}, Dn = it(null), ti = (e) => ({
|
|
1446
|
+
var Rn = it(null), ua = (e) => ({
|
|
1387
1447
|
TranslationProvider: ({ terms: t, children: n, locale: r }) => {
|
|
1388
|
-
const o = be(() => (console.log("instantiating"),
|
|
1389
|
-
return /* @__PURE__ */ u(
|
|
1448
|
+
const o = be(() => (console.log("instantiating"), En({ locale: r, terms: e, overrides: t })), [t, r]);
|
|
1449
|
+
return /* @__PURE__ */ u(Rn.Provider, { value: { t: o, locale: r }, children: n });
|
|
1390
1450
|
},
|
|
1391
1451
|
useTranslation: () => {
|
|
1392
|
-
const t = lt(
|
|
1452
|
+
const t = lt(Rn);
|
|
1393
1453
|
if (t === null)
|
|
1394
1454
|
throw new Error("Please wrap useTranslation in a TranslationProvider");
|
|
1395
1455
|
return { t: t.t, locale: t.locale };
|
|
@@ -1397,9 +1457,9 @@ var ei = ["other", "few", "many", "two", "one", "zero"], An = ({
|
|
|
1397
1457
|
createTFunction: ({
|
|
1398
1458
|
overrides: t,
|
|
1399
1459
|
locale: n
|
|
1400
|
-
}) =>
|
|
1460
|
+
}) => En({ terms: e, overrides: t, locale: n })
|
|
1401
1461
|
});
|
|
1402
|
-
const { TranslationProvider:
|
|
1462
|
+
const { TranslationProvider: Gs, useTranslation: xe, createTFunction: Ks } = ua({
|
|
1403
1463
|
type_to_search_jobs: "Type to search jobs",
|
|
1404
1464
|
type_to_search: "Type to search",
|
|
1405
1465
|
jobs_found: { one: "{{count}} job found", other: "{{count}} jobs found" },
|
|
@@ -1444,30 +1504,30 @@ const { TranslationProvider: zs, useTranslation: xe, createTFunction: Bs } = ti(
|
|
|
1444
1504
|
geo_suggestions_error: "Could not get the suggested locations.",
|
|
1445
1505
|
feedback: "How was your search experience?"
|
|
1446
1506
|
});
|
|
1447
|
-
function
|
|
1507
|
+
function Or(e) {
|
|
1448
1508
|
var t, n, r = "";
|
|
1449
1509
|
if (typeof e == "string" || typeof e == "number")
|
|
1450
1510
|
r += e;
|
|
1451
1511
|
else if (typeof e == "object")
|
|
1452
1512
|
if (Array.isArray(e))
|
|
1453
1513
|
for (t = 0; t < e.length; t++)
|
|
1454
|
-
e[t] && (n =
|
|
1514
|
+
e[t] && (n = Or(e[t])) && (r && (r += " "), r += n);
|
|
1455
1515
|
else
|
|
1456
1516
|
for (t in e)
|
|
1457
1517
|
e[t] && (r && (r += " "), r += t);
|
|
1458
1518
|
return r;
|
|
1459
1519
|
}
|
|
1460
|
-
function
|
|
1520
|
+
function vt() {
|
|
1461
1521
|
for (var e, t, n = 0, r = ""; n < arguments.length; )
|
|
1462
|
-
(e = arguments[n++]) && (t =
|
|
1522
|
+
(e = arguments[n++]) && (t = Or(e)) && (r && (r += " "), r += t);
|
|
1463
1523
|
return r;
|
|
1464
1524
|
}
|
|
1465
|
-
const
|
|
1525
|
+
const Ln = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, da = (e) => {
|
|
1466
1526
|
const t = function() {
|
|
1467
1527
|
for (var o = arguments.length, a = new Array(o), s = 0; s < o; s++)
|
|
1468
1528
|
a[s] = arguments[s];
|
|
1469
1529
|
var l, c;
|
|
1470
|
-
return typeof (e == null || (l = e.hooks) === null || l === void 0 ? void 0 : l["cx:done"]) < "u" ? e == null ? void 0 : e.hooks["cx:done"](
|
|
1530
|
+
return typeof (e == null || (l = e.hooks) === null || l === void 0 ? void 0 : l["cx:done"]) < "u" ? e == null ? void 0 : e.hooks["cx:done"](vt(a)) : typeof (e == null || (c = e.hooks) === null || c === void 0 ? void 0 : c.onComplete) < "u" ? e == null ? void 0 : e.hooks.onComplete(vt(a)) : vt(a);
|
|
1471
1531
|
};
|
|
1472
1532
|
return { compose: function() {
|
|
1473
1533
|
for (var o = arguments.length, a = new Array(o), s = 0; s < o; s++)
|
|
@@ -1484,7 +1544,7 @@ const Pn = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, ni =
|
|
|
1484
1544
|
if ((o == null ? void 0 : o.variants) == null)
|
|
1485
1545
|
return t(o == null ? void 0 : o.base, a == null ? void 0 : a.class, a == null ? void 0 : a.className);
|
|
1486
1546
|
const { variants: l, defaultVariants: c } = o, d = Object.keys(l).map((p) => {
|
|
1487
|
-
const y = a == null ? void 0 : a[p], _ = c == null ? void 0 : c[p], h =
|
|
1547
|
+
const y = a == null ? void 0 : a[p], _ = c == null ? void 0 : c[p], h = Ln(y) || Ln(_);
|
|
1488
1548
|
return l[p][h];
|
|
1489
1549
|
}), f = { ...c, ...a && Object.entries(a).reduce((p, y) => {
|
|
1490
1550
|
let [_, h] = y;
|
|
@@ -1499,35 +1559,7 @@ const Pn = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, ni =
|
|
|
1499
1559
|
}, []);
|
|
1500
1560
|
return t(o == null ? void 0 : o.base, d, i, a == null ? void 0 : a.class, a == null ? void 0 : a.className);
|
|
1501
1561
|
}, cx: t };
|
|
1502
|
-
}, { compose:
|
|
1503
|
-
const [t, n] = j(!1);
|
|
1504
|
-
return ee(() => {
|
|
1505
|
-
if (typeof window > "u")
|
|
1506
|
-
return;
|
|
1507
|
-
const r = window.matchMedia(e), o = () => n(r.matches);
|
|
1508
|
-
return o(), r.addEventListener("change", o), () => r.removeEventListener("change", o);
|
|
1509
|
-
}, [e]), t;
|
|
1510
|
-
}, Ks = (e, { minViewTime: t = 1e3, visibilityThreshold: n = 0, onView: r }) => {
|
|
1511
|
-
const [o, a] = j(!1);
|
|
1512
|
-
ee(() => {
|
|
1513
|
-
if (o || !e.current)
|
|
1514
|
-
return;
|
|
1515
|
-
let s;
|
|
1516
|
-
const l = new IntersectionObserver(
|
|
1517
|
-
(c) => c.forEach((d) => {
|
|
1518
|
-
clearTimeout(s), d.isIntersecting && (s = setTimeout(() => {
|
|
1519
|
-
a(!0), r();
|
|
1520
|
-
}, t));
|
|
1521
|
-
}),
|
|
1522
|
-
{
|
|
1523
|
-
threshold: n
|
|
1524
|
-
}
|
|
1525
|
-
);
|
|
1526
|
-
return l.observe(e.current), () => {
|
|
1527
|
-
l.disconnect(), clearTimeout(s);
|
|
1528
|
-
};
|
|
1529
|
-
}, [e, t, n, r, o]);
|
|
1530
|
-
}, Ue = te({
|
|
1562
|
+
}, { compose: Zs, cva: te, cx: Ys } = da(), Ue = te({
|
|
1531
1563
|
base: "fr animate-selected-tag justify-center touch-hitbox text-style-filter ease-expo-out disabled:text-interactive-neutral-bg-hover disabled:bg-interactive-neutral-bg disabled:hover:disabled:bg-interactive-neutral-bg flex cursor-pointer items-center transition-all duration-snappy active:scale-95",
|
|
1532
1564
|
variants: {
|
|
1533
1565
|
variant: {
|
|
@@ -1565,27 +1597,7 @@ const Pn = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, ni =
|
|
|
1565
1597
|
position: "relative",
|
|
1566
1598
|
size: "sm"
|
|
1567
1599
|
}
|
|
1568
|
-
})
|
|
1569
|
-
function Nr(e) {
|
|
1570
|
-
var t, n, r = "";
|
|
1571
|
-
if (typeof e == "string" || typeof e == "number")
|
|
1572
|
-
r += e;
|
|
1573
|
-
else if (typeof e == "object")
|
|
1574
|
-
if (Array.isArray(e)) {
|
|
1575
|
-
var o = e.length;
|
|
1576
|
-
for (t = 0; t < o; t++)
|
|
1577
|
-
e[t] && (n = Nr(e[t])) && (r && (r += " "), r += n);
|
|
1578
|
-
} else
|
|
1579
|
-
for (n in e)
|
|
1580
|
-
e[n] && (r && (r += " "), r += n);
|
|
1581
|
-
return r;
|
|
1582
|
-
}
|
|
1583
|
-
function oi() {
|
|
1584
|
-
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++)
|
|
1585
|
-
(e = arguments[n]) && (t = Nr(e)) && (r && (r += " "), r += t);
|
|
1586
|
-
return r;
|
|
1587
|
-
}
|
|
1588
|
-
const Zs = ({ error: e, resetError: t }) => {
|
|
1600
|
+
}), Js = ({ error: e, resetError: t }) => {
|
|
1589
1601
|
const { t: n } = xe();
|
|
1590
1602
|
return /* @__PURE__ */ u(
|
|
1591
1603
|
"div",
|
|
@@ -1621,12 +1633,12 @@ const Zs = ({ error: e, resetError: t }) => {
|
|
|
1621
1633
|
]
|
|
1622
1634
|
}
|
|
1623
1635
|
);
|
|
1624
|
-
},
|
|
1636
|
+
}, Nn = ({ error: e, resetError: t, class: n, ...r }) => {
|
|
1625
1637
|
const { t: o } = xe();
|
|
1626
1638
|
return /* @__PURE__ */ u(
|
|
1627
1639
|
"div",
|
|
1628
1640
|
{
|
|
1629
|
-
class:
|
|
1641
|
+
class: aa(
|
|
1630
1642
|
"bg-neutral-12 ring-section-weak-stroke rounded-section flex flex-col items-center gap-4 overflow-hidden p-6 text-center",
|
|
1631
1643
|
n
|
|
1632
1644
|
),
|
|
@@ -1653,7 +1665,7 @@ const Zs = ({ error: e, resetError: t }) => {
|
|
|
1653
1665
|
}
|
|
1654
1666
|
);
|
|
1655
1667
|
};
|
|
1656
|
-
class
|
|
1668
|
+
class Qs extends G {
|
|
1657
1669
|
constructor() {
|
|
1658
1670
|
super(...arguments);
|
|
1659
1671
|
pt(this, "state", { error: null });
|
|
@@ -1680,79 +1692,14 @@ class Ys extends G {
|
|
|
1680
1692
|
return this.props.children;
|
|
1681
1693
|
}
|
|
1682
1694
|
}
|
|
1683
|
-
const
|
|
1684
|
-
|
|
1685
|
-
variants: {
|
|
1686
|
-
variant: {
|
|
1687
|
-
neutralWeak: "text-tag-neutral-weak-copy bg-tag-neutral-weak-bg border-solid border-px border-tag-neutral-weak-stroke",
|
|
1688
|
-
neutralStrong: "text-tag-neutral-strong-copy bg-tag-neutral-strong-bg border-solid border-px border-tag-neutral-strong-stroke",
|
|
1689
|
-
accentStrong: "text-tag-accent-strong-copy bg-tag-accent-strong-bg border-solid border-px border-tag-accent-strong-stroke",
|
|
1690
|
-
monetaryWeak: "text-tag-monetary-weak-copy bg-tag-monetary-weak-bg border-solid border-px border-tag-monetary-weak-stroke"
|
|
1691
|
-
},
|
|
1692
|
-
interactive: {
|
|
1693
|
-
true: "ease-expo-out rounded-interactive transition-all duration-snappy",
|
|
1694
|
-
false: "rounded-tag"
|
|
1695
|
-
},
|
|
1696
|
-
size: {
|
|
1697
|
-
xs: "px-2 py-0.5 text-style-tag",
|
|
1698
|
-
sm: "px-3 py-1.5 text-style-tag",
|
|
1699
|
-
lg: "px-5 py-2.5 text-style-tag",
|
|
1700
|
-
unsized: ""
|
|
1701
|
-
},
|
|
1702
|
-
disabled: {
|
|
1703
|
-
true: "opacity-25 pointer-events-none",
|
|
1704
|
-
false: ""
|
|
1705
|
-
}
|
|
1706
|
-
},
|
|
1707
|
-
compoundVariants: [{ disabled: !1, interactive: !0, class: "cursor-pointer active:scale-[0.975]" }],
|
|
1708
|
-
defaultVariants: {
|
|
1709
|
-
variant: "neutralWeak",
|
|
1710
|
-
size: "sm",
|
|
1711
|
-
disabled: !1,
|
|
1712
|
-
interactive: !1
|
|
1713
|
-
}
|
|
1714
|
-
}), ai = ({ query: e, property: t, selectedValues: n }) => {
|
|
1715
|
-
switch (e.queryState) {
|
|
1716
|
-
case "idle":
|
|
1717
|
-
case "error":
|
|
1718
|
-
case "loading":
|
|
1719
|
-
return null;
|
|
1720
|
-
case "loaded":
|
|
1721
|
-
case "revalidating": {
|
|
1722
|
-
const o = (e.data[t.key] ?? []).filter((a) => n.includes(a.value));
|
|
1723
|
-
switch (o.length) {
|
|
1724
|
-
case 0:
|
|
1725
|
-
return null;
|
|
1726
|
-
case 1: {
|
|
1727
|
-
const a = o[0];
|
|
1728
|
-
return wo(a), /* @__PURE__ */ u("span", { class: He({ size: "sm", variant: "accentStrong", interactive: !0, class: "truncate" }), children: a.label });
|
|
1729
|
-
}
|
|
1730
|
-
default:
|
|
1731
|
-
return /* @__PURE__ */ u(
|
|
1732
|
-
"span",
|
|
1733
|
-
{
|
|
1734
|
-
class: He({
|
|
1735
|
-
size: "sm",
|
|
1736
|
-
variant: "accentStrong",
|
|
1737
|
-
interactive: !0,
|
|
1738
|
-
class: "ijs-filter-current max-w-full truncate tabular-nums"
|
|
1739
|
-
}),
|
|
1740
|
-
children: o.length
|
|
1741
|
-
}
|
|
1742
|
-
);
|
|
1743
|
-
}
|
|
1744
|
-
}
|
|
1745
|
-
default:
|
|
1746
|
-
Qe(e);
|
|
1747
|
-
}
|
|
1748
|
-
}, ii = {
|
|
1749
|
-
briefcase: /* @__PURE__ */ u(D, { children: [
|
|
1695
|
+
const fa = {
|
|
1696
|
+
briefcase: /* @__PURE__ */ u(I, { children: [
|
|
1750
1697
|
/* @__PURE__ */ u("path", { d: "M17.25 7.75H6.75C5.64543 7.75 4.75 8.64543 4.75 9.75V16.25C4.75 17.3546 5.64543 18.25 6.75 18.25H17.25C18.3546 18.25 19.25 17.3546 19.25 16.25V9.75C19.25 8.64543 18.3546 7.75 17.25 7.75Z" }),
|
|
1751
1698
|
/* @__PURE__ */ u("path", { d: "M4.75 11.75H19.25" }),
|
|
1752
1699
|
/* @__PURE__ */ u("path", { d: "M13.25 12.25V13.25H10.75V12.25H13.25Z" }),
|
|
1753
1700
|
/* @__PURE__ */ u("path", { d: "M9.25 7.5V6.25C9.25 5.42157 9.92157 4.75 10.75 4.75H13.25C14.0784 4.75 14.75 5.42157 14.75 6.25V7.5" })
|
|
1754
1701
|
] }),
|
|
1755
|
-
brand: /* @__PURE__ */ u(
|
|
1702
|
+
brand: /* @__PURE__ */ u(I, { children: [
|
|
1756
1703
|
/* @__PURE__ */ u("path", { d: "M18.45 13.9901C18.1288 15.031 17.5574 15.9886 16.773 16.773C15.5071 18.0388 13.7902 18.75 12 18.75C10.2098 18.75 8.49289 18.0388 7.22702 16.773C6.44262 15.9886 5.87122 15.031 5.55003 13.9901" }),
|
|
1757
1704
|
/* @__PURE__ */ u("path", { d: "M9.87868 14.8713C10.1573 15.1499 10.488 15.3709 10.8519 15.5216C11.2159 15.6724 11.606 15.75 12 15.75C12.394 15.75 12.7841 15.6724 13.1481 15.5216C13.512 15.3709 13.8427 15.1499 14.1213 14.8713" }),
|
|
1758
1705
|
/* @__PURE__ */ u("path", { d: "M17.0791 7.55413C16.7038 7.12546 16.2758 6.74602 15.8053 6.42486" }),
|
|
@@ -1761,46 +1708,46 @@ const He = te({
|
|
|
1761
1708
|
/* @__PURE__ */ u("circle", { cx: "18.75", cy: "12", r: "2" }),
|
|
1762
1709
|
/* @__PURE__ */ u("circle", { cx: "5.25", cy: "12", r: "2" })
|
|
1763
1710
|
] }),
|
|
1764
|
-
building: /* @__PURE__ */ u(
|
|
1711
|
+
building: /* @__PURE__ */ u(I, { children: [
|
|
1765
1712
|
/* @__PURE__ */ u("path", { d: "M16.75 10.25H13.75" }),
|
|
1766
1713
|
/* @__PURE__ */ u("path", { d: "M16.75 13.25H13.75" }),
|
|
1767
1714
|
/* @__PURE__ */ u("path", { d: "M3 18.25H5.25006M5.25006 18.25V14.25C5.25006 13.1454 6.14549 12.25 7.25006 12.25H10.2501L10.25 8.25003C10.25 6.59316 11.5932 5.25 13.25 5.25H17.25C18.9069 5.25 20.25 6.59315 20.25 8.25V18.25H5.25006Z" }),
|
|
1768
1715
|
/* @__PURE__ */ u("path", { d: "M10.25 12.25V18.25" })
|
|
1769
1716
|
] }),
|
|
1770
|
-
circles: /* @__PURE__ */ u(
|
|
1717
|
+
circles: /* @__PURE__ */ u(I, { children: [
|
|
1771
1718
|
/* @__PURE__ */ u("path", { d: "M16.773 16.773C15.829 17.717 14.6262 18.3599 13.3169 18.6203C12.0075 18.8808 10.6503 18.7471 9.41689 18.2362C8.18349 17.7253 7.12928 16.8601 6.38758 15.7501C5.64588 14.6401 5.25 13.335 5.25 12C5.25 10.665 5.64588 9.35993 6.38758 8.2499C7.12928 7.13987 8.18349 6.27471 9.41689 5.76381C10.6503 5.25292 12.0075 5.11925 13.3169 5.3797C14.6262 5.64015 15.829 6.28302 16.773 7.22703" }),
|
|
1772
1719
|
/* @__PURE__ */ u("path", { d: "M9.34835 9.34835C9.8728 8.8239 10.541 8.46675 11.2684 8.32206C11.9958 8.17736 12.7498 8.25162 13.4351 8.53545C14.1203 8.81928 14.706 9.29993 15.118 9.91661C15.5301 10.5333 15.75 11.2583 15.75 12C15.75 12.7417 15.5301 13.4667 15.118 14.0834C14.706 14.7001 14.1203 15.1807 13.4351 15.4645C12.7498 15.7484 11.9958 15.8226 11.2684 15.6779C10.541 15.5333 9.8728 15.1761 9.34835 14.6517" })
|
|
1773
1720
|
] }),
|
|
1774
|
-
clock: /* @__PURE__ */ u(
|
|
1721
|
+
clock: /* @__PURE__ */ u(I, { children: [
|
|
1775
1722
|
/* @__PURE__ */ u("path", { d: "M14 9L12 13L9.5 12" }),
|
|
1776
1723
|
/* @__PURE__ */ u("path", { d: "M18.75 12C18.75 15.7279 15.7279 18.75 12 18.75C8.27208 18.75 5.25 15.7279 5.25 12C5.25 8.27208 8.27208 5.25 12 5.25C15.7279 5.25 18.75 8.27208 18.75 12Z" })
|
|
1777
1724
|
] }),
|
|
1778
|
-
filter: /* @__PURE__ */ u(
|
|
1779
|
-
globe: /* @__PURE__ */ u(
|
|
1725
|
+
filter: /* @__PURE__ */ u(I, { children: /* @__PURE__ */ u("path", { d: "M19.25 7H4.75V8.5L10.25 12.25V17.5H13.75V12.25L19.25 8.5V7Z" }) }),
|
|
1726
|
+
globe: /* @__PURE__ */ u(I, { children: [
|
|
1780
1727
|
/* @__PURE__ */ u("path", { d: "M5 13.75H19" }),
|
|
1781
1728
|
/* @__PURE__ */ u("path", { d: "M5 10.25H19" }),
|
|
1782
1729
|
/* @__PURE__ */ u("path", { d: "M12 4.75C15.5 9.25 15.5 14.75 12.0001 19.25C8.50012 14.75 8.50005 9.25 12 4.75Z" }),
|
|
1783
1730
|
/* @__PURE__ */ u("circle", { cx: "12", cy: "12", r: "7.25" })
|
|
1784
1731
|
] }),
|
|
1785
|
-
magnifier: /* @__PURE__ */ u(
|
|
1732
|
+
magnifier: /* @__PURE__ */ u(I, { children: [
|
|
1786
1733
|
/* @__PURE__ */ u("path", { d: "M15.5659 15.5659C14.4875 16.6442 13.025 17.25 11.5 17.25C9.97501 17.25 8.51247 16.6442 7.43414 15.5659C6.3558 14.4875 5.75 13.025 5.75 11.5C5.75 9.97501 6.3558 8.51247 7.43414 7.43414C8.51247 6.3558 9.97501 5.75 11.5 5.75C13.025 5.75 14.4875 6.3558 15.5659 7.43414C16.6442 8.51247 17.25 9.97501 17.25 11.5C17.25 13.025 16.6442 14.4875 15.5659 15.5659L15.5659 15.5659Z" }),
|
|
1787
1734
|
/* @__PURE__ */ u("path", { d: "M11.5 8.75C11.8611 8.75 12.2187 8.82113 12.5524 8.95933C12.886 9.09753 13.1892 9.3001 13.4445 9.55546C13.6999 9.81082 13.9025 10.114 14.0407 10.4476C14.1789 10.7813 14.25 11.1389 14.25 11.5" }),
|
|
1788
1735
|
/* @__PURE__ */ u("path", { d: "M16 16L19 19" })
|
|
1789
1736
|
] }),
|
|
1790
|
-
magnifierSimple: /* @__PURE__ */ u(
|
|
1737
|
+
magnifierSimple: /* @__PURE__ */ u(I, { children: [
|
|
1791
1738
|
/* @__PURE__ */ u("path", { d: "M15.5659 15.5659C14.4875 16.6442 13.025 17.25 11.5 17.25C9.97501 17.25 8.51247 16.6442 7.43414 15.5659C6.3558 14.4875 5.75 13.025 5.75 11.5C5.75 9.97501 6.3558 8.51247 7.43414 7.43414C8.51247 6.3558 9.97501 5.75 11.5 5.75C13.025 5.75 14.4875 6.3558 15.5659 7.43414C16.6442 8.51247 17.25 9.97501 17.25 11.5C17.25 13.025 16.6442 14.4875 15.5659 15.5659L15.5659 15.5659Z" }),
|
|
1792
1739
|
/* @__PURE__ */ u("path", { d: "M16 16L19 19" })
|
|
1793
1740
|
] }),
|
|
1794
|
-
mapPin: /* @__PURE__ */ u(
|
|
1741
|
+
mapPin: /* @__PURE__ */ u(I, { children: /* @__PURE__ */ u(I, { children: [
|
|
1795
1742
|
/* @__PURE__ */ u("circle", { cx: "12", cy: "9", r: "2" }),
|
|
1796
1743
|
/* @__PURE__ */ u("path", { d: "M16.2426 16.8358C17.0818 17.1155 17.6532 17.4719 17.8847 17.8598C18.1162 18.2478 17.9974 18.6499 17.5433 19.0154C17.0892 19.3808 16.3201 19.6932 15.3334 19.9129C14.3467 20.1327 13.1867 20.25 12 20.25C10.8133 20.25 9.65327 20.1327 8.66658 19.9129C7.67988 19.6932 6.91085 19.3808 6.45672 19.0154C6.0026 18.6499 5.88378 18.2478 6.11529 17.8598C6.3468 17.4719 6.91825 17.1155 7.75736 16.8358" }),
|
|
1797
1744
|
/* @__PURE__ */ u("path", { d: "M17.25 9C17.25 13.3995 12 16.75 12 16.75C12 16.75 6.75 13.3995 6.75 9C6.75 6.10051 9.10051 3.75 12 3.75C14.8995 3.75 17.25 6.10051 17.25 9Z" })
|
|
1798
1745
|
] }) }),
|
|
1799
|
-
pay: /* @__PURE__ */ u(
|
|
1746
|
+
pay: /* @__PURE__ */ u(I, { children: [
|
|
1800
1747
|
/* @__PURE__ */ u("path", { d: "M16.8 16.8a6.78 6.78 0 1 1 0-9.6M12 16v-1M12 9V8" }),
|
|
1801
1748
|
/* @__PURE__ */ u("path", { d: "M10 14c.3.7 1 1 2 1 2.6 0 2.7-3 0-3s-2.7-3 0-3c1 0 1.7.4 2 1" })
|
|
1802
1749
|
] }),
|
|
1803
|
-
sunset: /* @__PURE__ */ u(
|
|
1750
|
+
sunset: /* @__PURE__ */ u(I, { children: [
|
|
1804
1751
|
/* @__PURE__ */ u("path", { d: "M18.5 8.5L17.5 9.5" }),
|
|
1805
1752
|
/* @__PURE__ */ u("path", { d: "M5.5 8.5L6.5 9.5" }),
|
|
1806
1753
|
/* @__PURE__ */ u("path", { d: "M12 6L12 7.5" }),
|
|
@@ -1818,7 +1765,7 @@ const He = te({
|
|
|
1818
1765
|
fill: "currentColor"
|
|
1819
1766
|
}
|
|
1820
1767
|
),
|
|
1821
|
-
"target-location": /* @__PURE__ */ u(
|
|
1768
|
+
"target-location": /* @__PURE__ */ u(I, { children: [
|
|
1822
1769
|
/* @__PURE__ */ u("circle", { cx: "12", cy: "12", r: "0.75" }),
|
|
1823
1770
|
/* @__PURE__ */ u("circle", { cx: "12", cy: "12", r: "5.75" }),
|
|
1824
1771
|
/* @__PURE__ */ u("path", { d: "M12 4.25V6.25" }),
|
|
@@ -1834,7 +1781,7 @@ const He = te({
|
|
|
1834
1781
|
d: "M12 20.4C16.63 20.4 20.4 16.64 20.4 12C20.4 7.36 16.64 3.6 12.0 3.6C7.36 3.6 3.6 7.36 3.6 12C3.6 16.64 7.36 20.4 12 20.4ZM10.8 12.6V7.8H13.2V12.6H10.8ZM10.8 16.8V14.4H13.2V16.8H10.8Z"
|
|
1835
1782
|
}
|
|
1836
1783
|
)
|
|
1837
|
-
},
|
|
1784
|
+
}, Xs = ({ theme: e }) => /* @__PURE__ */ u("svg", { xmlns: "http://www.w3.org/2000/svg", style: { display: "none" }, children: /* @__PURE__ */ u("defs", { children: Object.entries(fa).map(([t, n]) => {
|
|
1838
1785
|
var r;
|
|
1839
1786
|
return /* @__PURE__ */ u("symbol", { id: `i-icon-${t}`, children: /* @__PURE__ */ u(
|
|
1840
1787
|
"g",
|
|
@@ -1847,580 +1794,187 @@ const He = te({
|
|
|
1847
1794
|
children: n
|
|
1848
1795
|
}
|
|
1849
1796
|
) }, t);
|
|
1850
|
-
}) }) }), ye = ({ name: e, ...t }) => /* @__PURE__ */ u("svg", { viewBox: "0 0 24 24", width: 24, height: 24, ...t, children: /* @__PURE__ */ u("use", { href: `#i-icon-${e}` }) }),
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1797
|
+
}) }) }), ye = ({ name: e, ...t }) => /* @__PURE__ */ u("svg", { viewBox: "0 0 24 24", width: 24, height: 24, ...t, children: /* @__PURE__ */ u("use", { href: `#i-icon-${e}` }) }), _a = (e) => {
|
|
1798
|
+
const [t, n] = j(!1);
|
|
1799
|
+
return ee(() => {
|
|
1800
|
+
if (typeof window > "u")
|
|
1801
|
+
return;
|
|
1802
|
+
const r = window.matchMedia(e), o = () => n(r.matches);
|
|
1803
|
+
return o(), r.addEventListener("change", o), () => r.removeEventListener("change", o);
|
|
1804
|
+
}, [e]), t;
|
|
1805
|
+
}, el = (e, { minViewTime: t = 1e3, visibilityThreshold: n = 0, onView: r }) => {
|
|
1806
|
+
const [o, a] = j(!1);
|
|
1807
|
+
ee(() => {
|
|
1808
|
+
if (o || !e.current)
|
|
1809
|
+
return;
|
|
1810
|
+
let s;
|
|
1811
|
+
const l = new IntersectionObserver(
|
|
1812
|
+
(c) => c.forEach((d) => {
|
|
1813
|
+
clearTimeout(s), d.isIntersecting && (s = setTimeout(() => {
|
|
1814
|
+
a(!0), r();
|
|
1815
|
+
}, t));
|
|
1816
|
+
}),
|
|
1817
|
+
{
|
|
1818
|
+
threshold: n
|
|
1819
|
+
}
|
|
1820
|
+
);
|
|
1821
|
+
return l.observe(e.current), () => {
|
|
1822
|
+
l.disconnect(), clearTimeout(s);
|
|
1823
|
+
};
|
|
1824
|
+
}, [e, t, n, r, o]);
|
|
1825
|
+
};
|
|
1826
|
+
function Rr(e, t) {
|
|
1827
|
+
for (var n in t)
|
|
1828
|
+
e[n] = t[n];
|
|
1829
|
+
return e;
|
|
1830
|
+
}
|
|
1831
|
+
function At(e, t) {
|
|
1832
|
+
for (var n in e)
|
|
1833
|
+
if (n !== "__source" && !(n in t))
|
|
1834
|
+
return !0;
|
|
1835
|
+
for (var r in t)
|
|
1836
|
+
if (r !== "__source" && e[r] !== t[r])
|
|
1837
|
+
return !0;
|
|
1838
|
+
return !1;
|
|
1839
|
+
}
|
|
1840
|
+
function mt(e, t) {
|
|
1841
|
+
return e === t && (e !== 0 || 1 / e == 1 / t) || e != e && t != t;
|
|
1842
|
+
}
|
|
1843
|
+
function ot(e) {
|
|
1844
|
+
this.props = e;
|
|
1845
|
+
}
|
|
1846
|
+
function Lr(e, t) {
|
|
1847
|
+
function n(o) {
|
|
1848
|
+
var a = this.props.ref, s = a == o.ref;
|
|
1849
|
+
return !s && a && (a.call ? a(null) : a.current = null), t ? !t(this.props, o) || !s : At(this.props, o);
|
|
1872
1850
|
}
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
variants: {
|
|
1876
|
-
state: {
|
|
1877
|
-
default: "text-copy-neutral-lowcontrast pointer-fine:group-hover:text-copy-neutral",
|
|
1878
|
-
filled: "text-copy-neutral",
|
|
1879
|
-
active: "text-copy-neutral"
|
|
1880
|
-
}
|
|
1851
|
+
function r(o) {
|
|
1852
|
+
return this.shouldComponentUpdate = n, X(e, o);
|
|
1881
1853
|
}
|
|
1882
|
-
|
|
1883
|
-
base: "flex-none text-copy-neutral-icon pointer-fine:group-hover:text-copy-neutral duration-snappy ease-expo-out"
|
|
1884
|
-
}), ui = (e) => {
|
|
1885
|
-
const t = q(null), [n, r] = j(0), o = () => {
|
|
1886
|
-
var a;
|
|
1887
|
-
return r(((a = t.current) == null ? void 0 : a.clientHeight) ?? 0);
|
|
1888
|
-
};
|
|
1889
|
-
return Ce(() => (o(), window.addEventListener("resize", o), () => window.removeEventListener("resize", o)), e), { height: n, ref: t, updateHeight: o };
|
|
1890
|
-
}, Ir = (e) => typeof e.value == "string" ? [e.value] : e.value ?? [], Qs = ({
|
|
1891
|
-
active: e,
|
|
1892
|
-
value: t,
|
|
1893
|
-
onActiveChange: n,
|
|
1894
|
-
property: r,
|
|
1895
|
-
onSkip: o,
|
|
1896
|
-
onValueChange: a,
|
|
1897
|
-
unfilteredQuery: s,
|
|
1898
|
-
useQuery: l
|
|
1899
|
-
}) => {
|
|
1900
|
-
const c = So(r.key, jn) ? jn[r.key] : void 0, d = r.icon ?? c ?? "filter", f = Ir(t), { height: i, ref: p, updateHeight: y } = ui([e]), _ = f.length > 0;
|
|
1901
|
-
return /* @__PURE__ */ u(
|
|
1902
|
-
"section",
|
|
1903
|
-
{
|
|
1904
|
-
"data-filter-key": r.key,
|
|
1905
|
-
"aria-label": r.label,
|
|
1906
|
-
"aria-selected": e ? "true" : void 0,
|
|
1907
|
-
class: si({ hasValue: _ }),
|
|
1908
|
-
onTouchStart: di,
|
|
1909
|
-
children: [
|
|
1910
|
-
/* @__PURE__ */ u("div", { class: "min-w-0 max-w-full shrink-0 flex-grow", children: [
|
|
1911
|
-
/* @__PURE__ */ u(
|
|
1912
|
-
"button",
|
|
1913
|
-
{
|
|
1914
|
-
"aria-label": e ? "Close filter" : "Open filter",
|
|
1915
|
-
class: li({
|
|
1916
|
-
state: e ? "active" : _ ? "filled" : "default",
|
|
1917
|
-
class: "ijs-filter-heading rounded-section fr-child flex w-full cursor-pointer select-none items-center gap-2 py-4 pl-4"
|
|
1918
|
-
}),
|
|
1919
|
-
onClick: () => n(!e),
|
|
1920
|
-
children: [
|
|
1921
|
-
/* @__PURE__ */ u(ye, { "aria-hidden": !0, class: "flex-none", name: d }),
|
|
1922
|
-
/* @__PURE__ */ u("p", { children: r.label })
|
|
1923
|
-
]
|
|
1924
|
-
}
|
|
1925
|
-
),
|
|
1926
|
-
/* @__PURE__ */ u("div", { class: "ease-expo-out duration-snappy relative overflow-hidden transition-all", style: { height: i }, children: /* @__PURE__ */ u("div", { class: "w-full", ref: p, children: e && /* @__PURE__ */ u(
|
|
1927
|
-
wi,
|
|
1928
|
-
{
|
|
1929
|
-
useQuery: l,
|
|
1930
|
-
onRender: y,
|
|
1931
|
-
onSkip: o,
|
|
1932
|
-
onValueChange: a,
|
|
1933
|
-
unfilteredQuery: s,
|
|
1934
|
-
property: r,
|
|
1935
|
-
value: t
|
|
1936
|
-
}
|
|
1937
|
-
) }) })
|
|
1938
|
-
] }),
|
|
1939
|
-
!e && /* @__PURE__ */ u(
|
|
1940
|
-
"button",
|
|
1941
|
-
{
|
|
1942
|
-
tabIndex: -1,
|
|
1943
|
-
class: "fr-child flex flex-shrink flex-grow cursor-pointer select-none items-center justify-end gap-2 overflow-hidden pl-2 pr-3 focus:outline-none",
|
|
1944
|
-
onClick: () => n(!0),
|
|
1945
|
-
children: [
|
|
1946
|
-
/* @__PURE__ */ u("div", { "aria-label": "Current value", class: "flex max-w-full gap-1 overflow-hidden", children: /* @__PURE__ */ u(ai, { property: r, query: s, selectedValues: f }) }),
|
|
1947
|
-
/* @__PURE__ */ u(ye, { "aria-hidden": !0, class: ci(), name: "chevron-right" })
|
|
1948
|
-
]
|
|
1949
|
-
}
|
|
1950
|
-
)
|
|
1951
|
-
]
|
|
1952
|
-
}
|
|
1953
|
-
);
|
|
1954
|
-
};
|
|
1955
|
-
function di() {
|
|
1854
|
+
return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r;
|
|
1956
1855
|
}
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
}
|
|
1968
|
-
|
|
1969
|
-
defaultVariants: {
|
|
1970
|
-
size: "md",
|
|
1971
|
-
hasValue: !1
|
|
1856
|
+
(ot.prototype = new G()).isPureReactComponent = !0, ot.prototype.shouldComponentUpdate = function(e, t) {
|
|
1857
|
+
return At(this.props, e) || At(this.state, t);
|
|
1858
|
+
};
|
|
1859
|
+
var Dn = w.__b;
|
|
1860
|
+
w.__b = function(e) {
|
|
1861
|
+
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Dn && Dn(e);
|
|
1862
|
+
};
|
|
1863
|
+
var pa = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
1864
|
+
function Zt(e) {
|
|
1865
|
+
function t(n) {
|
|
1866
|
+
var r = Rr({}, n);
|
|
1867
|
+
return delete r.ref, e(r, n.ref || null);
|
|
1972
1868
|
}
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1869
|
+
return t.$$typeof = pa, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
1870
|
+
}
|
|
1871
|
+
var An = function(e, t) {
|
|
1872
|
+
return e == null ? null : le(le(e).map(t));
|
|
1873
|
+
}, Nr = { map: An, forEach: An, count: function(e) {
|
|
1874
|
+
return e ? le(e).length : 0;
|
|
1875
|
+
}, only: function(e) {
|
|
1876
|
+
var t = le(e);
|
|
1877
|
+
if (t.length !== 1)
|
|
1878
|
+
throw "Children.only";
|
|
1879
|
+
return t[0];
|
|
1880
|
+
}, toArray: le }, ha = w.__e;
|
|
1881
|
+
w.__e = function(e, t, n, r) {
|
|
1882
|
+
if (e.then) {
|
|
1883
|
+
for (var o, a = t; a = a.__; )
|
|
1884
|
+
if ((o = a.__c) && o.__c)
|
|
1885
|
+
return t.__e == null && (t.__e = n.__e, t.__k = n.__k), o.__c(e, t);
|
|
1988
1886
|
}
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1887
|
+
ha(e, t, n, r);
|
|
1888
|
+
};
|
|
1889
|
+
var In = w.unmount;
|
|
1890
|
+
function Dr(e, t, n) {
|
|
1891
|
+
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
|
|
1892
|
+
typeof r.__c == "function" && r.__c();
|
|
1893
|
+
}), e.__c.__H = null), (e = Rr({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
|
|
1894
|
+
return Dr(r, t, n);
|
|
1895
|
+
})), e;
|
|
1896
|
+
}
|
|
1897
|
+
function Ar(e, t, n) {
|
|
1898
|
+
return e && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
|
|
1899
|
+
return Ar(r, t, n);
|
|
1900
|
+
}), e.__c && e.__c.__P === t && (e.__e && n.insertBefore(e.__e, e.__d), e.__c.__e = !0, e.__c.__P = n)), e;
|
|
1901
|
+
}
|
|
1902
|
+
function Ve() {
|
|
1903
|
+
this.__u = 0, this.t = null, this.__b = null;
|
|
1904
|
+
}
|
|
1905
|
+
function Ir(e) {
|
|
1906
|
+
var t = e.__.__c;
|
|
1907
|
+
return t && t.__a && t.__a(e);
|
|
1908
|
+
}
|
|
1909
|
+
function Mr(e) {
|
|
1910
|
+
var t, n, r;
|
|
1911
|
+
function o(a) {
|
|
1912
|
+
if (t || (t = e()).then(function(s) {
|
|
1913
|
+
n = s.default || s;
|
|
1914
|
+
}, function(s) {
|
|
1915
|
+
r = s;
|
|
1916
|
+
}), r)
|
|
1917
|
+
throw r;
|
|
1918
|
+
if (!n)
|
|
1919
|
+
throw t;
|
|
1920
|
+
return X(n, a);
|
|
1996
1921
|
}
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
1922
|
+
return o.displayName = "Lazy", o.__f = !0, o;
|
|
1923
|
+
}
|
|
1924
|
+
function Le() {
|
|
1925
|
+
this.u = null, this.o = null;
|
|
1926
|
+
}
|
|
1927
|
+
w.unmount = function(e) {
|
|
1928
|
+
var t = e.__c;
|
|
1929
|
+
t && t.__R && t.__R(), t && e.__h === !0 && (e.type = null), In && In(e);
|
|
1930
|
+
}, (Ve.prototype = new G()).__c = function(e, t) {
|
|
1931
|
+
var n = t.__c, r = this;
|
|
1932
|
+
r.t == null && (r.t = []), r.t.push(n);
|
|
1933
|
+
var o = Ir(r.__v), a = !1, s = function() {
|
|
1934
|
+
a || (a = !0, n.__R = null, o ? o(l) : l());
|
|
1935
|
+
};
|
|
1936
|
+
n.__R = s;
|
|
1937
|
+
var l = function() {
|
|
1938
|
+
if (!--r.__u) {
|
|
1939
|
+
if (r.state.__a) {
|
|
1940
|
+
var d = r.state.__a;
|
|
1941
|
+
r.__v.__k[0] = Ar(d, d.__c.__P, d.__c.__O);
|
|
1942
|
+
}
|
|
1943
|
+
var f;
|
|
1944
|
+
for (r.setState({ __a: r.__b = null }); f = r.t.pop(); )
|
|
1945
|
+
f.forceUpdate();
|
|
2014
1946
|
}
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
accentStrong: "text-accent-11 bg-accent-4 border-tag-accent-strong-stroke",
|
|
2025
|
-
neutralStrong: "text-neutral-11 bg-neutral-2 border-tag-neutral-strong-stroke"
|
|
1947
|
+
}, c = t.__h === !0;
|
|
1948
|
+
r.__u++ || c || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(s, s);
|
|
1949
|
+
}, Ve.prototype.componentWillUnmount = function() {
|
|
1950
|
+
this.t = [];
|
|
1951
|
+
}, Ve.prototype.render = function(e, t) {
|
|
1952
|
+
if (this.__b) {
|
|
1953
|
+
if (this.__v.__k) {
|
|
1954
|
+
var n = document.createElement("div"), r = this.__v.__k[0].__c;
|
|
1955
|
+
this.__v.__k[0] = Dr(this.__b, n, r.__O = r.__P);
|
|
2026
1956
|
}
|
|
1957
|
+
this.__b = null;
|
|
2027
1958
|
}
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
by: "results-count",
|
|
2040
|
-
order: "descending"
|
|
2041
|
-
}) => {
|
|
2042
|
-
const n = [...e];
|
|
2043
|
-
switch (t.by) {
|
|
2044
|
-
case "results-count":
|
|
2045
|
-
n.sort((r, o) => r.jobs - o.jobs);
|
|
2046
|
-
break;
|
|
2047
|
-
case "alphabetically":
|
|
2048
|
-
n.sort((r, o) => r.label.localeCompare(o.label));
|
|
2049
|
-
break;
|
|
2050
|
-
case "numerically":
|
|
2051
|
-
n.sort((r, o) => {
|
|
2052
|
-
const a = Vn(r.value), s = Vn(o.value);
|
|
2053
|
-
return a - s;
|
|
2054
|
-
});
|
|
2055
|
-
break;
|
|
2056
|
-
}
|
|
2057
|
-
return t.order === "descending" && n.reverse(), n;
|
|
2058
|
-
}, bi = (e, t) => {
|
|
2059
|
-
if (e === null)
|
|
2060
|
-
return !1;
|
|
2061
|
-
const n = e[t.value];
|
|
2062
|
-
return n === void 0 ? !0 : n === 0;
|
|
2063
|
-
}, Ei = (e, t) => {
|
|
2064
|
-
const n = (r) => r > 99 ? "99+" : r.toString();
|
|
2065
|
-
return n(e === null ? t.jobs : e[t.value] ?? 0);
|
|
2066
|
-
}, wi = ({
|
|
2067
|
-
value: e,
|
|
2068
|
-
property: t,
|
|
2069
|
-
onSkip: n,
|
|
2070
|
-
useQuery: r,
|
|
2071
|
-
onValueChange: o,
|
|
2072
|
-
unfilteredQuery: a,
|
|
2073
|
-
onRender: s
|
|
2074
|
-
}) => {
|
|
2075
|
-
const { t: l } = xe(), c = ho(r()), d = be(() => {
|
|
2076
|
-
switch (c.queryState) {
|
|
2077
|
-
case "error":
|
|
2078
|
-
case "idle":
|
|
2079
|
-
case "loading":
|
|
2080
|
-
return null;
|
|
2081
|
-
case "loaded":
|
|
2082
|
-
case "revalidating": {
|
|
2083
|
-
const h = c.data[t.key] ?? [];
|
|
2084
|
-
return Object.fromEntries(h.map((C) => [C.value, C.jobs]));
|
|
2085
|
-
}
|
|
2086
|
-
default:
|
|
2087
|
-
Qe(c);
|
|
2088
|
-
}
|
|
2089
|
-
}, [c, t.key]), f = Ir(e), i = f.length > 0, [p, y] = j(), _ = ri("(pointer: coarse)");
|
|
2090
|
-
return ee(() => {
|
|
2091
|
-
s();
|
|
2092
|
-
}), c.queryState === "error" ? /* @__PURE__ */ u(
|
|
2093
|
-
Mn,
|
|
2094
|
-
{
|
|
2095
|
-
error: new Error(l("filters_loading_error"), { cause: c.error }),
|
|
2096
|
-
resetError: () => c.swr.mutate()
|
|
2097
|
-
}
|
|
2098
|
-
) : /* @__PURE__ */ u("div", { class: "animate-slide-in-bottom flex w-full flex-col gap-2 pt-1", children: [
|
|
2099
|
-
t.searchable && /* @__PURE__ */ u("div", { class: "top-0 px-4 py-1", children: /* @__PURE__ */ u(
|
|
2100
|
-
"input",
|
|
2101
|
-
{
|
|
2102
|
-
type: "search",
|
|
2103
|
-
class: ct(),
|
|
2104
|
-
value: p,
|
|
2105
|
-
onInput: (h) => y(h.currentTarget.value),
|
|
2106
|
-
placeholder: l("type_to_search")
|
|
2107
|
-
}
|
|
2108
|
-
) }),
|
|
2109
|
-
(() => {
|
|
2110
|
-
switch (a.queryState) {
|
|
2111
|
-
case "error":
|
|
2112
|
-
return /* @__PURE__ */ u(
|
|
2113
|
-
Mn,
|
|
2114
|
-
{
|
|
2115
|
-
error: new Error(l("filters_loading_error"), {
|
|
2116
|
-
cause: a.error
|
|
2117
|
-
}),
|
|
2118
|
-
resetError: () => a.swr.mutate()
|
|
2119
|
-
}
|
|
2120
|
-
);
|
|
2121
|
-
case "idle":
|
|
2122
|
-
case "loading":
|
|
2123
|
-
return /* @__PURE__ */ u("div", { class: "flex px-4", children: /* @__PURE__ */ u(
|
|
2124
|
-
"div",
|
|
2125
|
-
{
|
|
2126
|
-
"aria-hidden": !0,
|
|
2127
|
-
class: He({
|
|
2128
|
-
size: "lg",
|
|
2129
|
-
variant: "neutralStrong",
|
|
2130
|
-
interactive: !0,
|
|
2131
|
-
class: "animate-skeleton cursor-default opacity-20 active:-scale-100"
|
|
2132
|
-
}),
|
|
2133
|
-
children: /* @__PURE__ */ u("span", { class: "inline-block w-[10ch]" })
|
|
2134
|
-
}
|
|
2135
|
-
) });
|
|
2136
|
-
case "revalidating":
|
|
2137
|
-
case "loaded": {
|
|
2138
|
-
const h = a.data[t.key] ?? [], C = p && p.length > 1 ? h.filter((b) => b.label.toLowerCase().includes(p.toLowerCase())) : h, g = [];
|
|
2139
|
-
for (const b of C) {
|
|
2140
|
-
if (b.label.length < 1)
|
|
2141
|
-
continue;
|
|
2142
|
-
const m = {
|
|
2143
|
-
...b,
|
|
2144
|
-
results: Ei(d, b),
|
|
2145
|
-
disabled: bi(d, b)
|
|
2146
|
-
};
|
|
2147
|
-
switch (t.results) {
|
|
2148
|
-
case "only-available":
|
|
2149
|
-
m.disabled === !1 && g.push(m);
|
|
2150
|
-
break;
|
|
2151
|
-
default:
|
|
2152
|
-
g.push(m);
|
|
2153
|
-
}
|
|
2154
|
-
}
|
|
2155
|
-
if (!g.find((b) => !b.disabled))
|
|
2156
|
-
return /* @__PURE__ */ u("p", { class: "font-style-tag text-style-tag font-weight-tag border-px w-full border-transparent px-4 py-2 text-center", children: l("no_filter_options_available") });
|
|
2157
|
-
const v = (h.length > pi || h.some((b) => b.label.length > 24)) && !_;
|
|
2158
|
-
return /* @__PURE__ */ u("div", { class: "pointer-fine:px-4", children: /* @__PURE__ */ u(
|
|
2159
|
-
"ul",
|
|
2160
|
-
{
|
|
2161
|
-
style: {
|
|
2162
|
-
"--maxHeight": `${fi * (_i + 0.5) + 2 * hi}px`
|
|
2163
|
-
},
|
|
2164
|
-
class: Lr({
|
|
2165
|
-
type: v ? "long" : "short"
|
|
2166
|
-
}),
|
|
2167
|
-
children: mi(g, t.sortSuggestions).map((b) => {
|
|
2168
|
-
const m = f.includes(b.value);
|
|
2169
|
-
return /* @__PURE__ */ u(
|
|
2170
|
-
"li",
|
|
2171
|
-
{
|
|
2172
|
-
class: Ar({
|
|
2173
|
-
type: v ? "line" : "pill"
|
|
2174
|
-
}),
|
|
2175
|
-
children: /* @__PURE__ */ u(
|
|
2176
|
-
"button",
|
|
2177
|
-
{
|
|
2178
|
-
type: "button",
|
|
2179
|
-
disabled: b.disabled,
|
|
2180
|
-
"data-filter": !0,
|
|
2181
|
-
"data-current-value": m ? "true" : void 0,
|
|
2182
|
-
onClick: () => {
|
|
2183
|
-
switch (e.select) {
|
|
2184
|
-
case "many": {
|
|
2185
|
-
const k = vi(f, b.value);
|
|
2186
|
-
o({
|
|
2187
|
-
select: "many",
|
|
2188
|
-
value: k
|
|
2189
|
-
});
|
|
2190
|
-
break;
|
|
2191
|
-
}
|
|
2192
|
-
case "one":
|
|
2193
|
-
o({
|
|
2194
|
-
select: "one",
|
|
2195
|
-
value: b.value
|
|
2196
|
-
});
|
|
2197
|
-
break;
|
|
2198
|
-
default:
|
|
2199
|
-
Qe(e);
|
|
2200
|
-
}
|
|
2201
|
-
},
|
|
2202
|
-
class: v ? Dr({
|
|
2203
|
-
active: m,
|
|
2204
|
-
disabled: b.disabled
|
|
2205
|
-
}) : He({
|
|
2206
|
-
size: "lg",
|
|
2207
|
-
variant: m ? "accentStrong" : "neutralStrong",
|
|
2208
|
-
interactive: !0,
|
|
2209
|
-
disabled: b.disabled,
|
|
2210
|
-
class: "ijs-filter-tag flex max-w-full gap-3 overflow-hidden pr-2.5"
|
|
2211
|
-
}),
|
|
2212
|
-
children: [
|
|
2213
|
-
/* @__PURE__ */ u("span", { class: "max-w-full truncate", children: b.label }),
|
|
2214
|
-
" ",
|
|
2215
|
-
/* @__PURE__ */ u(gi, { colorScheme: m ? "accentStrong" : "neutralStrong", children: b.results })
|
|
2216
|
-
]
|
|
2217
|
-
}
|
|
2218
|
-
)
|
|
2219
|
-
},
|
|
2220
|
-
b.value
|
|
2221
|
-
);
|
|
2222
|
-
})
|
|
2223
|
-
}
|
|
2224
|
-
) });
|
|
2225
|
-
}
|
|
2226
|
-
default:
|
|
2227
|
-
Qe(a);
|
|
2228
|
-
}
|
|
2229
|
-
})(),
|
|
2230
|
-
/* @__PURE__ */ u("footer", { class: "flex justify-end p-2", children: [
|
|
2231
|
-
/* @__PURE__ */ u("div", { class: "flex-1", children: i && /* @__PURE__ */ u(
|
|
2232
|
-
"button",
|
|
2233
|
-
{
|
|
2234
|
-
type: "button",
|
|
2235
|
-
class: Ue({ variant: "neutral", icon: "left" }),
|
|
2236
|
-
onClick: () => {
|
|
2237
|
-
o(void 0);
|
|
2238
|
-
},
|
|
2239
|
-
children: [
|
|
2240
|
-
/* @__PURE__ */ u(ye, { "aria-hidden": !0, name: "x" }),
|
|
2241
|
-
" ",
|
|
2242
|
-
l("clear")
|
|
2243
|
-
]
|
|
2244
|
-
}
|
|
2245
|
-
) }),
|
|
2246
|
-
e.select === "many" && /* @__PURE__ */ u("div", { class: "flex items-center overflow-hidden", children: /* @__PURE__ */ u("p", { class: "font-style-default text-style-tag font-weight-default flex-grow select-none truncate text-center", children: [
|
|
2247
|
-
f.length,
|
|
2248
|
-
" ",
|
|
2249
|
-
l("selected")
|
|
2250
|
-
] }) }),
|
|
2251
|
-
/* @__PURE__ */ u("div", { class: "flex-1", children: /* @__PURE__ */ u(
|
|
2252
|
-
"button",
|
|
2253
|
-
{
|
|
2254
|
-
type: "button",
|
|
2255
|
-
class: Ue({
|
|
2256
|
-
variant: i ? "accent" : "neutral",
|
|
2257
|
-
icon: "right",
|
|
2258
|
-
class: "ml-auto"
|
|
2259
|
-
}),
|
|
2260
|
-
onClick: n,
|
|
2261
|
-
children: [
|
|
2262
|
-
l(i ? "done" : "skip"),
|
|
2263
|
-
" ",
|
|
2264
|
-
/* @__PURE__ */ u(ye, { name: "chevron-right" })
|
|
2265
|
-
]
|
|
2266
|
-
},
|
|
2267
|
-
i ? "done" : "skip"
|
|
2268
|
-
) })
|
|
2269
|
-
] })
|
|
2270
|
-
] });
|
|
2271
|
-
};
|
|
2272
|
-
function Pr(e, t) {
|
|
2273
|
-
for (var n in t)
|
|
2274
|
-
e[n] = t[n];
|
|
2275
|
-
return e;
|
|
2276
|
-
}
|
|
2277
|
-
function At(e, t) {
|
|
2278
|
-
for (var n in e)
|
|
2279
|
-
if (n !== "__source" && !(n in t))
|
|
2280
|
-
return !0;
|
|
2281
|
-
for (var r in t)
|
|
2282
|
-
if (r !== "__source" && e[r] !== t[r])
|
|
2283
|
-
return !0;
|
|
2284
|
-
return !1;
|
|
2285
|
-
}
|
|
2286
|
-
function bt(e, t) {
|
|
2287
|
-
return e === t && (e !== 0 || 1 / e == 1 / t) || e != e && t != t;
|
|
2288
|
-
}
|
|
2289
|
-
function ot(e) {
|
|
2290
|
-
this.props = e;
|
|
2291
|
-
}
|
|
2292
|
-
function Mr(e, t) {
|
|
2293
|
-
function n(o) {
|
|
2294
|
-
var a = this.props.ref, s = a == o.ref;
|
|
2295
|
-
return !s && a && (a.call ? a(null) : a.current = null), t ? !t(this.props, o) || !s : At(this.props, o);
|
|
2296
|
-
}
|
|
2297
|
-
function r(o) {
|
|
2298
|
-
return this.shouldComponentUpdate = n, X(e, o);
|
|
2299
|
-
}
|
|
2300
|
-
return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r;
|
|
2301
|
-
}
|
|
2302
|
-
(ot.prototype = new G()).isPureReactComponent = !0, ot.prototype.shouldComponentUpdate = function(e, t) {
|
|
2303
|
-
return At(this.props, e) || At(this.state, t);
|
|
2304
|
-
};
|
|
2305
|
-
var $n = w.__b;
|
|
2306
|
-
w.__b = function(e) {
|
|
2307
|
-
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), $n && $n(e);
|
|
2308
|
-
};
|
|
2309
|
-
var Si = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
2310
|
-
function Zt(e) {
|
|
2311
|
-
function t(n) {
|
|
2312
|
-
var r = Pr({}, n);
|
|
2313
|
-
return delete r.ref, e(r, n.ref || null);
|
|
2314
|
-
}
|
|
2315
|
-
return t.$$typeof = Si, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
2316
|
-
}
|
|
2317
|
-
var Un = function(e, t) {
|
|
2318
|
-
return e == null ? null : le(le(e).map(t));
|
|
2319
|
-
}, jr = { map: Un, forEach: Un, count: function(e) {
|
|
2320
|
-
return e ? le(e).length : 0;
|
|
2321
|
-
}, only: function(e) {
|
|
2322
|
-
var t = le(e);
|
|
2323
|
-
if (t.length !== 1)
|
|
2324
|
-
throw "Children.only";
|
|
2325
|
-
return t[0];
|
|
2326
|
-
}, toArray: le }, Ci = w.__e;
|
|
2327
|
-
w.__e = function(e, t, n, r) {
|
|
2328
|
-
if (e.then) {
|
|
2329
|
-
for (var o, a = t; a = a.__; )
|
|
2330
|
-
if ((o = a.__c) && o.__c)
|
|
2331
|
-
return t.__e == null && (t.__e = n.__e, t.__k = n.__k), o.__c(e, t);
|
|
2332
|
-
}
|
|
2333
|
-
Ci(e, t, n, r);
|
|
2334
|
-
};
|
|
2335
|
-
var Hn = w.unmount;
|
|
2336
|
-
function Vr(e, t, n) {
|
|
2337
|
-
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
|
|
2338
|
-
typeof r.__c == "function" && r.__c();
|
|
2339
|
-
}), e.__c.__H = null), (e = Pr({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
|
|
2340
|
-
return Vr(r, t, n);
|
|
2341
|
-
})), e;
|
|
2342
|
-
}
|
|
2343
|
-
function $r(e, t, n) {
|
|
2344
|
-
return e && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
|
|
2345
|
-
return $r(r, t, n);
|
|
2346
|
-
}), e.__c && e.__c.__P === t && (e.__e && n.insertBefore(e.__e, e.__d), e.__c.__e = !0, e.__c.__P = n)), e;
|
|
2347
|
-
}
|
|
2348
|
-
function Ve() {
|
|
2349
|
-
this.__u = 0, this.t = null, this.__b = null;
|
|
2350
|
-
}
|
|
2351
|
-
function Ur(e) {
|
|
2352
|
-
var t = e.__.__c;
|
|
2353
|
-
return t && t.__a && t.__a(e);
|
|
2354
|
-
}
|
|
2355
|
-
function Hr(e) {
|
|
2356
|
-
var t, n, r;
|
|
2357
|
-
function o(a) {
|
|
2358
|
-
if (t || (t = e()).then(function(s) {
|
|
2359
|
-
n = s.default || s;
|
|
2360
|
-
}, function(s) {
|
|
2361
|
-
r = s;
|
|
2362
|
-
}), r)
|
|
2363
|
-
throw r;
|
|
2364
|
-
if (!n)
|
|
2365
|
-
throw t;
|
|
2366
|
-
return X(n, a);
|
|
2367
|
-
}
|
|
2368
|
-
return o.displayName = "Lazy", o.__f = !0, o;
|
|
2369
|
-
}
|
|
2370
|
-
function Ne() {
|
|
2371
|
-
this.u = null, this.o = null;
|
|
2372
|
-
}
|
|
2373
|
-
w.unmount = function(e) {
|
|
2374
|
-
var t = e.__c;
|
|
2375
|
-
t && t.__R && t.__R(), t && e.__h === !0 && (e.type = null), Hn && Hn(e);
|
|
2376
|
-
}, (Ve.prototype = new G()).__c = function(e, t) {
|
|
2377
|
-
var n = t.__c, r = this;
|
|
2378
|
-
r.t == null && (r.t = []), r.t.push(n);
|
|
2379
|
-
var o = Ur(r.__v), a = !1, s = function() {
|
|
2380
|
-
a || (a = !0, n.__R = null, o ? o(l) : l());
|
|
2381
|
-
};
|
|
2382
|
-
n.__R = s;
|
|
2383
|
-
var l = function() {
|
|
2384
|
-
if (!--r.__u) {
|
|
2385
|
-
if (r.state.__a) {
|
|
2386
|
-
var d = r.state.__a;
|
|
2387
|
-
r.__v.__k[0] = $r(d, d.__c.__P, d.__c.__O);
|
|
2388
|
-
}
|
|
2389
|
-
var f;
|
|
2390
|
-
for (r.setState({ __a: r.__b = null }); f = r.t.pop(); )
|
|
2391
|
-
f.forceUpdate();
|
|
2392
|
-
}
|
|
2393
|
-
}, c = t.__h === !0;
|
|
2394
|
-
r.__u++ || c || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(s, s);
|
|
2395
|
-
}, Ve.prototype.componentWillUnmount = function() {
|
|
2396
|
-
this.t = [];
|
|
2397
|
-
}, Ve.prototype.render = function(e, t) {
|
|
2398
|
-
if (this.__b) {
|
|
2399
|
-
if (this.__v.__k) {
|
|
2400
|
-
var n = document.createElement("div"), r = this.__v.__k[0].__c;
|
|
2401
|
-
this.__v.__k[0] = Vr(this.__b, n, r.__O = r.__P);
|
|
2402
|
-
}
|
|
2403
|
-
this.__b = null;
|
|
2404
|
-
}
|
|
2405
|
-
var o = t.__a && X(D, null, e.fallback);
|
|
2406
|
-
return o && (o.__h = null), [X(D, null, t.__a ? null : e.children), o];
|
|
2407
|
-
};
|
|
2408
|
-
var Fn = function(e, t, n) {
|
|
2409
|
-
if (++n[1] === n[0] && e.o.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.o.size))
|
|
2410
|
-
for (n = e.u; n; ) {
|
|
2411
|
-
for (; n.length > 3; )
|
|
2412
|
-
n.pop()();
|
|
2413
|
-
if (n[1] < n[0])
|
|
2414
|
-
break;
|
|
2415
|
-
e.u = n = n[2];
|
|
1959
|
+
var o = t.__a && X(I, null, e.fallback);
|
|
1960
|
+
return o && (o.__h = null), [X(I, null, t.__a ? null : e.children), o];
|
|
1961
|
+
};
|
|
1962
|
+
var Mn = function(e, t, n) {
|
|
1963
|
+
if (++n[1] === n[0] && e.o.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.o.size))
|
|
1964
|
+
for (n = e.u; n; ) {
|
|
1965
|
+
for (; n.length > 3; )
|
|
1966
|
+
n.pop()();
|
|
1967
|
+
if (n[1] < n[0])
|
|
1968
|
+
break;
|
|
1969
|
+
e.u = n = n[2];
|
|
2416
1970
|
}
|
|
2417
1971
|
};
|
|
2418
|
-
function
|
|
1972
|
+
function ya(e) {
|
|
2419
1973
|
return this.getChildContext = function() {
|
|
2420
1974
|
return e.context;
|
|
2421
1975
|
}, e.children;
|
|
2422
1976
|
}
|
|
2423
|
-
function
|
|
1977
|
+
function ga(e) {
|
|
2424
1978
|
var t = this, n = e.i;
|
|
2425
1979
|
t.componentWillUnmount = function() {
|
|
2426
1980
|
$e(null, t.l), t.l = null, t.i = null;
|
|
@@ -2430,40 +1984,40 @@ function Ti(e) {
|
|
|
2430
1984
|
this.childNodes.push(r), t.i.appendChild(r);
|
|
2431
1985
|
}, removeChild: function(r) {
|
|
2432
1986
|
this.childNodes.splice(this.childNodes.indexOf(r) >>> 1, 1), t.i.removeChild(r);
|
|
2433
|
-
} }), $e(X(
|
|
1987
|
+
} }), $e(X(ya, { context: t.context }, e.__v), t.l)) : t.l && t.componentWillUnmount();
|
|
2434
1988
|
}
|
|
2435
|
-
function
|
|
2436
|
-
var n = X(
|
|
1989
|
+
function Pr(e, t) {
|
|
1990
|
+
var n = X(ga, { __v: e, i: t });
|
|
2437
1991
|
return n.containerInfo = t, n;
|
|
2438
1992
|
}
|
|
2439
|
-
(
|
|
2440
|
-
var t = this, n =
|
|
1993
|
+
(Le.prototype = new G()).__a = function(e) {
|
|
1994
|
+
var t = this, n = Ir(t.__v), r = t.o.get(e);
|
|
2441
1995
|
return r[0]++, function(o) {
|
|
2442
1996
|
var a = function() {
|
|
2443
|
-
t.props.revealOrder ? (r.push(o),
|
|
1997
|
+
t.props.revealOrder ? (r.push(o), Mn(t, e, r)) : o();
|
|
2444
1998
|
};
|
|
2445
1999
|
n ? n(a) : a();
|
|
2446
2000
|
};
|
|
2447
|
-
},
|
|
2001
|
+
}, Le.prototype.render = function(e) {
|
|
2448
2002
|
this.u = null, this.o = /* @__PURE__ */ new Map();
|
|
2449
2003
|
var t = le(e.children);
|
|
2450
2004
|
e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
|
|
2451
2005
|
for (var n = t.length; n--; )
|
|
2452
2006
|
this.o.set(t[n], this.u = [1, 0, this.u]);
|
|
2453
2007
|
return e.children;
|
|
2454
|
-
},
|
|
2008
|
+
}, Le.prototype.componentDidUpdate = Le.prototype.componentDidMount = function() {
|
|
2455
2009
|
var e = this;
|
|
2456
2010
|
this.o.forEach(function(t, n) {
|
|
2457
|
-
|
|
2011
|
+
Mn(e, n, t);
|
|
2458
2012
|
});
|
|
2459
2013
|
};
|
|
2460
|
-
var
|
|
2014
|
+
var jr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, va = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, ma = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, ba = /[A-Z0-9]/g, Ea = typeof document < "u", wa = function(e) {
|
|
2461
2015
|
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
2462
2016
|
};
|
|
2463
|
-
function
|
|
2017
|
+
function Vr(e, t, n) {
|
|
2464
2018
|
return t.__k == null && (t.textContent = ""), $e(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
2465
2019
|
}
|
|
2466
|
-
function
|
|
2020
|
+
function $r(e, t, n) {
|
|
2467
2021
|
return _r(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
2468
2022
|
}
|
|
2469
2023
|
G.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
@@ -2473,140 +2027,165 @@ G.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveP
|
|
|
2473
2027
|
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
|
|
2474
2028
|
} });
|
|
2475
2029
|
});
|
|
2476
|
-
var
|
|
2477
|
-
function
|
|
2030
|
+
var Pn = w.event;
|
|
2031
|
+
function Sa() {
|
|
2478
2032
|
}
|
|
2479
|
-
function
|
|
2033
|
+
function Ca() {
|
|
2480
2034
|
return this.cancelBubble;
|
|
2481
2035
|
}
|
|
2482
|
-
function
|
|
2036
|
+
function xa() {
|
|
2483
2037
|
return this.defaultPrevented;
|
|
2484
2038
|
}
|
|
2485
2039
|
w.event = function(e) {
|
|
2486
|
-
return
|
|
2040
|
+
return Pn && (e = Pn(e)), e.persist = Sa, e.isPropagationStopped = Ca, e.isDefaultPrevented = xa, e.nativeEvent = e;
|
|
2487
2041
|
};
|
|
2488
|
-
var Yt,
|
|
2042
|
+
var Yt, Ta = { enumerable: !1, configurable: !0, get: function() {
|
|
2489
2043
|
return this.class;
|
|
2490
|
-
} },
|
|
2044
|
+
} }, jn = w.vnode;
|
|
2491
2045
|
w.vnode = function(e) {
|
|
2492
2046
|
typeof e.type == "string" && function(t) {
|
|
2493
2047
|
var n = t.props, r = t.type, o = {};
|
|
2494
2048
|
for (var a in n) {
|
|
2495
2049
|
var s = n[a];
|
|
2496
|
-
if (!(a === "value" && "defaultValue" in n && s == null ||
|
|
2050
|
+
if (!(a === "value" && "defaultValue" in n && s == null || Ea && a === "children" && r === "noscript" || a === "class" || a === "className")) {
|
|
2497
2051
|
var l = a.toLowerCase();
|
|
2498
|
-
a === "defaultValue" && "value" in n && n.value == null ? a = "value" : a === "download" && s === !0 ? s = "" : l === "ondoubleclick" ? a = "ondblclick" : l !== "onchange" || r !== "input" && r !== "textarea" ||
|
|
2052
|
+
a === "defaultValue" && "value" in n && n.value == null ? a = "value" : a === "download" && s === !0 ? s = "" : l === "ondoubleclick" ? a = "ondblclick" : l !== "onchange" || r !== "input" && r !== "textarea" || wa(n.type) ? l === "onfocus" ? a = "onfocusin" : l === "onblur" ? a = "onfocusout" : ma.test(a) ? a = l : r.indexOf("-") === -1 && va.test(a) ? a = a.replace(ba, "-$&").toLowerCase() : s === null && (s = void 0) : l = a = "oninput", l === "oninput" && o[a = l] && (a = "oninputCapture"), o[a] = s;
|
|
2499
2053
|
}
|
|
2500
2054
|
}
|
|
2501
2055
|
r == "select" && o.multiple && Array.isArray(o.value) && (o.value = le(n.children).forEach(function(c) {
|
|
2502
2056
|
c.props.selected = o.value.indexOf(c.props.value) != -1;
|
|
2503
2057
|
})), r == "select" && o.defaultValue != null && (o.value = le(n.children).forEach(function(c) {
|
|
2504
2058
|
c.props.selected = o.multiple ? o.defaultValue.indexOf(c.props.value) != -1 : o.defaultValue == c.props.value;
|
|
2505
|
-
})), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className",
|
|
2506
|
-
}(e), e.$$typeof =
|
|
2059
|
+
})), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", Ta)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o;
|
|
2060
|
+
}(e), e.$$typeof = jr, jn && jn(e);
|
|
2507
2061
|
};
|
|
2508
|
-
var
|
|
2062
|
+
var Vn = w.__r;
|
|
2509
2063
|
w.__r = function(e) {
|
|
2510
|
-
|
|
2064
|
+
Vn && Vn(e), Yt = e.__c;
|
|
2511
2065
|
};
|
|
2512
|
-
var
|
|
2066
|
+
var $n = w.diffed;
|
|
2513
2067
|
w.diffed = function(e) {
|
|
2514
|
-
|
|
2068
|
+
$n && $n(e);
|
|
2515
2069
|
var t = e.props, n = e.__e;
|
|
2516
2070
|
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), Yt = null;
|
|
2517
2071
|
};
|
|
2518
|
-
var
|
|
2072
|
+
var Ur = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
2519
2073
|
return Yt.__n[e.__c].props.value;
|
|
2520
|
-
} } } },
|
|
2521
|
-
function
|
|
2074
|
+
} } } }, ka = "17.0.2";
|
|
2075
|
+
function Hr(e) {
|
|
2522
2076
|
return X.bind(null, e);
|
|
2523
2077
|
}
|
|
2524
2078
|
function Jt(e) {
|
|
2525
|
-
return !!e && e.$$typeof ===
|
|
2079
|
+
return !!e && e.$$typeof === jr;
|
|
2526
2080
|
}
|
|
2527
|
-
function
|
|
2528
|
-
return Jt(e) ?
|
|
2081
|
+
function Fr(e) {
|
|
2082
|
+
return Jt(e) ? Do.apply(null, arguments) : e;
|
|
2529
2083
|
}
|
|
2530
|
-
function
|
|
2084
|
+
function Wr(e) {
|
|
2531
2085
|
return !!e.__k && ($e(null, e), !0);
|
|
2532
2086
|
}
|
|
2533
|
-
function
|
|
2087
|
+
function zr(e) {
|
|
2534
2088
|
return e && (e.base || e.nodeType === 1 && e) || null;
|
|
2535
2089
|
}
|
|
2536
|
-
var
|
|
2090
|
+
var Br = function(e, t) {
|
|
2537
2091
|
return e(t);
|
|
2538
|
-
},
|
|
2092
|
+
}, qr = function(e, t) {
|
|
2539
2093
|
return e(t);
|
|
2540
|
-
},
|
|
2094
|
+
}, Gr = I;
|
|
2541
2095
|
function Qt(e) {
|
|
2542
2096
|
e();
|
|
2543
2097
|
}
|
|
2544
|
-
function
|
|
2098
|
+
function Kr(e) {
|
|
2545
2099
|
return e;
|
|
2546
2100
|
}
|
|
2547
|
-
function
|
|
2101
|
+
function Zr() {
|
|
2548
2102
|
return [!1, Qt];
|
|
2549
2103
|
}
|
|
2550
|
-
var
|
|
2551
|
-
function
|
|
2104
|
+
var Yr = Ce;
|
|
2105
|
+
function Jr(e, t) {
|
|
2552
2106
|
var n = t(), r = j({ h: { __: n, v: t } }), o = r[0].h, a = r[1];
|
|
2553
2107
|
return Ce(function() {
|
|
2554
|
-
o.__ = n, o.v = t,
|
|
2108
|
+
o.__ = n, o.v = t, mt(o.__, t()) || a({ h: o });
|
|
2555
2109
|
}, [e, n, t]), ee(function() {
|
|
2556
|
-
return
|
|
2557
|
-
|
|
2110
|
+
return mt(o.__, o.v()) || a({ h: o }), e(function() {
|
|
2111
|
+
mt(o.__, o.v()) || a({ h: o });
|
|
2558
2112
|
});
|
|
2559
2113
|
}, [e]), n;
|
|
2560
2114
|
}
|
|
2561
|
-
var
|
|
2562
|
-
const
|
|
2115
|
+
var ct = { useState: j, useId: Gt, useReducer: Bt, useEffect: ee, useLayoutEffect: Ce, useInsertionEffect: Yr, useTransition: Zr, useDeferredValue: Kr, useSyncExternalStore: Jr, startTransition: Qt, useRef: q, useImperativeHandle: Tr, useMemo: be, useCallback: je, useContext: lt, useDebugValue: qt, version: "17.0.2", Children: Nr, render: Vr, hydrate: $r, unmountComponentAtNode: Wr, createPortal: Pr, createElement: X, createContext: it, createFactory: Hr, cloneElement: Fr, createRef: ir, Fragment: I, isValidElement: Jt, findDOMNode: zr, Component: G, PureComponent: ot, memo: Lr, forwardRef: Zt, flushSync: qr, unstable_batchedUpdates: Br, StrictMode: Gr, Suspense: Ve, SuspenseList: Le, lazy: Mr, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Ur };
|
|
2116
|
+
const Oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2563
2117
|
__proto__: null,
|
|
2564
|
-
Children:
|
|
2118
|
+
Children: Nr,
|
|
2565
2119
|
Component: G,
|
|
2566
|
-
Fragment:
|
|
2120
|
+
Fragment: I,
|
|
2567
2121
|
PureComponent: ot,
|
|
2568
|
-
StrictMode:
|
|
2122
|
+
StrictMode: Gr,
|
|
2569
2123
|
Suspense: Ve,
|
|
2570
|
-
SuspenseList:
|
|
2571
|
-
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:
|
|
2572
|
-
cloneElement:
|
|
2124
|
+
SuspenseList: Le,
|
|
2125
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Ur,
|
|
2126
|
+
cloneElement: Fr,
|
|
2573
2127
|
createContext: it,
|
|
2574
2128
|
createElement: X,
|
|
2575
|
-
createFactory:
|
|
2576
|
-
createPortal:
|
|
2129
|
+
createFactory: Hr,
|
|
2130
|
+
createPortal: Pr,
|
|
2577
2131
|
createRef: ir,
|
|
2578
|
-
default:
|
|
2579
|
-
findDOMNode:
|
|
2580
|
-
flushSync:
|
|
2132
|
+
default: ct,
|
|
2133
|
+
findDOMNode: zr,
|
|
2134
|
+
flushSync: qr,
|
|
2581
2135
|
forwardRef: Zt,
|
|
2582
|
-
hydrate:
|
|
2136
|
+
hydrate: $r,
|
|
2583
2137
|
isValidElement: Jt,
|
|
2584
|
-
lazy:
|
|
2585
|
-
memo:
|
|
2586
|
-
render:
|
|
2138
|
+
lazy: Mr,
|
|
2139
|
+
memo: Lr,
|
|
2140
|
+
render: Vr,
|
|
2587
2141
|
startTransition: Qt,
|
|
2588
|
-
unmountComponentAtNode:
|
|
2589
|
-
unstable_batchedUpdates:
|
|
2142
|
+
unmountComponentAtNode: Wr,
|
|
2143
|
+
unstable_batchedUpdates: Br,
|
|
2590
2144
|
useCallback: je,
|
|
2591
2145
|
useContext: lt,
|
|
2592
2146
|
useDebugValue: qt,
|
|
2593
|
-
useDeferredValue:
|
|
2147
|
+
useDeferredValue: Kr,
|
|
2594
2148
|
useEffect: ee,
|
|
2595
|
-
useErrorBoundary:
|
|
2149
|
+
useErrorBoundary: sa,
|
|
2596
2150
|
useId: Gt,
|
|
2597
|
-
useImperativeHandle:
|
|
2598
|
-
useInsertionEffect:
|
|
2151
|
+
useImperativeHandle: Tr,
|
|
2152
|
+
useInsertionEffect: Yr,
|
|
2599
2153
|
useLayoutEffect: Ce,
|
|
2600
2154
|
useMemo: be,
|
|
2601
2155
|
useReducer: Bt,
|
|
2602
2156
|
useRef: q,
|
|
2603
2157
|
useState: j,
|
|
2604
|
-
useSyncExternalStore:
|
|
2605
|
-
useTransition:
|
|
2606
|
-
version:
|
|
2158
|
+
useSyncExternalStore: Jr,
|
|
2159
|
+
useTransition: Zr,
|
|
2160
|
+
version: ka
|
|
2607
2161
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2608
|
-
var
|
|
2609
|
-
|
|
2162
|
+
var Ze = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2163
|
+
function Ra(e) {
|
|
2164
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2165
|
+
}
|
|
2166
|
+
function La(e) {
|
|
2167
|
+
if (e.__esModule)
|
|
2168
|
+
return e;
|
|
2169
|
+
var t = e.default;
|
|
2170
|
+
if (typeof t == "function") {
|
|
2171
|
+
var n = function r() {
|
|
2172
|
+
return this instanceof r ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
|
|
2173
|
+
};
|
|
2174
|
+
n.prototype = t.prototype;
|
|
2175
|
+
} else
|
|
2176
|
+
n = {};
|
|
2177
|
+
return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(e).forEach(function(r) {
|
|
2178
|
+
var o = Object.getOwnPropertyDescriptor(e, r);
|
|
2179
|
+
Object.defineProperty(n, r, o.get ? o : {
|
|
2180
|
+
enumerable: !0,
|
|
2181
|
+
get: function() {
|
|
2182
|
+
return e[r];
|
|
2183
|
+
}
|
|
2184
|
+
});
|
|
2185
|
+
}), n;
|
|
2186
|
+
}
|
|
2187
|
+
var It = { exports: {} }, bt = {};
|
|
2188
|
+
const Qr = /* @__PURE__ */ La(Oa);
|
|
2610
2189
|
/**
|
|
2611
2190
|
* @license React
|
|
2612
2191
|
* use-sync-external-store-shim.production.min.js
|
|
@@ -2616,12 +2195,12 @@ const oo = /* @__PURE__ */ Zo(ji);
|
|
|
2616
2195
|
* This source code is licensed under the MIT license found in the
|
|
2617
2196
|
* LICENSE file in the root directory of this source tree.
|
|
2618
2197
|
*/
|
|
2619
|
-
var
|
|
2620
|
-
function
|
|
2621
|
-
if (
|
|
2622
|
-
return
|
|
2623
|
-
|
|
2624
|
-
var e =
|
|
2198
|
+
var Un;
|
|
2199
|
+
function Na() {
|
|
2200
|
+
if (Un)
|
|
2201
|
+
return bt;
|
|
2202
|
+
Un = 1;
|
|
2203
|
+
var e = Qr;
|
|
2625
2204
|
function t(i, p) {
|
|
2626
2205
|
return i === p && (i !== 0 || 1 / i === 1 / p) || i !== i && p !== p;
|
|
2627
2206
|
}
|
|
@@ -2650,9 +2229,9 @@ function Vi() {
|
|
|
2650
2229
|
return p();
|
|
2651
2230
|
}
|
|
2652
2231
|
var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : l;
|
|
2653
|
-
return
|
|
2232
|
+
return bt.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : f, bt;
|
|
2654
2233
|
}
|
|
2655
|
-
var
|
|
2234
|
+
var Et = {};
|
|
2656
2235
|
/**
|
|
2657
2236
|
* @license React
|
|
2658
2237
|
* use-sync-external-store-shim.development.js
|
|
@@ -2662,11 +2241,11 @@ var wt = {};
|
|
|
2662
2241
|
* This source code is licensed under the MIT license found in the
|
|
2663
2242
|
* LICENSE file in the root directory of this source tree.
|
|
2664
2243
|
*/
|
|
2665
|
-
var
|
|
2666
|
-
function
|
|
2667
|
-
return
|
|
2244
|
+
var Hn;
|
|
2245
|
+
function Da() {
|
|
2246
|
+
return Hn || (Hn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2668
2247
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
2669
|
-
var e =
|
|
2248
|
+
var e = Qr, t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
2670
2249
|
function n(S) {
|
|
2671
2250
|
{
|
|
2672
2251
|
for (var v = arguments.length, b = new Array(v > 1 ? v - 1 : 0), m = 1; m < v; m++)
|
|
@@ -2730,90 +2309,90 @@ function $i() {
|
|
|
2730
2309
|
return v();
|
|
2731
2310
|
}
|
|
2732
2311
|
var h = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", C = !h, g = C ? _ : p, E = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : g;
|
|
2733
|
-
|
|
2734
|
-
}()),
|
|
2312
|
+
Et.useSyncExternalStore = E, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
2313
|
+
}()), Et;
|
|
2735
2314
|
}
|
|
2736
|
-
process.env.NODE_ENV === "production" ?
|
|
2737
|
-
var
|
|
2315
|
+
process.env.NODE_ENV === "production" ? It.exports = Na() : It.exports = Da();
|
|
2316
|
+
var Aa = It.exports;
|
|
2738
2317
|
const pe = () => {
|
|
2739
2318
|
}, W = (
|
|
2740
2319
|
/*#__NOINLINE__*/
|
|
2741
2320
|
pe()
|
|
2742
|
-
),
|
|
2321
|
+
), wt = Object, R = (e) => e === W, Q = (e) => typeof e == "function", ge = (e, t) => ({
|
|
2743
2322
|
...e,
|
|
2744
2323
|
...t
|
|
2745
|
-
}),
|
|
2746
|
-
let
|
|
2747
|
-
const
|
|
2324
|
+
}), Ia = (e) => Q(e.then), Ye = /* @__PURE__ */ new WeakMap();
|
|
2325
|
+
let Ma = 0;
|
|
2326
|
+
const He = (e) => {
|
|
2748
2327
|
const t = typeof e, n = e && e.constructor, r = n == Date;
|
|
2749
2328
|
let o, a;
|
|
2750
|
-
if (
|
|
2329
|
+
if (wt(e) === e && !r && n != RegExp) {
|
|
2751
2330
|
if (o = Ye.get(e), o)
|
|
2752
2331
|
return o;
|
|
2753
|
-
if (o = ++
|
|
2332
|
+
if (o = ++Ma + "~", Ye.set(e, o), n == Array) {
|
|
2754
2333
|
for (o = "@", a = 0; a < e.length; a++)
|
|
2755
|
-
o +=
|
|
2334
|
+
o += He(e[a]) + ",";
|
|
2756
2335
|
Ye.set(e, o);
|
|
2757
2336
|
}
|
|
2758
|
-
if (n ==
|
|
2337
|
+
if (n == wt) {
|
|
2759
2338
|
o = "#";
|
|
2760
|
-
const s =
|
|
2339
|
+
const s = wt.keys(e).sort();
|
|
2761
2340
|
for (; !R(a = s.pop()); )
|
|
2762
|
-
R(e[a]) || (o += a + ":" +
|
|
2341
|
+
R(e[a]) || (o += a + ":" + He(e[a]) + ",");
|
|
2763
2342
|
Ye.set(e, o);
|
|
2764
2343
|
}
|
|
2765
2344
|
} else
|
|
2766
2345
|
o = r ? e.toJSON() : t == "symbol" ? e.toString() : t == "string" ? JSON.stringify(e) : "" + e;
|
|
2767
2346
|
return o;
|
|
2768
|
-
}, ae = /* @__PURE__ */ new WeakMap(),
|
|
2347
|
+
}, ae = /* @__PURE__ */ new WeakMap(), St = {}, Je = {}, Xt = "undefined", ut = typeof window != Xt, Mt = typeof document != Xt, Pa = () => ut && typeof window.requestAnimationFrame != Xt, Xr = (e, t) => {
|
|
2769
2348
|
const n = ae.get(e);
|
|
2770
2349
|
return [
|
|
2771
2350
|
// Getter
|
|
2772
|
-
() => !R(t) && e.get(t) ||
|
|
2351
|
+
() => !R(t) && e.get(t) || St,
|
|
2773
2352
|
// Setter
|
|
2774
2353
|
(r) => {
|
|
2775
2354
|
if (!R(t)) {
|
|
2776
2355
|
const o = e.get(t);
|
|
2777
|
-
t in Je || (Je[t] = o), n[5](t, ge(o, r), o ||
|
|
2356
|
+
t in Je || (Je[t] = o), n[5](t, ge(o, r), o || St);
|
|
2778
2357
|
}
|
|
2779
2358
|
},
|
|
2780
2359
|
// Subscriber
|
|
2781
2360
|
n[6],
|
|
2782
2361
|
// Get server cache snapshot
|
|
2783
|
-
() => !R(t) && t in Je ? Je[t] : !R(t) && e.get(t) ||
|
|
2362
|
+
() => !R(t) && t in Je ? Je[t] : !R(t) && e.get(t) || St
|
|
2784
2363
|
];
|
|
2785
2364
|
};
|
|
2786
|
-
let
|
|
2787
|
-
const
|
|
2365
|
+
let Pt = !0;
|
|
2366
|
+
const ja = () => Pt, [jt, Vt] = ut && window.addEventListener ? [
|
|
2788
2367
|
window.addEventListener.bind(window),
|
|
2789
2368
|
window.removeEventListener.bind(window)
|
|
2790
2369
|
] : [
|
|
2791
2370
|
pe,
|
|
2792
2371
|
pe
|
|
2793
|
-
],
|
|
2794
|
-
const e =
|
|
2372
|
+
], Va = () => {
|
|
2373
|
+
const e = Mt && document.visibilityState;
|
|
2795
2374
|
return R(e) || e !== "hidden";
|
|
2796
|
-
},
|
|
2797
|
-
|
|
2798
|
-
}),
|
|
2375
|
+
}, $a = (e) => (Mt && document.addEventListener("visibilitychange", e), jt("focus", e), () => {
|
|
2376
|
+
Mt && document.removeEventListener("visibilitychange", e), Vt("focus", e);
|
|
2377
|
+
}), Ua = (e) => {
|
|
2799
2378
|
const t = () => {
|
|
2800
|
-
|
|
2379
|
+
Pt = !0, e();
|
|
2801
2380
|
}, n = () => {
|
|
2802
|
-
|
|
2381
|
+
Pt = !1;
|
|
2803
2382
|
};
|
|
2804
2383
|
return jt("online", t), jt("offline", n), () => {
|
|
2805
2384
|
Vt("online", t), Vt("offline", n);
|
|
2806
2385
|
};
|
|
2807
|
-
},
|
|
2808
|
-
isOnline:
|
|
2809
|
-
isVisible:
|
|
2810
|
-
},
|
|
2811
|
-
initFocus:
|
|
2812
|
-
initReconnect:
|
|
2813
|
-
},
|
|
2386
|
+
}, Ha = {
|
|
2387
|
+
isOnline: ja,
|
|
2388
|
+
isVisible: Va
|
|
2389
|
+
}, Fa = {
|
|
2390
|
+
initFocus: $a,
|
|
2391
|
+
initReconnect: Ua
|
|
2392
|
+
}, Fn = !ct.useId, Fe = !ut || "Deno" in window, Wa = (e) => Pa() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Ct = Fe ? ee : Ce, xt = typeof navigator < "u" && navigator.connection, Wn = !Fe && xt && ([
|
|
2814
2393
|
"slow-2g",
|
|
2815
2394
|
"2g"
|
|
2816
|
-
].includes(
|
|
2395
|
+
].includes(xt.effectiveType) || xt.saveData), en = (e) => {
|
|
2817
2396
|
if (Q(e))
|
|
2818
2397
|
try {
|
|
2819
2398
|
e = e();
|
|
@@ -2821,21 +2400,21 @@ const zi = () => Mt, [jt, Vt] = dt && window.addEventListener ? [
|
|
|
2821
2400
|
e = "";
|
|
2822
2401
|
}
|
|
2823
2402
|
const t = e;
|
|
2824
|
-
return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ?
|
|
2403
|
+
return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ? He(e) : "", [
|
|
2825
2404
|
e,
|
|
2826
2405
|
t
|
|
2827
2406
|
];
|
|
2828
2407
|
};
|
|
2829
|
-
let
|
|
2830
|
-
const $t = () => ++
|
|
2831
|
-
var
|
|
2408
|
+
let za = 0;
|
|
2409
|
+
const $t = () => ++za, eo = 0, to = 1, no = 2, Ba = 3;
|
|
2410
|
+
var Ie = {
|
|
2832
2411
|
__proto__: null,
|
|
2833
|
-
ERROR_REVALIDATE_EVENT:
|
|
2834
|
-
FOCUS_EVENT:
|
|
2835
|
-
MUTATE_EVENT:
|
|
2836
|
-
RECONNECT_EVENT:
|
|
2412
|
+
ERROR_REVALIDATE_EVENT: Ba,
|
|
2413
|
+
FOCUS_EVENT: eo,
|
|
2414
|
+
MUTATE_EVENT: no,
|
|
2415
|
+
RECONNECT_EVENT: to
|
|
2837
2416
|
};
|
|
2838
|
-
async function
|
|
2417
|
+
async function ro(...e) {
|
|
2839
2418
|
const [t, n, r, o] = e, a = ge({
|
|
2840
2419
|
populateCache: !0,
|
|
2841
2420
|
throwOnError: !0
|
|
@@ -2858,9 +2437,9 @@ async function co(...e) {
|
|
|
2858
2437
|
const [y] = en(p);
|
|
2859
2438
|
if (!y)
|
|
2860
2439
|
return;
|
|
2861
|
-
const [_, h] =
|
|
2440
|
+
const [_, h] = Xr(t, y), [C, g, E, S] = ae.get(t), v = () => {
|
|
2862
2441
|
const H = C[y];
|
|
2863
|
-
return (Q(a.revalidate) ? a.revalidate(_().data, p) : a.revalidate !== !1) && (delete E[y], delete S[y], H && H[0]) ? H[0](
|
|
2442
|
+
return (Q(a.revalidate) ? a.revalidate(_().data, p) : a.revalidate !== !1) && (delete E[y], delete S[y], H && H[0]) ? H[0](no).then(() => _().data) : _().data;
|
|
2864
2443
|
};
|
|
2865
2444
|
if (e.length < 3)
|
|
2866
2445
|
return v();
|
|
@@ -2880,7 +2459,7 @@ async function co(...e) {
|
|
|
2880
2459
|
} catch (H) {
|
|
2881
2460
|
m = H;
|
|
2882
2461
|
}
|
|
2883
|
-
if (b &&
|
|
2462
|
+
if (b && Ia(b))
|
|
2884
2463
|
if (b = await b.catch((H) => {
|
|
2885
2464
|
m = H;
|
|
2886
2465
|
}), k !== g[y][0]) {
|
|
@@ -2918,12 +2497,12 @@ async function co(...e) {
|
|
|
2918
2497
|
return b;
|
|
2919
2498
|
}
|
|
2920
2499
|
}
|
|
2921
|
-
const
|
|
2500
|
+
const zn = (e, t) => {
|
|
2922
2501
|
for (const n in e)
|
|
2923
2502
|
e[n][0] && e[n][0](t);
|
|
2924
|
-
},
|
|
2503
|
+
}, qa = (e, t) => {
|
|
2925
2504
|
if (!ae.has(e)) {
|
|
2926
|
-
const n = ge(
|
|
2505
|
+
const n = ge(Fa, t), r = {}, o = ro.bind(W, e);
|
|
2927
2506
|
let a = pe;
|
|
2928
2507
|
const s = {}, l = (f, i) => {
|
|
2929
2508
|
const p = s[f] || [];
|
|
@@ -2943,8 +2522,8 @@ const Jn = (e, t) => {
|
|
|
2943
2522
|
o,
|
|
2944
2523
|
c,
|
|
2945
2524
|
l
|
|
2946
|
-
]), !
|
|
2947
|
-
const f = n.initFocus(setTimeout.bind(W,
|
|
2525
|
+
]), !Fe)) {
|
|
2526
|
+
const f = n.initFocus(setTimeout.bind(W, zn.bind(W, r, eo))), i = n.initReconnect(setTimeout.bind(W, zn.bind(W, r, to)));
|
|
2948
2527
|
a = () => {
|
|
2949
2528
|
f && f(), i && i(), ae.delete(e);
|
|
2950
2529
|
};
|
|
@@ -2961,16 +2540,16 @@ const Jn = (e, t) => {
|
|
|
2961
2540
|
e,
|
|
2962
2541
|
ae.get(e)[4]
|
|
2963
2542
|
];
|
|
2964
|
-
},
|
|
2543
|
+
}, Ga = (e, t, n, r, o) => {
|
|
2965
2544
|
const a = n.errorRetryCount, s = o.retryCount, l = ~~((Math.random() + 0.5) * (1 << (s < 8 ? s : 8))) * n.errorRetryInterval;
|
|
2966
2545
|
!R(a) && s > a || setTimeout(r, l, o);
|
|
2967
|
-
},
|
|
2546
|
+
}, Ka = (e, t) => He(e) == He(t), [oo, Za] = qa(/* @__PURE__ */ new Map()), Ya = ge(
|
|
2968
2547
|
{
|
|
2969
2548
|
// events
|
|
2970
2549
|
onLoadingSlow: pe,
|
|
2971
2550
|
onSuccess: pe,
|
|
2972
2551
|
onError: pe,
|
|
2973
|
-
onErrorRetry:
|
|
2552
|
+
onErrorRetry: Ga,
|
|
2974
2553
|
onDiscarded: pe,
|
|
2975
2554
|
// switches
|
|
2976
2555
|
revalidateOnFocus: !0,
|
|
@@ -2978,29 +2557,29 @@ const Jn = (e, t) => {
|
|
|
2978
2557
|
revalidateIfStale: !0,
|
|
2979
2558
|
shouldRetryOnError: !0,
|
|
2980
2559
|
// timeouts
|
|
2981
|
-
errorRetryInterval:
|
|
2560
|
+
errorRetryInterval: Wn ? 1e4 : 5e3,
|
|
2982
2561
|
focusThrottleInterval: 5 * 1e3,
|
|
2983
2562
|
dedupingInterval: 2 * 1e3,
|
|
2984
|
-
loadingTimeout:
|
|
2563
|
+
loadingTimeout: Wn ? 5e3 : 3e3,
|
|
2985
2564
|
// providers
|
|
2986
|
-
compare:
|
|
2565
|
+
compare: Ka,
|
|
2987
2566
|
isPaused: () => !1,
|
|
2988
|
-
cache:
|
|
2989
|
-
mutate:
|
|
2567
|
+
cache: oo,
|
|
2568
|
+
mutate: Za,
|
|
2990
2569
|
fallback: {}
|
|
2991
2570
|
},
|
|
2992
2571
|
// use web preset by default
|
|
2993
|
-
|
|
2994
|
-
),
|
|
2572
|
+
Ha
|
|
2573
|
+
), Ja = (e, t) => {
|
|
2995
2574
|
const n = ge(e, t);
|
|
2996
2575
|
if (t) {
|
|
2997
2576
|
const { use: r, fallback: o } = e, { use: a, fallback: s } = t;
|
|
2998
2577
|
r && a && (n.use = r.concat(a)), o && s && (n.fallback = ge(o, s));
|
|
2999
2578
|
}
|
|
3000
2579
|
return n;
|
|
3001
|
-
},
|
|
3002
|
-
|
|
3003
|
-
},
|
|
2580
|
+
}, Qa = it({}), Xa = "$inf$", ao = ut && window.__SWR_DEVTOOLS_USE__, ei = ao ? window.__SWR_DEVTOOLS_USE__ : [], ti = () => {
|
|
2581
|
+
ao && (window.__SWR_DEVTOOLS_REACT__ = ct);
|
|
2582
|
+
}, ni = (e) => Q(e[1]) ? [
|
|
3004
2583
|
e[0],
|
|
3005
2584
|
e[1],
|
|
3006
2585
|
e[2] || {}
|
|
@@ -3008,28 +2587,28 @@ const Jn = (e, t) => {
|
|
|
3008
2587
|
e[0],
|
|
3009
2588
|
null,
|
|
3010
2589
|
(e[1] === null ? e[2] : e[1]) || {}
|
|
3011
|
-
],
|
|
3012
|
-
const [s] = en(t), [, , , l] = ae.get(
|
|
3013
|
-
if (s.startsWith(
|
|
2590
|
+
], ri = () => ge(Ya, lt(Qa)), oi = (e) => (t, n, r) => e(t, n && ((...a) => {
|
|
2591
|
+
const [s] = en(t), [, , , l] = ae.get(oo);
|
|
2592
|
+
if (s.startsWith(Xa))
|
|
3014
2593
|
return n(...a);
|
|
3015
2594
|
const c = l[s];
|
|
3016
2595
|
return R(c) ? n(...a) : (delete l[s], c);
|
|
3017
|
-
}), r),
|
|
3018
|
-
const r =
|
|
2596
|
+
}), r), ai = ei.concat(oi), ii = (e) => function(...n) {
|
|
2597
|
+
const r = ri(), [o, a, s] = ni(n), l = Ja(r, s);
|
|
3019
2598
|
let c = e;
|
|
3020
|
-
const { use: d } = l, f = (d || []).concat(
|
|
2599
|
+
const { use: d } = l, f = (d || []).concat(ai);
|
|
3021
2600
|
for (let i = f.length; i--; )
|
|
3022
2601
|
c = f[i](c);
|
|
3023
2602
|
return c(o, a || l.fetcher || null, l);
|
|
3024
|
-
},
|
|
2603
|
+
}, si = (e, t, n) => {
|
|
3025
2604
|
const r = t[e] || (t[e] = []);
|
|
3026
2605
|
return r.push(n), () => {
|
|
3027
2606
|
const o = r.indexOf(n);
|
|
3028
2607
|
o >= 0 && (r[o] = r[r.length - 1], r.pop());
|
|
3029
2608
|
};
|
|
3030
2609
|
};
|
|
3031
|
-
|
|
3032
|
-
const
|
|
2610
|
+
ti();
|
|
2611
|
+
const Bn = ct.use || ((e) => {
|
|
3033
2612
|
if (e.status === "pending")
|
|
3034
2613
|
throw e;
|
|
3035
2614
|
if (e.status === "fulfilled")
|
|
@@ -3039,28 +2618,28 @@ const Qn = ut.use || ((e) => {
|
|
|
3039
2618
|
}, (t) => {
|
|
3040
2619
|
e.status = "rejected", e.reason = t;
|
|
3041
2620
|
}), e);
|
|
3042
|
-
}),
|
|
2621
|
+
}), Tt = {
|
|
3043
2622
|
dedupe: !0
|
|
3044
|
-
},
|
|
3045
|
-
const { cache: r, compare: o, suspense: a, fallbackData: s, revalidateOnMount: l, revalidateIfStale: c, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: i, keepPreviousData: p } = n, [y, _, h, C] = ae.get(r), [g, E] = en(e), S = q(!1), v = q(!1), b = q(g), m = q(t), k = q(n), x = () => k.current, T = () => x().isVisible() && x().isOnline(), [O, U, K, H] =
|
|
2623
|
+
}, li = (e, t, n) => {
|
|
2624
|
+
const { cache: r, compare: o, suspense: a, fallbackData: s, revalidateOnMount: l, revalidateIfStale: c, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: i, keepPreviousData: p } = n, [y, _, h, C] = ae.get(r), [g, E] = en(e), S = q(!1), v = q(!1), b = q(g), m = q(t), k = q(n), x = () => k.current, T = () => x().isVisible() && x().isOnline(), [O, U, K, H] = Xr(r, g), ue = q({}).current, qe = R(s) ? n.fallback[g] : s, tn = (D, A) => {
|
|
3046
2625
|
for (const $ in ue) {
|
|
3047
|
-
const
|
|
3048
|
-
if (
|
|
3049
|
-
if (!o(
|
|
2626
|
+
const M = $;
|
|
2627
|
+
if (M === "data") {
|
|
2628
|
+
if (!o(D[M], A[M]) && (!R(D[M]) || !o(Ke, A[M])))
|
|
3050
2629
|
return !1;
|
|
3051
|
-
} else if (A[
|
|
2630
|
+
} else if (A[M] !== D[M])
|
|
3052
2631
|
return !1;
|
|
3053
2632
|
}
|
|
3054
2633
|
return !0;
|
|
3055
2634
|
}, nn = be(() => {
|
|
3056
|
-
const
|
|
2635
|
+
const D = (() => !g || !t ? !1 : R(l) ? x().isPaused() || a ? !1 : R(c) ? !0 : c : l)(), A = (F) => {
|
|
3057
2636
|
const ne = ge(F);
|
|
3058
|
-
return delete ne._k,
|
|
2637
|
+
return delete ne._k, D ? {
|
|
3059
2638
|
isValidating: !0,
|
|
3060
2639
|
isLoading: !0,
|
|
3061
2640
|
...ne
|
|
3062
2641
|
} : ne;
|
|
3063
|
-
}, $ = O(),
|
|
2642
|
+
}, $ = O(), M = H(), Z = A($), Re = $ === M ? Z : A(M);
|
|
3064
2643
|
let V = Z;
|
|
3065
2644
|
return [
|
|
3066
2645
|
() => {
|
|
@@ -3072,9 +2651,9 @@ const Qn = ut.use || ((e) => {
|
|
|
3072
2651
|
}, [
|
|
3073
2652
|
r,
|
|
3074
2653
|
g
|
|
3075
|
-
]), Te =
|
|
3076
|
-
(
|
|
3077
|
-
tn($, A) ||
|
|
2654
|
+
]), Te = Aa.useSyncExternalStore(je(
|
|
2655
|
+
(D) => K(g, (A, $) => {
|
|
2656
|
+
tn($, A) || D();
|
|
3078
2657
|
}),
|
|
3079
2658
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3080
2659
|
[
|
|
@@ -3082,19 +2661,19 @@ const Qn = ut.use || ((e) => {
|
|
|
3082
2661
|
g
|
|
3083
2662
|
]
|
|
3084
2663
|
), nn[0], nn[1]), rn = !S.current, yo = y[g] && y[g].length > 0, ke = Te.data, Oe = R(ke) ? qe : ke, Ge = Te.error, on = q(Oe), Ke = p ? R(ke) ? on.current : ke : Oe, an = (() => yo && !R(Ge) ? !1 : rn && !R(l) ? l : x().isPaused() ? !1 : a ? R(Oe) ? !1 : c : R(Oe) || c)(), sn = !!(g && t && rn && an), go = R(Te.isValidating) ? sn : Te.isValidating, vo = R(Te.isLoading) ? sn : Te.isLoading, Ae = je(
|
|
3085
|
-
async (
|
|
2664
|
+
async (D) => {
|
|
3086
2665
|
const A = m.current;
|
|
3087
2666
|
if (!g || !A || v.current || x().isPaused())
|
|
3088
2667
|
return !1;
|
|
3089
|
-
let $,
|
|
3090
|
-
const Re =
|
|
2668
|
+
let $, M, Z = !0;
|
|
2669
|
+
const Re = D || {}, V = !h[g] || !Re.dedupe, F = () => Fn ? !v.current && g === b.current && S.current : g === b.current, ne = {
|
|
3091
2670
|
isValidating: !1,
|
|
3092
2671
|
isLoading: !1
|
|
3093
2672
|
}, cn = () => {
|
|
3094
2673
|
U(ne);
|
|
3095
2674
|
}, un = () => {
|
|
3096
2675
|
const B = h[g];
|
|
3097
|
-
B && B[1] ===
|
|
2676
|
+
B && B[1] === M && delete h[g];
|
|
3098
2677
|
}, dn = {
|
|
3099
2678
|
isValidating: !0
|
|
3100
2679
|
};
|
|
@@ -3105,13 +2684,13 @@ const Qn = ut.use || ((e) => {
|
|
|
3105
2684
|
}, n.loadingTimeout), h[g] = [
|
|
3106
2685
|
A(E),
|
|
3107
2686
|
$t()
|
|
3108
|
-
]), [$,
|
|
2687
|
+
]), [$, M] = h[g], $ = await $, V && setTimeout(un, n.dedupingInterval), !h[g] || h[g][1] !== M)
|
|
3109
2688
|
return V && F() && x().onDiscarded(g), !1;
|
|
3110
2689
|
ne.error = W;
|
|
3111
2690
|
const B = _[g];
|
|
3112
2691
|
if (!R(B) && // case 1
|
|
3113
|
-
(
|
|
3114
|
-
|
|
2692
|
+
(M <= B[0] || // case 2
|
|
2693
|
+
M <= B[1] || // case 3
|
|
3115
2694
|
B[1] === 0))
|
|
3116
2695
|
return cn(), V && F() && x().onDiscarded(g), !1;
|
|
3117
2696
|
const re = O().data;
|
|
@@ -3121,7 +2700,7 @@ const Qn = ut.use || ((e) => {
|
|
|
3121
2700
|
const re = x(), { shouldRetryOnError: ft } = re;
|
|
3122
2701
|
re.isPaused() || (ne.error = B, V && F() && (re.onError(B, g, re), (ft === !0 || Q(ft) && ft(B)) && (!x().revalidateOnFocus || !x().revalidateOnReconnect || T()) && re.onErrorRetry(B, g, re, (mo) => {
|
|
3123
2702
|
const _t = y[g];
|
|
3124
|
-
_t && _t[0] && _t[0](
|
|
2703
|
+
_t && _t[0] && _t[0](Ie.ERROR_REVALIDATE_EVENT, mo);
|
|
3125
2704
|
}, {
|
|
3126
2705
|
retryCount: (Re.retryCount || 0) + 1,
|
|
3127
2706
|
dedupe: !0
|
|
@@ -3146,85 +2725,701 @@ const Qn = ut.use || ((e) => {
|
|
|
3146
2725
|
]
|
|
3147
2726
|
), ln = je(
|
|
3148
2727
|
// Use callback to make sure `keyRef.current` returns latest result every time
|
|
3149
|
-
(...
|
|
2728
|
+
(...D) => ro(r, b.current, ...D),
|
|
3150
2729
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3151
2730
|
[]
|
|
3152
2731
|
);
|
|
3153
|
-
if (
|
|
2732
|
+
if (Ct(() => {
|
|
3154
2733
|
m.current = t, k.current = n, R(ke) || (on.current = ke);
|
|
3155
|
-
}),
|
|
2734
|
+
}), Ct(() => {
|
|
3156
2735
|
if (!g)
|
|
3157
2736
|
return;
|
|
3158
|
-
const
|
|
2737
|
+
const D = Ae.bind(W, Tt);
|
|
3159
2738
|
let A = 0;
|
|
3160
|
-
const
|
|
3161
|
-
if (Z ==
|
|
2739
|
+
const M = si(g, y, (Z, Re = {}) => {
|
|
2740
|
+
if (Z == Ie.FOCUS_EVENT) {
|
|
3162
2741
|
const V = Date.now();
|
|
3163
|
-
x().revalidateOnFocus && V > A && T() && (A = V + x().focusThrottleInterval,
|
|
3164
|
-
} else if (Z ==
|
|
3165
|
-
x().revalidateOnReconnect && T() &&
|
|
2742
|
+
x().revalidateOnFocus && V > A && T() && (A = V + x().focusThrottleInterval, D());
|
|
2743
|
+
} else if (Z == Ie.RECONNECT_EVENT)
|
|
2744
|
+
x().revalidateOnReconnect && T() && D();
|
|
3166
2745
|
else {
|
|
3167
|
-
if (Z ==
|
|
2746
|
+
if (Z == Ie.MUTATE_EVENT)
|
|
3168
2747
|
return Ae();
|
|
3169
|
-
if (Z ==
|
|
2748
|
+
if (Z == Ie.ERROR_REVALIDATE_EVENT)
|
|
3170
2749
|
return Ae(Re);
|
|
3171
2750
|
}
|
|
3172
2751
|
});
|
|
3173
2752
|
return v.current = !1, b.current = g, S.current = !0, U({
|
|
3174
2753
|
_k: E
|
|
3175
|
-
}), an && (R(Oe) ||
|
|
3176
|
-
v.current = !0,
|
|
2754
|
+
}), an && (R(Oe) || Fe ? D() : Wa(D)), () => {
|
|
2755
|
+
v.current = !0, M();
|
|
3177
2756
|
};
|
|
3178
2757
|
}, [
|
|
3179
2758
|
g
|
|
3180
|
-
]),
|
|
3181
|
-
let
|
|
2759
|
+
]), Ct(() => {
|
|
2760
|
+
let D;
|
|
3182
2761
|
function A() {
|
|
3183
|
-
const
|
|
3184
|
-
|
|
2762
|
+
const M = Q(d) ? d(O().data) : d;
|
|
2763
|
+
M && D !== -1 && (D = setTimeout($, M));
|
|
3185
2764
|
}
|
|
3186
2765
|
function $() {
|
|
3187
|
-
!O().error && (f || x().isVisible()) && (i || x().isOnline()) ? Ae(
|
|
2766
|
+
!O().error && (f || x().isVisible()) && (i || x().isOnline()) ? Ae(Tt).then(A) : A();
|
|
2767
|
+
}
|
|
2768
|
+
return A(), () => {
|
|
2769
|
+
D && (clearTimeout(D), D = -1);
|
|
2770
|
+
};
|
|
2771
|
+
}, [
|
|
2772
|
+
d,
|
|
2773
|
+
f,
|
|
2774
|
+
i,
|
|
2775
|
+
g
|
|
2776
|
+
]), qt(Ke), a && R(Oe) && g) {
|
|
2777
|
+
if (!Fn && Fe)
|
|
2778
|
+
throw new Error("Fallback data is required when using suspense in SSR.");
|
|
2779
|
+
m.current = t, k.current = n, v.current = !1;
|
|
2780
|
+
const D = C[g];
|
|
2781
|
+
if (!R(D)) {
|
|
2782
|
+
const A = ln(D);
|
|
2783
|
+
Bn(A);
|
|
2784
|
+
}
|
|
2785
|
+
if (R(Ge)) {
|
|
2786
|
+
const A = Ae(Tt);
|
|
2787
|
+
R(Ke) || (A.status = "fulfilled", A.value = !0), Bn(A);
|
|
2788
|
+
} else
|
|
2789
|
+
throw Ge;
|
|
2790
|
+
}
|
|
2791
|
+
return {
|
|
2792
|
+
mutate: ln,
|
|
2793
|
+
get data() {
|
|
2794
|
+
return ue.data = !0, Ke;
|
|
2795
|
+
},
|
|
2796
|
+
get error() {
|
|
2797
|
+
return ue.error = !0, Ge;
|
|
2798
|
+
},
|
|
2799
|
+
get isValidating() {
|
|
2800
|
+
return ue.isValidating = !0, go;
|
|
2801
|
+
},
|
|
2802
|
+
get isLoading() {
|
|
2803
|
+
return ue.isLoading = !0, vo;
|
|
2804
|
+
}
|
|
2805
|
+
};
|
|
2806
|
+
}, ci = ii(li), We = te({
|
|
2807
|
+
base: "block fr font-style-tag font-family-tag font-weight-tag",
|
|
2808
|
+
variants: {
|
|
2809
|
+
variant: {
|
|
2810
|
+
neutralWeak: "text-tag-neutral-weak-copy bg-tag-neutral-weak-bg border-solid border-px border-tag-neutral-weak-stroke",
|
|
2811
|
+
neutralStrong: "text-tag-neutral-strong-copy bg-tag-neutral-strong-bg border-solid border-px border-tag-neutral-strong-stroke",
|
|
2812
|
+
accentStrong: "text-tag-accent-strong-copy bg-tag-accent-strong-bg border-solid border-px border-tag-accent-strong-stroke",
|
|
2813
|
+
monetaryWeak: "text-tag-monetary-weak-copy bg-tag-monetary-weak-bg border-solid border-px border-tag-monetary-weak-stroke"
|
|
2814
|
+
},
|
|
2815
|
+
interactive: {
|
|
2816
|
+
true: "ease-expo-out rounded-interactive transition-all duration-snappy",
|
|
2817
|
+
false: "rounded-tag"
|
|
2818
|
+
},
|
|
2819
|
+
size: {
|
|
2820
|
+
xs: "px-2 py-0.5 text-style-tag",
|
|
2821
|
+
sm: "px-3 py-1.5 text-style-tag",
|
|
2822
|
+
lg: "px-5 py-2.5 text-style-tag",
|
|
2823
|
+
unsized: ""
|
|
2824
|
+
},
|
|
2825
|
+
disabled: {
|
|
2826
|
+
true: "opacity-25 pointer-events-none",
|
|
2827
|
+
false: ""
|
|
2828
|
+
}
|
|
2829
|
+
},
|
|
2830
|
+
compoundVariants: [{ disabled: !1, interactive: !0, class: "cursor-pointer active:scale-[0.975]" }],
|
|
2831
|
+
defaultVariants: {
|
|
2832
|
+
variant: "neutralWeak",
|
|
2833
|
+
size: "sm",
|
|
2834
|
+
disabled: !1,
|
|
2835
|
+
interactive: !1
|
|
2836
|
+
}
|
|
2837
|
+
}), ui = ({ query: e, property: t, selectedValues: n }) => {
|
|
2838
|
+
switch (e.queryState) {
|
|
2839
|
+
case "idle":
|
|
2840
|
+
case "error":
|
|
2841
|
+
case "loading":
|
|
2842
|
+
return null;
|
|
2843
|
+
case "loaded":
|
|
2844
|
+
case "revalidating": {
|
|
2845
|
+
const o = (e.data[t.key] ?? []).filter((a) => n.includes(a.value));
|
|
2846
|
+
switch (o.length) {
|
|
2847
|
+
case 0:
|
|
2848
|
+
return null;
|
|
2849
|
+
case 1: {
|
|
2850
|
+
const a = o[0];
|
|
2851
|
+
return wo(a), /* @__PURE__ */ u("span", { class: We({ size: "sm", variant: "accentStrong", interactive: !0, class: "truncate" }), children: a.label });
|
|
2852
|
+
}
|
|
2853
|
+
default:
|
|
2854
|
+
return /* @__PURE__ */ u(
|
|
2855
|
+
"span",
|
|
2856
|
+
{
|
|
2857
|
+
class: We({
|
|
2858
|
+
size: "sm",
|
|
2859
|
+
variant: "accentStrong",
|
|
2860
|
+
interactive: !0,
|
|
2861
|
+
class: "ijs-filter-current max-w-full truncate tabular-nums"
|
|
2862
|
+
}),
|
|
2863
|
+
children: o.length
|
|
2864
|
+
}
|
|
2865
|
+
);
|
|
2866
|
+
}
|
|
2867
|
+
}
|
|
2868
|
+
default:
|
|
2869
|
+
Qe(e);
|
|
2870
|
+
}
|
|
2871
|
+
}, di = 44, fi = 6, _i = 12, pi = 8, dt = te({
|
|
2872
|
+
base: "fr bg-lowest caret-accent-11 selection:bg-accent-4 selection:text-accent-12 placeholder:text-copy-neutral placeholder:opacity-30 ring-width-section ease-expo-out duration-snappy transition-all disabled:opacity-50 rounded-input font-style-input text-style-input font-weight-input",
|
|
2873
|
+
variants: {
|
|
2874
|
+
hasValue: {
|
|
2875
|
+
false: "text-copy-neutral ring-job-card-stroke",
|
|
2876
|
+
true: "text-interactive-accent-text ring-job-card-stroke"
|
|
2877
|
+
},
|
|
2878
|
+
size: {
|
|
2879
|
+
md: "py-2 px-4",
|
|
2880
|
+
unsized: ""
|
|
2881
|
+
}
|
|
2882
|
+
},
|
|
2883
|
+
defaultVariants: {
|
|
2884
|
+
size: "md",
|
|
2885
|
+
hasValue: !1
|
|
2886
|
+
}
|
|
2887
|
+
}), io = te({
|
|
2888
|
+
base: "gutter-stable pointer-fine:flex-wrap pointer-fine:p-2 pointer-fine:bg-app pointer-fine:rounded-section pointer-coarse:overflow-x-auto flex max-w-full overflow-y-auto px-4",
|
|
2889
|
+
variants: {
|
|
2890
|
+
type: {
|
|
2891
|
+
short: "gap-2 pointer-coarse:max-h-[var(--maxHeight)]",
|
|
2892
|
+
long: "pointer-fine:flex-nowrap items-stretch pointer-fine:flex-col overflow-y-auto max-h-[var(--maxHeight)]"
|
|
2893
|
+
},
|
|
2894
|
+
ring: {
|
|
2895
|
+
default: "pointer-fine:ring-width-section ring-section-weak-stroke",
|
|
2896
|
+
unset: ""
|
|
2897
|
+
}
|
|
2898
|
+
},
|
|
2899
|
+
defaultVariants: {
|
|
2900
|
+
type: "short",
|
|
2901
|
+
ring: "default"
|
|
2902
|
+
}
|
|
2903
|
+
}), so = te({
|
|
2904
|
+
base: "max-w-full origin-top group/tag ease-expo-out transition-all duration-snappy",
|
|
2905
|
+
variants: {
|
|
2906
|
+
type: {
|
|
2907
|
+
pill: "",
|
|
2908
|
+
line: "[&:not(:last-child)]:border-b-px border-neutral-2 has-[[data-current-value=true]]:border-b-accent-3"
|
|
2909
|
+
}
|
|
2910
|
+
}
|
|
2911
|
+
}), lo = te({
|
|
2912
|
+
base: "cursor-pointer flex fr gap-2 font-style-tag group-[&:first-child]/tag:rounded-t-tag group-[&:last-child]/tag:rounded-b-tag py-2.5 px-2.5 font-family-tag font-weight-tag text-style-tag focus:relative w-full justify-between",
|
|
2913
|
+
variants: {
|
|
2914
|
+
active: {
|
|
2915
|
+
true: "bg-accent-2 text-accent-11",
|
|
2916
|
+
false: "text-neutral-11"
|
|
2917
|
+
},
|
|
2918
|
+
disabled: {
|
|
2919
|
+
true: "opacity-25 pointer-events-none",
|
|
2920
|
+
false: ""
|
|
2921
|
+
}
|
|
2922
|
+
},
|
|
2923
|
+
compoundVariants: [
|
|
2924
|
+
{
|
|
2925
|
+
disabled: !1,
|
|
2926
|
+
active: !1,
|
|
2927
|
+
class: "hover:bg-neutral-2"
|
|
2928
|
+
}
|
|
2929
|
+
],
|
|
2930
|
+
defaultVariants: {
|
|
2931
|
+
disabled: !1,
|
|
2932
|
+
active: !1
|
|
2933
|
+
}
|
|
2934
|
+
}), hi = te({
|
|
2935
|
+
base: "rounded-job-tag inline-block px-1 border-solid border-px ease-expo-out transition-all duration-snappy",
|
|
2936
|
+
variants: {
|
|
2937
|
+
colorScheme: {
|
|
2938
|
+
accentStrong: "text-accent-11 bg-accent-4 border-tag-accent-strong-stroke",
|
|
2939
|
+
neutralStrong: "text-neutral-11 bg-neutral-2 border-tag-neutral-strong-stroke"
|
|
2940
|
+
}
|
|
2941
|
+
}
|
|
2942
|
+
}), yi = ({
|
|
2943
|
+
children: e,
|
|
2944
|
+
colorScheme: t
|
|
2945
|
+
}) => /* @__PURE__ */ u("span", { class: hi({ colorScheme: t }), children: /* @__PURE__ */ u("span", { class: "block w-[3ch] text-center tabular-nums", children: e }) }), gi = (e, t) => {
|
|
2946
|
+
const n = e.indexOf(t);
|
|
2947
|
+
return n === -1 ? [...e, t] : e.filter((r, o) => o !== n);
|
|
2948
|
+
}, qn = (e) => {
|
|
2949
|
+
var n;
|
|
2950
|
+
const t = Number((n = e.match(/\d/g)) == null ? void 0 : n.join(""));
|
|
2951
|
+
return Number.isNaN(t) ? 0 : t;
|
|
2952
|
+
}, vi = (e, t = {
|
|
2953
|
+
by: "results-count",
|
|
2954
|
+
order: "descending"
|
|
2955
|
+
}) => {
|
|
2956
|
+
const n = [...e];
|
|
2957
|
+
switch (t.by) {
|
|
2958
|
+
case "results-count":
|
|
2959
|
+
n.sort((r, o) => r.jobs - o.jobs);
|
|
2960
|
+
break;
|
|
2961
|
+
case "alphabetically":
|
|
2962
|
+
n.sort((r, o) => r.label.localeCompare(o.label));
|
|
2963
|
+
break;
|
|
2964
|
+
case "numerically":
|
|
2965
|
+
n.sort((r, o) => {
|
|
2966
|
+
const a = qn(r.value), s = qn(o.value);
|
|
2967
|
+
return a - s;
|
|
2968
|
+
});
|
|
2969
|
+
break;
|
|
2970
|
+
}
|
|
2971
|
+
return t.order === "descending" && n.reverse(), n;
|
|
2972
|
+
}, mi = (e, t) => {
|
|
2973
|
+
if (e === null)
|
|
2974
|
+
return !1;
|
|
2975
|
+
const n = e[t.value];
|
|
2976
|
+
return n === void 0 ? !0 : n === 0;
|
|
2977
|
+
}, bi = (e, t) => {
|
|
2978
|
+
const n = (r) => r > 99 ? "99+" : r.toString();
|
|
2979
|
+
return n(e === null ? t.jobs : e[t.value] ?? 0);
|
|
2980
|
+
}, Ei = ({
|
|
2981
|
+
value: e,
|
|
2982
|
+
property: t,
|
|
2983
|
+
onSkip: n,
|
|
2984
|
+
useQuery: r,
|
|
2985
|
+
onValueChange: o,
|
|
2986
|
+
unfilteredQuery: a,
|
|
2987
|
+
onRender: s
|
|
2988
|
+
}) => {
|
|
2989
|
+
const { t: l } = xe(), c = Sr(r()), d = be(() => {
|
|
2990
|
+
switch (c.queryState) {
|
|
2991
|
+
case "error":
|
|
2992
|
+
case "idle":
|
|
2993
|
+
case "loading":
|
|
2994
|
+
return null;
|
|
2995
|
+
case "loaded":
|
|
2996
|
+
case "revalidating": {
|
|
2997
|
+
const h = c.data[t.key] ?? [];
|
|
2998
|
+
return Object.fromEntries(h.map((C) => [C.value, C.jobs]));
|
|
2999
|
+
}
|
|
3000
|
+
default:
|
|
3001
|
+
Qe(c);
|
|
3002
|
+
}
|
|
3003
|
+
}, [c, t.key]), f = co(e), i = f.length > 0, [p, y] = j(), _ = _a("(pointer: coarse)");
|
|
3004
|
+
return ee(() => {
|
|
3005
|
+
s();
|
|
3006
|
+
}), c.queryState === "error" ? /* @__PURE__ */ u(
|
|
3007
|
+
Nn,
|
|
3008
|
+
{
|
|
3009
|
+
error: new Error(l("filters_loading_error"), { cause: c.error }),
|
|
3010
|
+
resetError: () => c.swr.mutate()
|
|
3011
|
+
}
|
|
3012
|
+
) : /* @__PURE__ */ u("div", { class: "animate-slide-in-bottom flex w-full flex-col gap-2 pt-1", children: [
|
|
3013
|
+
t.searchable && /* @__PURE__ */ u("div", { class: "top-0 px-4 py-1", children: /* @__PURE__ */ u(
|
|
3014
|
+
"input",
|
|
3015
|
+
{
|
|
3016
|
+
type: "search",
|
|
3017
|
+
class: dt(),
|
|
3018
|
+
value: p,
|
|
3019
|
+
onInput: (h) => y(h.currentTarget.value),
|
|
3020
|
+
placeholder: l("type_to_search")
|
|
3021
|
+
}
|
|
3022
|
+
) }),
|
|
3023
|
+
(() => {
|
|
3024
|
+
switch (a.queryState) {
|
|
3025
|
+
case "error":
|
|
3026
|
+
return /* @__PURE__ */ u(
|
|
3027
|
+
Nn,
|
|
3028
|
+
{
|
|
3029
|
+
error: new Error(l("filters_loading_error"), {
|
|
3030
|
+
cause: a.error
|
|
3031
|
+
}),
|
|
3032
|
+
resetError: () => a.swr.mutate()
|
|
3033
|
+
}
|
|
3034
|
+
);
|
|
3035
|
+
case "idle":
|
|
3036
|
+
case "loading":
|
|
3037
|
+
return /* @__PURE__ */ u("div", { class: "flex px-4", children: /* @__PURE__ */ u(
|
|
3038
|
+
"div",
|
|
3039
|
+
{
|
|
3040
|
+
"aria-hidden": !0,
|
|
3041
|
+
class: We({
|
|
3042
|
+
size: "lg",
|
|
3043
|
+
variant: "neutralStrong",
|
|
3044
|
+
interactive: !0,
|
|
3045
|
+
class: "animate-skeleton cursor-default opacity-20 active:-scale-100"
|
|
3046
|
+
}),
|
|
3047
|
+
children: /* @__PURE__ */ u("span", { class: "inline-block w-[10ch]" })
|
|
3048
|
+
}
|
|
3049
|
+
) });
|
|
3050
|
+
case "revalidating":
|
|
3051
|
+
case "loaded": {
|
|
3052
|
+
const h = a.data[t.key] ?? [], C = p && p.length > 1 ? h.filter((b) => b.label.toLowerCase().includes(p.toLowerCase())) : h, g = [];
|
|
3053
|
+
for (const b of C) {
|
|
3054
|
+
if (b.label.length < 1)
|
|
3055
|
+
continue;
|
|
3056
|
+
const m = {
|
|
3057
|
+
...b,
|
|
3058
|
+
results: bi(d, b),
|
|
3059
|
+
disabled: mi(d, b)
|
|
3060
|
+
};
|
|
3061
|
+
switch (t.results) {
|
|
3062
|
+
case "only-available":
|
|
3063
|
+
m.disabled === !1 && g.push(m);
|
|
3064
|
+
break;
|
|
3065
|
+
default:
|
|
3066
|
+
g.push(m);
|
|
3067
|
+
}
|
|
3068
|
+
}
|
|
3069
|
+
if (!g.find((b) => !b.disabled))
|
|
3070
|
+
return /* @__PURE__ */ u("p", { class: "font-style-tag text-style-tag font-weight-tag border-px w-full border-transparent px-4 py-2 text-center", children: l("no_filter_options_available") });
|
|
3071
|
+
const v = (h.length > _i || h.some((b) => b.label.length > 24)) && !_;
|
|
3072
|
+
return /* @__PURE__ */ u("div", { class: "pointer-fine:px-4", children: /* @__PURE__ */ u(
|
|
3073
|
+
"ul",
|
|
3074
|
+
{
|
|
3075
|
+
style: {
|
|
3076
|
+
"--maxHeight": `${di * (fi + 0.5) + 2 * pi}px`
|
|
3077
|
+
},
|
|
3078
|
+
class: io({
|
|
3079
|
+
type: v ? "long" : "short"
|
|
3080
|
+
}),
|
|
3081
|
+
children: vi(g, t.sortSuggestions).map((b) => {
|
|
3082
|
+
const m = f.includes(b.value);
|
|
3083
|
+
return /* @__PURE__ */ u(
|
|
3084
|
+
"li",
|
|
3085
|
+
{
|
|
3086
|
+
class: so({
|
|
3087
|
+
type: v ? "line" : "pill"
|
|
3088
|
+
}),
|
|
3089
|
+
children: /* @__PURE__ */ u(
|
|
3090
|
+
"button",
|
|
3091
|
+
{
|
|
3092
|
+
type: "button",
|
|
3093
|
+
disabled: b.disabled,
|
|
3094
|
+
"data-filter": !0,
|
|
3095
|
+
"data-current-value": m ? "true" : void 0,
|
|
3096
|
+
onClick: () => {
|
|
3097
|
+
switch (e.select) {
|
|
3098
|
+
case "many": {
|
|
3099
|
+
const k = gi(f, b.value);
|
|
3100
|
+
o({
|
|
3101
|
+
select: "many",
|
|
3102
|
+
value: k
|
|
3103
|
+
});
|
|
3104
|
+
break;
|
|
3105
|
+
}
|
|
3106
|
+
case "one":
|
|
3107
|
+
o({
|
|
3108
|
+
select: "one",
|
|
3109
|
+
value: b.value
|
|
3110
|
+
});
|
|
3111
|
+
break;
|
|
3112
|
+
default:
|
|
3113
|
+
Qe(e);
|
|
3114
|
+
}
|
|
3115
|
+
},
|
|
3116
|
+
class: v ? lo({
|
|
3117
|
+
active: m,
|
|
3118
|
+
disabled: b.disabled
|
|
3119
|
+
}) : We({
|
|
3120
|
+
size: "lg",
|
|
3121
|
+
variant: m ? "accentStrong" : "neutralStrong",
|
|
3122
|
+
interactive: !0,
|
|
3123
|
+
disabled: b.disabled,
|
|
3124
|
+
class: "ijs-filter-tag flex max-w-full gap-3 overflow-hidden pr-2.5"
|
|
3125
|
+
}),
|
|
3126
|
+
children: [
|
|
3127
|
+
/* @__PURE__ */ u("span", { class: "max-w-full truncate", children: b.label }),
|
|
3128
|
+
" ",
|
|
3129
|
+
/* @__PURE__ */ u(yi, { colorScheme: m ? "accentStrong" : "neutralStrong", children: b.results })
|
|
3130
|
+
]
|
|
3131
|
+
}
|
|
3132
|
+
)
|
|
3133
|
+
},
|
|
3134
|
+
b.value
|
|
3135
|
+
);
|
|
3136
|
+
})
|
|
3137
|
+
}
|
|
3138
|
+
) });
|
|
3139
|
+
}
|
|
3140
|
+
default:
|
|
3141
|
+
Qe(a);
|
|
3142
|
+
}
|
|
3143
|
+
})(),
|
|
3144
|
+
/* @__PURE__ */ u("footer", { class: "flex justify-end p-2", children: [
|
|
3145
|
+
/* @__PURE__ */ u("div", { class: "flex-1", children: i && /* @__PURE__ */ u(
|
|
3146
|
+
"button",
|
|
3147
|
+
{
|
|
3148
|
+
type: "button",
|
|
3149
|
+
class: Ue({ variant: "neutral", icon: "left" }),
|
|
3150
|
+
onClick: () => {
|
|
3151
|
+
o(void 0);
|
|
3152
|
+
},
|
|
3153
|
+
children: [
|
|
3154
|
+
/* @__PURE__ */ u(ye, { "aria-hidden": !0, name: "x" }),
|
|
3155
|
+
" ",
|
|
3156
|
+
l("clear")
|
|
3157
|
+
]
|
|
3158
|
+
}
|
|
3159
|
+
) }),
|
|
3160
|
+
e.select === "many" && /* @__PURE__ */ u("div", { class: "flex items-center overflow-hidden", children: /* @__PURE__ */ u("p", { class: "font-style-default text-style-tag font-weight-default flex-grow select-none truncate text-center", children: [
|
|
3161
|
+
f.length,
|
|
3162
|
+
" ",
|
|
3163
|
+
l("selected")
|
|
3164
|
+
] }) }),
|
|
3165
|
+
/* @__PURE__ */ u("div", { class: "flex-1", children: /* @__PURE__ */ u(
|
|
3166
|
+
"button",
|
|
3167
|
+
{
|
|
3168
|
+
type: "button",
|
|
3169
|
+
class: Ue({
|
|
3170
|
+
variant: i ? "accent" : "neutral",
|
|
3171
|
+
icon: "right",
|
|
3172
|
+
class: "ml-auto"
|
|
3173
|
+
}),
|
|
3174
|
+
onClick: n,
|
|
3175
|
+
children: [
|
|
3176
|
+
l(i ? "done" : "skip"),
|
|
3177
|
+
" ",
|
|
3178
|
+
/* @__PURE__ */ u(ye, { name: "chevron-right" })
|
|
3179
|
+
]
|
|
3180
|
+
},
|
|
3181
|
+
i ? "done" : "skip"
|
|
3182
|
+
) })
|
|
3183
|
+
] })
|
|
3184
|
+
] });
|
|
3185
|
+
}, Gn = {
|
|
3186
|
+
contract_type: "clock",
|
|
3187
|
+
title: "magnifier",
|
|
3188
|
+
city: "mapPin",
|
|
3189
|
+
town: "mapPin",
|
|
3190
|
+
country: "mapPin",
|
|
3191
|
+
company_name: "briefcase",
|
|
3192
|
+
category: "briefcase",
|
|
3193
|
+
pay: "pay",
|
|
3194
|
+
pay_currency: "pay",
|
|
3195
|
+
pay_mask: "pay",
|
|
3196
|
+
pay_display: "pay",
|
|
3197
|
+
pay_max: "pay",
|
|
3198
|
+
pay_min: "pay",
|
|
3199
|
+
pay_type: "pay"
|
|
3200
|
+
}, wi = te({
|
|
3201
|
+
base: "group ijs-filter flex min-w-0 fr overflow-hidden rounded-section text-copy-neutral-lowcontrast ring-width-section transition-all duration-medium ease-expo-out fr-parent [&:has(.fr-child:active)]:scale-[0.975] origin-[50%_1.75rem]",
|
|
3202
|
+
variants: {
|
|
3203
|
+
hasValue: {
|
|
3204
|
+
false: "bg-section-weak-bg ring-section-weak-stroke",
|
|
3205
|
+
true: "bg-section-strong-bg ring-section-strong-stroke"
|
|
3206
|
+
}
|
|
3207
|
+
}
|
|
3208
|
+
}), Si = te({
|
|
3209
|
+
base: "font-style-filter font-family-filter font-weight-filter text-style-filter truncate duration-snappy outline-none",
|
|
3210
|
+
variants: {
|
|
3211
|
+
state: {
|
|
3212
|
+
default: "text-copy-neutral-lowcontrast pointer-fine:group-hover:text-copy-neutral",
|
|
3213
|
+
filled: "text-copy-neutral",
|
|
3214
|
+
active: "text-copy-neutral"
|
|
3215
|
+
}
|
|
3216
|
+
}
|
|
3217
|
+
}), Ci = te({
|
|
3218
|
+
base: "flex-none text-copy-neutral-icon pointer-fine:group-hover:text-copy-neutral duration-snappy ease-expo-out"
|
|
3219
|
+
}), xi = (e) => {
|
|
3220
|
+
const t = q(null), [n, r] = j(0), o = () => {
|
|
3221
|
+
var a;
|
|
3222
|
+
return r(((a = t.current) == null ? void 0 : a.clientHeight) ?? 0);
|
|
3223
|
+
};
|
|
3224
|
+
return Ce(() => (o(), window.addEventListener("resize", o), () => window.removeEventListener("resize", o)), e), { height: n, ref: t, updateHeight: o };
|
|
3225
|
+
}, co = (e) => typeof e.value == "string" ? [e.value] : e.value ?? [], tl = ({
|
|
3226
|
+
active: e,
|
|
3227
|
+
value: t,
|
|
3228
|
+
onActiveChange: n,
|
|
3229
|
+
property: r,
|
|
3230
|
+
onSkip: o,
|
|
3231
|
+
onValueChange: a,
|
|
3232
|
+
unfilteredQuery: s,
|
|
3233
|
+
useQuery: l
|
|
3234
|
+
}) => {
|
|
3235
|
+
const c = So(r.key, Gn) ? Gn[r.key] : void 0, d = r.icon ?? c ?? "filter", f = co(t), { height: i, ref: p, updateHeight: y } = xi([e]), _ = f.length > 0;
|
|
3236
|
+
return /* @__PURE__ */ u(
|
|
3237
|
+
"section",
|
|
3238
|
+
{
|
|
3239
|
+
"data-filter-key": r.key,
|
|
3240
|
+
"aria-label": r.label,
|
|
3241
|
+
"aria-selected": e ? "true" : void 0,
|
|
3242
|
+
class: wi({ hasValue: _ }),
|
|
3243
|
+
onTouchStart: Ti,
|
|
3244
|
+
children: [
|
|
3245
|
+
/* @__PURE__ */ u("div", { class: "min-w-0 max-w-full shrink-0 flex-grow", children: [
|
|
3246
|
+
/* @__PURE__ */ u(
|
|
3247
|
+
"button",
|
|
3248
|
+
{
|
|
3249
|
+
"aria-label": e ? "Close filter" : "Open filter",
|
|
3250
|
+
class: Si({
|
|
3251
|
+
state: e ? "active" : _ ? "filled" : "default",
|
|
3252
|
+
class: "ijs-filter-heading rounded-section fr-child flex w-full cursor-pointer select-none items-center gap-2 py-4 pl-4"
|
|
3253
|
+
}),
|
|
3254
|
+
onClick: () => n(!e),
|
|
3255
|
+
children: [
|
|
3256
|
+
/* @__PURE__ */ u(ye, { "aria-hidden": !0, class: "flex-none", name: d }),
|
|
3257
|
+
/* @__PURE__ */ u("p", { children: r.label })
|
|
3258
|
+
]
|
|
3259
|
+
}
|
|
3260
|
+
),
|
|
3261
|
+
/* @__PURE__ */ u("div", { class: "ease-expo-out duration-snappy relative overflow-hidden transition-all", style: { height: i }, children: /* @__PURE__ */ u("div", { class: "w-full", ref: p, children: e && /* @__PURE__ */ u(
|
|
3262
|
+
Ei,
|
|
3263
|
+
{
|
|
3264
|
+
useQuery: l,
|
|
3265
|
+
onRender: y,
|
|
3266
|
+
onSkip: o,
|
|
3267
|
+
onValueChange: a,
|
|
3268
|
+
unfilteredQuery: s,
|
|
3269
|
+
property: r,
|
|
3270
|
+
value: t
|
|
3271
|
+
}
|
|
3272
|
+
) }) })
|
|
3273
|
+
] }),
|
|
3274
|
+
!e && /* @__PURE__ */ u(
|
|
3275
|
+
"button",
|
|
3276
|
+
{
|
|
3277
|
+
tabIndex: -1,
|
|
3278
|
+
class: "fr-child flex flex-shrink flex-grow cursor-pointer select-none items-center justify-end gap-2 overflow-hidden pl-2 pr-3 focus:outline-none",
|
|
3279
|
+
onClick: () => n(!0),
|
|
3280
|
+
children: [
|
|
3281
|
+
/* @__PURE__ */ u("div", { "aria-label": "Current value", class: "flex max-w-full gap-1 overflow-hidden", children: /* @__PURE__ */ u(ui, { property: r, query: s, selectedValues: f }) }),
|
|
3282
|
+
/* @__PURE__ */ u(ye, { "aria-hidden": !0, class: Ci(), name: "chevron-right" })
|
|
3283
|
+
]
|
|
3284
|
+
}
|
|
3285
|
+
)
|
|
3286
|
+
]
|
|
3188
3287
|
}
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3288
|
+
);
|
|
3289
|
+
};
|
|
3290
|
+
function Ti() {
|
|
3291
|
+
}
|
|
3292
|
+
function ki(e) {
|
|
3293
|
+
var t = typeof e;
|
|
3294
|
+
return e != null && (t == "object" || t == "function");
|
|
3295
|
+
}
|
|
3296
|
+
var uo = ki, Oi = typeof Ze == "object" && Ze && Ze.Object === Object && Ze, Ri = Oi, Li = Ri, Ni = typeof self == "object" && self && self.Object === Object && self, Di = Li || Ni || Function("return this")(), fo = Di, Ai = fo, Ii = function() {
|
|
3297
|
+
return Ai.Date.now();
|
|
3298
|
+
}, Mi = Ii, Pi = /\s/;
|
|
3299
|
+
function ji(e) {
|
|
3300
|
+
for (var t = e.length; t-- && Pi.test(e.charAt(t)); )
|
|
3301
|
+
;
|
|
3302
|
+
return t;
|
|
3303
|
+
}
|
|
3304
|
+
var Vi = ji, $i = Vi, Ui = /^\s+/;
|
|
3305
|
+
function Hi(e) {
|
|
3306
|
+
return e && e.slice(0, $i(e) + 1).replace(Ui, "");
|
|
3307
|
+
}
|
|
3308
|
+
var Fi = Hi, Wi = fo, zi = Wi.Symbol, _o = zi, Kn = _o, po = Object.prototype, Bi = po.hasOwnProperty, qi = po.toString, Me = Kn ? Kn.toStringTag : void 0;
|
|
3309
|
+
function Gi(e) {
|
|
3310
|
+
var t = Bi.call(e, Me), n = e[Me];
|
|
3311
|
+
try {
|
|
3312
|
+
e[Me] = void 0;
|
|
3313
|
+
var r = !0;
|
|
3314
|
+
} catch {
|
|
3315
|
+
}
|
|
3316
|
+
var o = qi.call(e);
|
|
3317
|
+
return r && (t ? e[Me] = n : delete e[Me]), o;
|
|
3318
|
+
}
|
|
3319
|
+
var Ki = Gi, Zi = Object.prototype, Yi = Zi.toString;
|
|
3320
|
+
function Ji(e) {
|
|
3321
|
+
return Yi.call(e);
|
|
3322
|
+
}
|
|
3323
|
+
var Qi = Ji, Zn = _o, Xi = Ki, es = Qi, ts = "[object Null]", ns = "[object Undefined]", Yn = Zn ? Zn.toStringTag : void 0;
|
|
3324
|
+
function rs(e) {
|
|
3325
|
+
return e == null ? e === void 0 ? ns : ts : Yn && Yn in Object(e) ? Xi(e) : es(e);
|
|
3326
|
+
}
|
|
3327
|
+
var os = rs;
|
|
3328
|
+
function as(e) {
|
|
3329
|
+
return e != null && typeof e == "object";
|
|
3330
|
+
}
|
|
3331
|
+
var is = as, ss = os, ls = is, cs = "[object Symbol]";
|
|
3332
|
+
function us(e) {
|
|
3333
|
+
return typeof e == "symbol" || ls(e) && ss(e) == cs;
|
|
3334
|
+
}
|
|
3335
|
+
var ds = us, fs = Fi, Jn = uo, _s = ds, Qn = 0 / 0, ps = /^[-+]0x[0-9a-f]+$/i, hs = /^0b[01]+$/i, ys = /^0o[0-7]+$/i, gs = parseInt;
|
|
3336
|
+
function vs(e) {
|
|
3337
|
+
if (typeof e == "number")
|
|
3338
|
+
return e;
|
|
3339
|
+
if (_s(e))
|
|
3340
|
+
return Qn;
|
|
3341
|
+
if (Jn(e)) {
|
|
3342
|
+
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
3343
|
+
e = Jn(t) ? t + "" : t;
|
|
3344
|
+
}
|
|
3345
|
+
if (typeof e != "string")
|
|
3346
|
+
return e === 0 ? e : +e;
|
|
3347
|
+
e = fs(e);
|
|
3348
|
+
var n = hs.test(e);
|
|
3349
|
+
return n || ys.test(e) ? gs(e.slice(2), n ? 2 : 8) : ps.test(e) ? Qn : +e;
|
|
3350
|
+
}
|
|
3351
|
+
var ms = vs, bs = uo, kt = Mi, Xn = ms, Es = "Expected a function", ws = Math.max, Ss = Math.min;
|
|
3352
|
+
function Cs(e, t, n) {
|
|
3353
|
+
var r, o, a, s, l, c, d = 0, f = !1, i = !1, p = !0;
|
|
3354
|
+
if (typeof e != "function")
|
|
3355
|
+
throw new TypeError(Es);
|
|
3356
|
+
t = Xn(t) || 0, bs(n) && (f = !!n.leading, i = "maxWait" in n, a = i ? ws(Xn(n.maxWait) || 0, t) : a, p = "trailing" in n ? !!n.trailing : p);
|
|
3357
|
+
function y(m) {
|
|
3358
|
+
var k = r, x = o;
|
|
3359
|
+
return r = o = void 0, d = m, s = e.apply(x, k), s;
|
|
3360
|
+
}
|
|
3361
|
+
function _(m) {
|
|
3362
|
+
return d = m, l = setTimeout(g, t), f ? y(m) : s;
|
|
3363
|
+
}
|
|
3364
|
+
function h(m) {
|
|
3365
|
+
var k = m - c, x = m - d, T = t - k;
|
|
3366
|
+
return i ? Ss(T, a - x) : T;
|
|
3367
|
+
}
|
|
3368
|
+
function C(m) {
|
|
3369
|
+
var k = m - c, x = m - d;
|
|
3370
|
+
return c === void 0 || k >= t || k < 0 || i && x >= a;
|
|
3371
|
+
}
|
|
3372
|
+
function g() {
|
|
3373
|
+
var m = kt();
|
|
3374
|
+
if (C(m))
|
|
3375
|
+
return E(m);
|
|
3376
|
+
l = setTimeout(g, h(m));
|
|
3377
|
+
}
|
|
3378
|
+
function E(m) {
|
|
3379
|
+
return l = void 0, p && r ? y(m) : (r = o = void 0, s);
|
|
3380
|
+
}
|
|
3381
|
+
function S() {
|
|
3382
|
+
l !== void 0 && clearTimeout(l), d = 0, r = c = o = l = void 0;
|
|
3383
|
+
}
|
|
3384
|
+
function v() {
|
|
3385
|
+
return l === void 0 ? s : E(kt());
|
|
3386
|
+
}
|
|
3387
|
+
function b() {
|
|
3388
|
+
var m = kt(), k = C(m);
|
|
3389
|
+
if (r = arguments, o = this, c = m, k) {
|
|
3390
|
+
if (l === void 0)
|
|
3391
|
+
return _(c);
|
|
3392
|
+
if (i)
|
|
3393
|
+
return clearTimeout(l), l = setTimeout(g, t), y(c);
|
|
3205
3394
|
}
|
|
3206
|
-
|
|
3207
|
-
const A = Ae(kt);
|
|
3208
|
-
R(Ke) || (A.status = "fulfilled", A.value = !0), Qn(A);
|
|
3209
|
-
} else
|
|
3210
|
-
throw Ge;
|
|
3395
|
+
return l === void 0 && (l = setTimeout(g, t)), s;
|
|
3211
3396
|
}
|
|
3212
|
-
return
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
get isLoading() {
|
|
3224
|
-
return ue.isLoading = !0, vo;
|
|
3397
|
+
return b.cancel = S, b.flush = v, b;
|
|
3398
|
+
}
|
|
3399
|
+
var xs = Cs;
|
|
3400
|
+
const Ts = /* @__PURE__ */ Ra(xs), nl = (e, t) => {
|
|
3401
|
+
const n = structuredClone(e);
|
|
3402
|
+
return n.forEach((r) => {
|
|
3403
|
+
if (t.has(r.key)) {
|
|
3404
|
+
const o = t.get(r.key);
|
|
3405
|
+
if (!o)
|
|
3406
|
+
return;
|
|
3407
|
+
r.defaultValue = o.includes(",") ? o.split(",") : o;
|
|
3225
3408
|
}
|
|
3409
|
+
}), n;
|
|
3410
|
+
}, rl = (e) => {
|
|
3411
|
+
const t = e.get("lat"), n = e.get("lng"), r = e.get("radius");
|
|
3412
|
+
return {
|
|
3413
|
+
type: "provided",
|
|
3414
|
+
coords: t && n ? { lat: Number(t), lng: Number(n) } : void 0,
|
|
3415
|
+
radius: r ? Number(r) : Ut(ho)
|
|
3226
3416
|
};
|
|
3227
|
-
},
|
|
3417
|
+
}, ks = (e, t = 1e3) => {
|
|
3418
|
+
const [n, r] = j(e), o = be(() => Ts((a) => r(a), t), [t]);
|
|
3419
|
+
return ee(() => {
|
|
3420
|
+
o(e);
|
|
3421
|
+
}, [e, o]), n;
|
|
3422
|
+
}, Os = Zt(
|
|
3228
3423
|
({
|
|
3229
3424
|
disabled: e,
|
|
3230
3425
|
error: t,
|
|
@@ -3257,7 +3452,7 @@ const Qn = ut.use || ((e) => {
|
|
|
3257
3452
|
"data-active": y ? "true" : void 0,
|
|
3258
3453
|
"aria-controls": `ijs-${n}-menu`,
|
|
3259
3454
|
placeholder: r,
|
|
3260
|
-
class:
|
|
3455
|
+
class: dt({ size: "md" }),
|
|
3261
3456
|
onFocus: () => {
|
|
3262
3457
|
c == null || c(), _(!0);
|
|
3263
3458
|
},
|
|
@@ -3296,7 +3491,7 @@ const Qn = ut.use || ((e) => {
|
|
|
3296
3491
|
!t && y && !e && o.length > 0 ? /* @__PURE__ */ u(
|
|
3297
3492
|
"ul",
|
|
3298
3493
|
{
|
|
3299
|
-
className:
|
|
3494
|
+
className: io({
|
|
3300
3495
|
type: "long",
|
|
3301
3496
|
ring: "unset",
|
|
3302
3497
|
className: "ring-width-section ring-job-card-stroke absolute left-0 right-0 top-12 z-50 w-full shadow-sm"
|
|
@@ -3309,7 +3504,7 @@ const Qn = ut.use || ((e) => {
|
|
|
3309
3504
|
children: t ? /* @__PURE__ */ u("div", { role: "alert", children: g("geo_suggestions_error") }) : o.map((v) => /* @__PURE__ */ u(
|
|
3310
3505
|
"li",
|
|
3311
3506
|
{
|
|
3312
|
-
class:
|
|
3507
|
+
class: so({
|
|
3313
3508
|
type: "line",
|
|
3314
3509
|
className: "group/tag"
|
|
3315
3510
|
}),
|
|
@@ -3318,7 +3513,7 @@ const Qn = ut.use || ((e) => {
|
|
|
3318
3513
|
{
|
|
3319
3514
|
type: "button",
|
|
3320
3515
|
onMouseEnter: () => C(v.id),
|
|
3321
|
-
class:
|
|
3516
|
+
class: lo({
|
|
3322
3517
|
active: v.id === h,
|
|
3323
3518
|
className: "line-clamp-1 overflow-hidden truncate"
|
|
3324
3519
|
}),
|
|
@@ -3336,7 +3531,7 @@ const Qn = ut.use || ((e) => {
|
|
|
3336
3531
|
) : null
|
|
3337
3532
|
] });
|
|
3338
3533
|
}
|
|
3339
|
-
),
|
|
3534
|
+
), Rs = (e = {}) => new Promise((t, n) => {
|
|
3340
3535
|
var r, o;
|
|
3341
3536
|
if ((r = e.signal) != null && r.aborted) {
|
|
3342
3537
|
n(new DOMException("Aborted", "AbortError"));
|
|
@@ -3353,11 +3548,11 @@ const Qn = ut.use || ((e) => {
|
|
|
3353
3548
|
},
|
|
3354
3549
|
{ once: !0 }
|
|
3355
3550
|
);
|
|
3356
|
-
}),
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
},
|
|
3551
|
+
}), Ls = {
|
|
3552
|
+
1: "geo_error_permission_denied",
|
|
3553
|
+
2: "geo_error_position_unavailable",
|
|
3554
|
+
3: "geo_error_timeout"
|
|
3555
|
+
}, er = typeof window < "u" && "geolocation" in navigator && window.isSecureContext, Ns = ({
|
|
3361
3556
|
onLocate: e,
|
|
3362
3557
|
onError: t,
|
|
3363
3558
|
signal: n
|
|
@@ -3371,17 +3566,17 @@ const Qn = ut.use || ((e) => {
|
|
|
3371
3566
|
"aria-label": l(r === "loading" ? "geo_locating" : "geo_my_location"),
|
|
3372
3567
|
type: "button",
|
|
3373
3568
|
onClick: () => {
|
|
3374
|
-
if (
|
|
3569
|
+
if (er) {
|
|
3375
3570
|
if (o("loading"), a)
|
|
3376
3571
|
return c(a);
|
|
3377
|
-
|
|
3572
|
+
Rs({ signal: n }).then((d) => {
|
|
3378
3573
|
const f = { lat: d.latitude, lng: d.longitude };
|
|
3379
3574
|
c(f);
|
|
3380
3575
|
}).catch((d) => {
|
|
3381
3576
|
if (console.log(d), d instanceof DOMException && d.name === "AbortError")
|
|
3382
3577
|
return o("idle");
|
|
3383
3578
|
o("error");
|
|
3384
|
-
const f =
|
|
3579
|
+
const f = Ls[d.code];
|
|
3385
3580
|
if (!f)
|
|
3386
3581
|
return;
|
|
3387
3582
|
const i = l(f);
|
|
@@ -3396,18 +3591,18 @@ const Qn = ut.use || ((e) => {
|
|
|
3396
3591
|
icon: "only",
|
|
3397
3592
|
className: "data-[state=loading]:animate-pulse"
|
|
3398
3593
|
}),
|
|
3399
|
-
disabled: !
|
|
3594
|
+
disabled: !er || r === "error",
|
|
3400
3595
|
children: /* @__PURE__ */ u(ye, { name: "target-location" })
|
|
3401
3596
|
}
|
|
3402
3597
|
);
|
|
3403
|
-
},
|
|
3598
|
+
}, Ds = "https://api.mapbox.com/search/geocode/v6/forward", As = "ZzRDWFU0dTZ3SF9aWk9RNGl6QzZaWS5RZmlFak13a0hPbGxXZXlNSGN5RUhObUJ6TXpSV08yUW5OdE5tSTZJU1lpd2lJb1JYYXRObmJ2Tm5iaGhHZWx4V1lpb2pJMUp5ZS5rcA==", Is = (e) => atob(e).split("").reverse().join(""), Ms = se({
|
|
3404
3599
|
features: Wt(
|
|
3405
3600
|
_e(
|
|
3406
3601
|
se({
|
|
3407
3602
|
properties: se({
|
|
3408
|
-
mapbox_id:
|
|
3409
|
-
place_formatted: fe(
|
|
3410
|
-
name_preferred: fe(
|
|
3603
|
+
mapbox_id: L(),
|
|
3604
|
+
place_formatted: fe(L()),
|
|
3605
|
+
name_preferred: fe(L(), "Untitled location"),
|
|
3411
3606
|
coordinates: _e(
|
|
3412
3607
|
se({
|
|
3413
3608
|
latitude: de(),
|
|
@@ -3420,31 +3615,31 @@ const Qn = ut.use || ((e) => {
|
|
|
3420
3615
|
(e) => e.properties
|
|
3421
3616
|
)
|
|
3422
3617
|
)
|
|
3423
|
-
}),
|
|
3618
|
+
}), Ps = (e, t) => Array.from(new Map(e.map((n) => [typeof t == "function" ? t(n) : n[t], n])).values()), js = async (e) => {
|
|
3424
3619
|
if (!e)
|
|
3425
3620
|
return [];
|
|
3426
|
-
const t = new URL(
|
|
3427
|
-
t.searchParams.set("q", e), t.searchParams.set("proximity", "ip"), t.searchParams.set("access_token",
|
|
3621
|
+
const t = new URL(Ds);
|
|
3622
|
+
t.searchParams.set("q", e), t.searchParams.set("proximity", "ip"), t.searchParams.set("access_token", Is(As));
|
|
3428
3623
|
const n = await fetch(t);
|
|
3429
3624
|
if (!n.ok)
|
|
3430
3625
|
throw new Error("Failed to get address details");
|
|
3431
|
-
const r = zt(
|
|
3626
|
+
const r = zt(Ms, await n.json());
|
|
3432
3627
|
if (r.success === !1)
|
|
3433
3628
|
throw console.error(r.issues), new Error("Invalid data");
|
|
3434
3629
|
const { features: o } = r.output;
|
|
3435
|
-
return
|
|
3436
|
-
},
|
|
3630
|
+
return Ps(o, (a) => a.name_preferred + a.place_formatted);
|
|
3631
|
+
}, Vs = ({
|
|
3437
3632
|
onSelect: e,
|
|
3438
3633
|
onValueChange: t,
|
|
3439
3634
|
coords: n,
|
|
3440
3635
|
radius: r,
|
|
3441
3636
|
onError: o
|
|
3442
3637
|
}) => {
|
|
3443
|
-
const { t: a } = xe(), [s, l] = j(""), [c, d] = j(), f =
|
|
3638
|
+
const { t: a } = xe(), [s, l] = j(""), [c, d] = j(), f = ks(s, 500), [i, p] = j(new AbortController()), y = ci(f, js, {
|
|
3444
3639
|
keepPreviousData: !1,
|
|
3445
3640
|
revalidateIfStale: !1,
|
|
3446
3641
|
revalidateOnFocus: !1
|
|
3447
|
-
}), { data: _, queryState: h, error: C } =
|
|
3642
|
+
}), { data: _, queryState: h, error: C } = Sr(y), [g, E] = j("view"), S = q(null);
|
|
3448
3643
|
return ee(() => {
|
|
3449
3644
|
if (g === "edit") {
|
|
3450
3645
|
if (!S.current)
|
|
@@ -3457,17 +3652,17 @@ const Qn = ut.use || ((e) => {
|
|
|
3457
3652
|
{
|
|
3458
3653
|
"aria-label": a("geo_search_placeholder"),
|
|
3459
3654
|
type: "button",
|
|
3460
|
-
class:
|
|
3655
|
+
class: dt({
|
|
3461
3656
|
size: "unsized",
|
|
3462
3657
|
className: "flex h-10 w-full cursor-text items-stretch px-1 py-1"
|
|
3463
3658
|
}),
|
|
3464
3659
|
onClick: () => {
|
|
3465
3660
|
E("edit");
|
|
3466
3661
|
},
|
|
3467
|
-
children: /* @__PURE__ */ u("div", { class:
|
|
3662
|
+
children: /* @__PURE__ */ u("div", { class: We({ size: "sm", variant: "accentStrong", interactive: !0, class: "truncate" }), children: c ?? a("location_provided") })
|
|
3468
3663
|
}
|
|
3469
3664
|
) : /* @__PURE__ */ u(
|
|
3470
|
-
|
|
3665
|
+
Os,
|
|
3471
3666
|
{
|
|
3472
3667
|
ref: S,
|
|
3473
3668
|
error: C,
|
|
@@ -3498,7 +3693,7 @@ const Qn = ut.use || ((e) => {
|
|
|
3498
3693
|
}
|
|
3499
3694
|
),
|
|
3500
3695
|
/* @__PURE__ */ u("div", { class: "absolute bottom-0 right-0 top-0 flex items-center", children: !s && !n ? /* @__PURE__ */ u(
|
|
3501
|
-
|
|
3696
|
+
Ns,
|
|
3502
3697
|
{
|
|
3503
3698
|
onLocate: (v) => {
|
|
3504
3699
|
E("view"), d(a("geo_my_location")), t({
|
|
@@ -3527,37 +3722,37 @@ const Qn = ut.use || ((e) => {
|
|
|
3527
3722
|
}
|
|
3528
3723
|
) })
|
|
3529
3724
|
] });
|
|
3530
|
-
},
|
|
3725
|
+
}, $s = [0.25, 0.5, 1, 3, 5, 10, 15, 20, 30, 40], ho = 20, Ut = (e) => e * 1609.34, Us = new Intl.NumberFormat(void 0, {
|
|
3531
3726
|
style: "unit",
|
|
3532
3727
|
unit: "mile",
|
|
3533
3728
|
unitDisplay: "long",
|
|
3534
3729
|
maximumFractionDigits: 1,
|
|
3535
3730
|
// @ts-expect-error - CI/CD is not happy with this, though locally it works
|
|
3536
3731
|
trailingZeroDisplay: "stripIfInteger"
|
|
3537
|
-
}),
|
|
3732
|
+
}), Hs = _e(
|
|
3538
3733
|
se({
|
|
3539
3734
|
type: oe("provided"),
|
|
3540
|
-
lat: fe(_e(
|
|
3541
|
-
lng: fe(_e(
|
|
3542
|
-
radius: _e(
|
|
3735
|
+
lat: fe(_e(L(), (e) => Number(e))),
|
|
3736
|
+
lng: fe(_e(L(), (e) => Number(e))),
|
|
3737
|
+
radius: _e(L(), (e) => Number(e))
|
|
3543
3738
|
}),
|
|
3544
3739
|
(e) => ({
|
|
3545
3740
|
radius: e.radius,
|
|
3546
3741
|
type: e.type,
|
|
3547
3742
|
coords: e.lat && e.lng ? { lat: e.lat, lng: e.lng } : void 0
|
|
3548
3743
|
})
|
|
3549
|
-
),
|
|
3744
|
+
), ol = ({
|
|
3550
3745
|
value: e,
|
|
3551
3746
|
onValueChange: t,
|
|
3552
3747
|
logger: n
|
|
3553
3748
|
}) => {
|
|
3554
|
-
const { t: r } = xe(), o = Gt(), a = (e == null ? void 0 : e.type) === "provided" ? e.radius : Ut(
|
|
3749
|
+
const { t: r } = xe(), o = Gt(), a = (e == null ? void 0 : e.type) === "provided" ? e.radius : Ut(ho), [s, l] = j();
|
|
3555
3750
|
return /* @__PURE__ */ u("div", { class: "flex flex-col gap-2", children: [
|
|
3556
3751
|
/* @__PURE__ */ u(
|
|
3557
3752
|
"form",
|
|
3558
3753
|
{
|
|
3559
3754
|
onChange: (c) => {
|
|
3560
|
-
const d = new FormData(c.currentTarget), f = zt(
|
|
3755
|
+
const d = new FormData(c.currentTarget), f = zt(Hs, Object.fromEntries(d.entries()));
|
|
3561
3756
|
if (!f.success) {
|
|
3562
3757
|
n.error(f.issues), l(f.issues[0].message);
|
|
3563
3758
|
return;
|
|
@@ -3567,12 +3762,12 @@ const Qn = ut.use || ((e) => {
|
|
|
3567
3762
|
class: "flex flex-col gap-2 md:flex-row",
|
|
3568
3763
|
children: [
|
|
3569
3764
|
/* @__PURE__ */ u("input", { type: "hidden", name: "type", value: "provided" }),
|
|
3570
|
-
(e == null ? void 0 : e.type) === "provided" && e.coords ? /* @__PURE__ */ u(
|
|
3765
|
+
(e == null ? void 0 : e.type) === "provided" && e.coords ? /* @__PURE__ */ u(I, { children: [
|
|
3571
3766
|
/* @__PURE__ */ u("input", { type: "hidden", name: "lat", value: e.coords.lat }),
|
|
3572
3767
|
/* @__PURE__ */ u("input", { type: "hidden", name: "lng", value: e.coords.lng })
|
|
3573
3768
|
] }) : null,
|
|
3574
3769
|
/* @__PURE__ */ u(
|
|
3575
|
-
|
|
3770
|
+
Vs,
|
|
3576
3771
|
{
|
|
3577
3772
|
coords: (e == null ? void 0 : e.type) === "provided" ? e.coords : void 0,
|
|
3578
3773
|
radius: a,
|
|
@@ -3594,7 +3789,7 @@ const Qn = ut.use || ((e) => {
|
|
|
3594
3789
|
{
|
|
3595
3790
|
id: o,
|
|
3596
3791
|
name: "radius",
|
|
3597
|
-
class:
|
|
3792
|
+
class: dt({
|
|
3598
3793
|
size: "unsized",
|
|
3599
3794
|
className: "w-full appearance-none truncate py-2 pl-3 pr-10"
|
|
3600
3795
|
}),
|
|
@@ -3606,7 +3801,7 @@ const Qn = ut.use || ((e) => {
|
|
|
3606
3801
|
radius: Number(c.currentTarget.value)
|
|
3607
3802
|
});
|
|
3608
3803
|
},
|
|
3609
|
-
children:
|
|
3804
|
+
children: $s.map((c) => /* @__PURE__ */ u("option", { value: Ut(c), class: "truncate", children: Us.format(c) }, c))
|
|
3610
3805
|
}
|
|
3611
3806
|
),
|
|
3612
3807
|
/* @__PURE__ */ u("div", { class: "text-copy-neutral-lowcontrast pointer-events-none absolute bottom-0 right-0 top-0 flex w-10 items-center justify-center", children: /* @__PURE__ */ u(ye, { name: "chevron-right", class: "h-6 w-6 rotate-90" }) })
|
|
@@ -3626,244 +3821,50 @@ const Qn = ut.use || ((e) => {
|
|
|
3626
3821
|
}
|
|
3627
3822
|
) : null
|
|
3628
3823
|
] });
|
|
3629
|
-
}, el = (e, t) => {
|
|
3630
|
-
const n = structuredClone(e);
|
|
3631
|
-
return n.forEach((r) => {
|
|
3632
|
-
if (t.has(r.key)) {
|
|
3633
|
-
const o = t.get(r.key);
|
|
3634
|
-
if (!o)
|
|
3635
|
-
return;
|
|
3636
|
-
r.defaultValue = o.includes(",") ? o.split(",") : o;
|
|
3637
|
-
}
|
|
3638
|
-
}), n;
|
|
3639
|
-
}, tl = (e) => {
|
|
3640
|
-
const t = e.get("lat"), n = e.get("lng"), r = e.get("radius");
|
|
3641
|
-
return {
|
|
3642
|
-
type: "provided",
|
|
3643
|
-
coords: t && n ? { lat: Number(t), lng: Number(n) } : void 0,
|
|
3644
|
-
radius: r ? Number(r) : Ut(_o)
|
|
3645
|
-
};
|
|
3646
|
-
}, Is = (e, t = 1e3) => {
|
|
3647
|
-
const [n, r] = j(e), o = be(() => Za((a) => r(a), t), [t]);
|
|
3648
|
-
return ee(() => {
|
|
3649
|
-
o(e);
|
|
3650
|
-
}, [e, o]), n;
|
|
3651
|
-
}, er = {
|
|
3652
|
-
ANNUALLY: "per year",
|
|
3653
|
-
DAILY: "per day",
|
|
3654
|
-
HOURLY: "per hour",
|
|
3655
|
-
MONTHLY: "per month",
|
|
3656
|
-
WEEKLY: "per week"
|
|
3657
|
-
}, Ls = (e) => {
|
|
3658
|
-
const { salary: t, config: n } = e, r = new Intl.NumberFormat(n.locales, {
|
|
3659
|
-
style: "currency",
|
|
3660
|
-
currency: t.pay_currency,
|
|
3661
|
-
// @ts-expect-error - CI/CD is not happy with this, though locally it works
|
|
3662
|
-
trailingZeroDisplay: "stripIfInteger"
|
|
3663
|
-
});
|
|
3664
|
-
if (t.pay_display === !1)
|
|
3665
|
-
return;
|
|
3666
|
-
if (t.pay_mask)
|
|
3667
|
-
return e.t("competitive");
|
|
3668
|
-
if (t.pay_max && Number.isNaN(+t.pay_max) || t.pay_min && Number.isNaN(+t.pay_min) || t.pay && Number.isNaN(+t.pay))
|
|
3669
|
-
return e.t("invalid_salary");
|
|
3670
|
-
const o = t.pay_type && t.pay_type in er ? er[t.pay_type] : void 0;
|
|
3671
|
-
return t.pay ? [r.format(+t.pay), o].filter(Boolean).join(" ") : t.pay_max && t.pay_min ? [r.formatRange(+t.pay_min, +t.pay_max), o].filter(Boolean).join(" ") : t.pay_max ? `${e.t("up_to")} ${[r.format(+t.pay_max), o].filter(Boolean).join(" ")}` : t.pay_min ? `${e.t("from")} ${[r.format(+t.pay_min), o].filter(Boolean).join(" ")}` : e.t("invalid_salary");
|
|
3672
|
-
}, As = new Intl.RelativeTimeFormat(void 0, { numeric: "auto" }), Ds = ({ from: e = /* @__PURE__ */ new Date(), to: t, formatter: n = As, t: r }) => {
|
|
3673
|
-
const a = (t instanceof Date ? t : new Date(t)).getTime() - e.getTime(), s = {
|
|
3674
|
-
days: Math.round(a / 1e3 / 60 / 60 / 24),
|
|
3675
|
-
months: Math.round(a / 1e3 / 60 / 60 / 24 / 30)
|
|
3676
|
-
};
|
|
3677
|
-
return s.days === 0 ? r("today") : Math.abs(s.days) < 30 ? n.format(s.days, "days") : Math.abs(s.days) < 3 ? n.format(s.months, "months") : s.months < 0 ? r("over_30_days_ago") : r("in_over_30_days");
|
|
3678
|
-
}, Ps = br(
|
|
3679
|
-
Wt(se({ label: gn(N(), String), value: gn(N(), String), jobs: de() }))
|
|
3680
|
-
), Ms = N([qo()]), js = se({
|
|
3681
|
-
total: de(),
|
|
3682
|
-
current_page: de(),
|
|
3683
|
-
per_page: de(),
|
|
3684
|
-
last_page: de()
|
|
3685
|
-
}), Vs = se({
|
|
3686
|
-
id: de(),
|
|
3687
|
-
company_name: N(),
|
|
3688
|
-
company_logo: z(fe(N())),
|
|
3689
|
-
employment_type: N(),
|
|
3690
|
-
location_type: mn([oe("LOCATION"), oe("REMOTE"), oe("HYBRID")]),
|
|
3691
|
-
pay_type: z(
|
|
3692
|
-
mn([oe("ANNUALLY"), oe("HOURLY"), oe("MONTHLY"), oe("WEEKLY"), oe("DAILY")])
|
|
3693
|
-
),
|
|
3694
|
-
pay_currency: N(),
|
|
3695
|
-
// Whether to mask the pay and show as "competitive"
|
|
3696
|
-
pay_mask: vn(),
|
|
3697
|
-
// Whether to display pay at all
|
|
3698
|
-
pay_display: vn(),
|
|
3699
|
-
// Decimal numeric string e.g. "12.70"
|
|
3700
|
-
pay: z(N()),
|
|
3701
|
-
// Decimal numeric string e.g. "12.70"
|
|
3702
|
-
pay_min: z(N()),
|
|
3703
|
-
// Decimal numeric string e.g. "12.70"
|
|
3704
|
-
pay_max: z(N()),
|
|
3705
|
-
description: N(),
|
|
3706
|
-
title: N(),
|
|
3707
|
-
// E.g.: Any varchar, e.g.: "Permanent contract"
|
|
3708
|
-
contract_type: z(N()),
|
|
3709
|
-
created_at: z(N()),
|
|
3710
|
-
custom_data: z(br(Wo())),
|
|
3711
|
-
href: N(),
|
|
3712
|
-
industry: z(N()),
|
|
3713
|
-
category: z(N()),
|
|
3714
|
-
skills: fe(N()),
|
|
3715
|
-
town: fe(N()),
|
|
3716
|
-
city: z(N()),
|
|
3717
|
-
country: z(N()),
|
|
3718
|
-
vector_distance: fe(z(N()))
|
|
3719
|
-
}), $s = (e) => _e(Vs, (t) => {
|
|
3720
|
-
const n = zt(Ms, t.company_logo);
|
|
3721
|
-
return {
|
|
3722
|
-
id: t.id,
|
|
3723
|
-
createdAt: t.created_at,
|
|
3724
|
-
company: {
|
|
3725
|
-
name: t.company_name,
|
|
3726
|
-
logo: n.success ? n.output : null
|
|
3727
|
-
},
|
|
3728
|
-
employmentType: t.employment_type,
|
|
3729
|
-
locationType: t.location_type,
|
|
3730
|
-
pay: Ls({ salary: t, config: { locales: void 0 }, t: e }) ?? null,
|
|
3731
|
-
description: t.description,
|
|
3732
|
-
title: t.title,
|
|
3733
|
-
contractType: t.contract_type,
|
|
3734
|
-
href: t.href,
|
|
3735
|
-
relativePostedDate: t.created_at ? Ds({ to: new Date(t.created_at), t: e }) : "INVALID DATE",
|
|
3736
|
-
customData: t.custom_data,
|
|
3737
|
-
raw: t,
|
|
3738
|
-
match: t.vector_distance && parseFloat(t.vector_distance) < 0.15 ? e("great_match") : null
|
|
3739
|
-
};
|
|
3740
|
-
}), Us = (e) => _e(
|
|
3741
|
-
se({
|
|
3742
|
-
data: Wt($s(e)),
|
|
3743
|
-
pagination: js
|
|
3744
|
-
}),
|
|
3745
|
-
(t) => ({
|
|
3746
|
-
pagination: t.pagination,
|
|
3747
|
-
results: t.data
|
|
3748
|
-
})
|
|
3749
|
-
), Hs = (e) => !e || Array.isArray(e) && e.length === 0 ? null : e, po = (e) => {
|
|
3750
|
-
var n;
|
|
3751
|
-
const t = {};
|
|
3752
|
-
for (const r in e.filters) {
|
|
3753
|
-
const o = e.filters[r];
|
|
3754
|
-
t[r] = Hs(o == null ? void 0 : o.value);
|
|
3755
|
-
}
|
|
3756
|
-
return ((n = e.geo) == null ? void 0 : n.type) === "provided" && e.geo.coords && (t.geolocation = {
|
|
3757
|
-
type: e.geo.type,
|
|
3758
|
-
lat: e.geo.coords.lat,
|
|
3759
|
-
lng: e.geo.coords.lng,
|
|
3760
|
-
radius: e.geo.radius
|
|
3761
|
-
}), t;
|
|
3762
|
-
}, nl = async ({
|
|
3763
|
-
apiClient: e,
|
|
3764
|
-
state: t,
|
|
3765
|
-
logger: n,
|
|
3766
|
-
signal: r
|
|
3767
|
-
}) => {
|
|
3768
|
-
try {
|
|
3769
|
-
const o = new URLSearchParams(
|
|
3770
|
-
gr({
|
|
3771
|
-
filters: po(t),
|
|
3772
|
-
query: t.query
|
|
3773
|
-
})
|
|
3774
|
-
), a = "/search/filters", s = await e.fetch([a, o.toString()].filter(Boolean).join("?"), {
|
|
3775
|
-
signal: r
|
|
3776
|
-
});
|
|
3777
|
-
return Er(Ps, s);
|
|
3778
|
-
} catch (o) {
|
|
3779
|
-
throw o instanceof st ? n.error(o.message, o.issues) : n.error(o), o;
|
|
3780
|
-
}
|
|
3781
|
-
}, rl = async ({
|
|
3782
|
-
apiClient: e,
|
|
3783
|
-
logger: t,
|
|
3784
|
-
signal: n,
|
|
3785
|
-
state: r,
|
|
3786
|
-
page: o = 1,
|
|
3787
|
-
t: a
|
|
3788
|
-
}) => {
|
|
3789
|
-
try {
|
|
3790
|
-
const s = new URLSearchParams(
|
|
3791
|
-
gr({
|
|
3792
|
-
filters: po(r)
|
|
3793
|
-
})
|
|
3794
|
-
);
|
|
3795
|
-
s.set("page", o.toString()), s.set("per_page", Go.toString()), r.query && (s.set("query", r.query), s.set("mode", r.mode));
|
|
3796
|
-
const l = await e.fetch(["/search/results", s.toString()].filter(Boolean).join("?"), {
|
|
3797
|
-
signal: n
|
|
3798
|
-
});
|
|
3799
|
-
return Er(Us(a), l);
|
|
3800
|
-
} catch (s) {
|
|
3801
|
-
throw s instanceof st ? t.error(s.message, s.issues) : t.error(s), s;
|
|
3802
|
-
}
|
|
3803
|
-
}, ho = (e) => {
|
|
3804
|
-
if (e.error)
|
|
3805
|
-
return { queryState: "error", error: e.error, swr: e };
|
|
3806
|
-
if (e.isLoading && e.data === void 0)
|
|
3807
|
-
return { queryState: "loading", swr: e };
|
|
3808
|
-
if ((e.isLoading || e.isValidating) && e.data)
|
|
3809
|
-
return { queryState: "revalidating", data: e.data, swr: e };
|
|
3810
|
-
if (!e.isLoading && e.data)
|
|
3811
|
-
return { queryState: "loaded", data: e.data, swr: e };
|
|
3812
|
-
if (!e.data && !e.isLoading)
|
|
3813
|
-
return { queryState: "idle", swr: e };
|
|
3814
|
-
throw console.error("Unhandled data state", e), new Error("Unhandled data state");
|
|
3815
|
-
}, ol = {
|
|
3816
|
-
keepPreviousData: !0,
|
|
3817
|
-
revalidateOnFocus: !1,
|
|
3818
|
-
revalidateOnReconnect: !1,
|
|
3819
|
-
revalidateIfStale: !1,
|
|
3820
|
-
revalidateFirstPage: !1
|
|
3821
3824
|
};
|
|
3822
3825
|
export {
|
|
3823
|
-
|
|
3824
|
-
|
|
3826
|
+
el as A,
|
|
3827
|
+
Ks as B,
|
|
3825
3828
|
_r as C,
|
|
3826
3829
|
$e as D,
|
|
3827
|
-
|
|
3830
|
+
Nn as E,
|
|
3828
3831
|
be as F,
|
|
3829
|
-
|
|
3830
|
-
|
|
3832
|
+
ol as G,
|
|
3833
|
+
Gs as H,
|
|
3831
3834
|
ye as I,
|
|
3832
3835
|
Ws as J,
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
Go as P,
|
|
3839
|
-
ol as S,
|
|
3836
|
+
Xs as K,
|
|
3837
|
+
nl as L,
|
|
3838
|
+
rl as M,
|
|
3839
|
+
Yo as P,
|
|
3840
|
+
qs as S,
|
|
3840
3841
|
je as T,
|
|
3841
|
-
|
|
3842
|
+
Js as U,
|
|
3842
3843
|
q as _,
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3844
|
+
ci as a,
|
|
3845
|
+
zs as b,
|
|
3846
|
+
Qs as c,
|
|
3847
|
+
tl as d,
|
|
3847
3848
|
Qe as e,
|
|
3848
|
-
|
|
3849
|
-
|
|
3849
|
+
aa as f,
|
|
3850
|
+
Sr as g,
|
|
3850
3851
|
j as h,
|
|
3851
|
-
|
|
3852
|
+
dt as i,
|
|
3852
3853
|
Ue as j,
|
|
3853
|
-
|
|
3854
|
+
I as k,
|
|
3854
3855
|
w as l,
|
|
3855
|
-
|
|
3856
|
-
|
|
3856
|
+
ds as m,
|
|
3857
|
+
os as n,
|
|
3857
3858
|
u as o,
|
|
3858
3859
|
ee as p,
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3860
|
+
uo as q,
|
|
3861
|
+
fo as r,
|
|
3862
|
+
_o as s,
|
|
3863
|
+
We as t,
|
|
3863
3864
|
xe as u,
|
|
3864
|
-
|
|
3865
|
+
Ra as v,
|
|
3865
3866
|
te as w,
|
|
3866
|
-
|
|
3867
|
+
Bs as x,
|
|
3867
3868
|
X as y,
|
|
3868
3869
|
wo as z
|
|
3869
3870
|
};
|