@inploi/plugin-job-search 0.25.1 → 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 +6 -1055
- package/cdn/style.css +1 -1
- package/dist/components/filter.d.ts +1 -1
- package/dist/components/job-search.d.ts +1 -2
- package/dist/index.cjs +4 -4
- package/dist/index.js +841 -847
- package/dist/job-search.api.d.ts +13 -14
- package/dist/job-search.constants.d.ts +1 -1
- package/dist/job-search.d.ts +26 -9
- package/dist/job-search.schemas.d.ts +7 -8
- package/dist/lib/i18n.d.ts +6 -12
- package/dist/style/theme.d.ts +1 -1
- package/dist/style/tokens.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/{job-search.api-c4af53ba.js → utils-054b6e73.js} +1475 -1476
- 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 +8 -5
- package/dist/components/alerts-button.d.ts +0 -11
- package/dist/job-search.api-1670984d.cjs +0 -17
- package/dist/lib/currency.d.ts +0 -10
- package/dist/lib/datetime.d.ts +0 -11
- package/dist/plugin-job-alerts-7fc7b0f9.cjs +0 -1050
- package/dist/plugin-job-alerts-a5cbb5be.js +0 -5578
|
@@ -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];
|
|
@@ -37,7 +69,7 @@ function Pe(e, t, n, r, o) {
|
|
|
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" ? Pe(null, _, null, null, _) : at(_) ? Pe(
|
|
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,17 +293,17 @@ 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];
|
|
@@ -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", Lt = {
|
|
|
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,11 +398,11 @@ var Nt = "RFC3986", Lt = {
|
|
|
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
|
|
373
|
-
if (
|
|
404
|
+
function gn(e, t) {
|
|
405
|
+
if (Io(e)) {
|
|
374
406
|
const n = [];
|
|
375
407
|
for (let r = 0; r < e.length; r += 1)
|
|
376
408
|
n.push(t(e[r]));
|
|
@@ -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: Lt
|
|
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,7 +460,7 @@ 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)
|
|
@@ -438,7 +470,7 @@ function yr(e, t, n, r, o, a, s, l, c, d, f, i, p, y, _, h, C, g) {
|
|
|
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
|
|
@@ -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,7 +535,7 @@ 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")
|
|
@@ -513,13 +545,13 @@ function Vo(e = P) {
|
|
|
513
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 =
|
|
554
|
+
const r = Nt[n];
|
|
523
555
|
let o = P.filter;
|
|
524
556
|
(typeof e.filter == "function" || J(e.filter)) && (o = e.filter);
|
|
525
557
|
let a;
|
|
@@ -552,7 +584,7 @@ function Vo(e = P) {
|
|
|
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 (Pa(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 = Ma(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, L, vt, Tn, Ie = 0, Tr = [], Xe = [], kn = w.__b, On = w.__r, Rn = w.diffed, Nn = w.__c, Ln = 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" },
|
|
@@ -1418,8 +1478,6 @@ const { TranslationProvider: Bs, useTranslation: xe, createTFunction: qs } = ti(
|
|
|
1418
1478
|
widget_unavailable: "Sorry, this widget is unavailable at the moment.",
|
|
1419
1479
|
load_more_count: "Load {{count}} more",
|
|
1420
1480
|
of_remaining_count: "of {{count}} remaining",
|
|
1421
|
-
create_alert: "Create alert",
|
|
1422
|
-
alert_header_text: "You will be alerted for new jobs matching the filters currently set",
|
|
1423
1481
|
today: "today",
|
|
1424
1482
|
over_30_days_ago: "over 30 days ago",
|
|
1425
1483
|
in_over_30_days: "in over 30 days",
|
|
@@ -1443,32 +1501,33 @@ const { TranslationProvider: Bs, useTranslation: xe, createTFunction: qs } = ti(
|
|
|
1443
1501
|
search_label: "What",
|
|
1444
1502
|
geo_label: "Where",
|
|
1445
1503
|
geo_range_label: "Within",
|
|
1446
|
-
geo_suggestions_error: "Could not get the suggested locations."
|
|
1504
|
+
geo_suggestions_error: "Could not get the suggested locations.",
|
|
1505
|
+
feedback: "How was your search experience?"
|
|
1447
1506
|
});
|
|
1448
|
-
function
|
|
1507
|
+
function Or(e) {
|
|
1449
1508
|
var t, n, r = "";
|
|
1450
1509
|
if (typeof e == "string" || typeof e == "number")
|
|
1451
1510
|
r += e;
|
|
1452
1511
|
else if (typeof e == "object")
|
|
1453
1512
|
if (Array.isArray(e))
|
|
1454
1513
|
for (t = 0; t < e.length; t++)
|
|
1455
|
-
e[t] && (n =
|
|
1514
|
+
e[t] && (n = Or(e[t])) && (r && (r += " "), r += n);
|
|
1456
1515
|
else
|
|
1457
1516
|
for (t in e)
|
|
1458
1517
|
e[t] && (r && (r += " "), r += t);
|
|
1459
1518
|
return r;
|
|
1460
1519
|
}
|
|
1461
|
-
function
|
|
1520
|
+
function vt() {
|
|
1462
1521
|
for (var e, t, n = 0, r = ""; n < arguments.length; )
|
|
1463
|
-
(e = arguments[n++]) && (t =
|
|
1522
|
+
(e = arguments[n++]) && (t = Or(e)) && (r && (r += " "), r += t);
|
|
1464
1523
|
return r;
|
|
1465
1524
|
}
|
|
1466
|
-
const
|
|
1525
|
+
const Ln = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, da = (e) => {
|
|
1467
1526
|
const t = function() {
|
|
1468
1527
|
for (var o = arguments.length, a = new Array(o), s = 0; s < o; s++)
|
|
1469
1528
|
a[s] = arguments[s];
|
|
1470
1529
|
var l, c;
|
|
1471
|
-
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);
|
|
1472
1531
|
};
|
|
1473
1532
|
return { compose: function() {
|
|
1474
1533
|
for (var o = arguments.length, a = new Array(o), s = 0; s < o; s++)
|
|
@@ -1485,7 +1544,7 @@ const Mn = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, ni =
|
|
|
1485
1544
|
if ((o == null ? void 0 : o.variants) == null)
|
|
1486
1545
|
return t(o == null ? void 0 : o.base, a == null ? void 0 : a.class, a == null ? void 0 : a.className);
|
|
1487
1546
|
const { variants: l, defaultVariants: c } = o, d = Object.keys(l).map((p) => {
|
|
1488
|
-
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(_);
|
|
1489
1548
|
return l[p][h];
|
|
1490
1549
|
}), f = { ...c, ...a && Object.entries(a).reduce((p, y) => {
|
|
1491
1550
|
let [_, h] = y;
|
|
@@ -1500,35 +1559,7 @@ const Mn = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, ni =
|
|
|
1500
1559
|
}, []);
|
|
1501
1560
|
return t(o == null ? void 0 : o.base, d, i, a == null ? void 0 : a.class, a == null ? void 0 : a.className);
|
|
1502
1561
|
}, cx: t };
|
|
1503
|
-
}, { compose:
|
|
1504
|
-
const [t, n] = j(!1);
|
|
1505
|
-
return ee(() => {
|
|
1506
|
-
if (typeof window > "u")
|
|
1507
|
-
return;
|
|
1508
|
-
const r = window.matchMedia(e), o = () => n(r.matches);
|
|
1509
|
-
return o(), r.addEventListener("change", o), () => r.removeEventListener("change", o);
|
|
1510
|
-
}, [e]), t;
|
|
1511
|
-
}, Zs = (e, { minViewTime: t = 1e3, visibilityThreshold: n = 0, onView: r }) => {
|
|
1512
|
-
const [o, a] = j(!1);
|
|
1513
|
-
ee(() => {
|
|
1514
|
-
if (o || !e.current)
|
|
1515
|
-
return;
|
|
1516
|
-
let s;
|
|
1517
|
-
const l = new IntersectionObserver(
|
|
1518
|
-
(c) => c.forEach((d) => {
|
|
1519
|
-
clearTimeout(s), d.isIntersecting && (s = setTimeout(() => {
|
|
1520
|
-
a(!0), r();
|
|
1521
|
-
}, t));
|
|
1522
|
-
}),
|
|
1523
|
-
{
|
|
1524
|
-
threshold: n
|
|
1525
|
-
}
|
|
1526
|
-
);
|
|
1527
|
-
return l.observe(e.current), () => {
|
|
1528
|
-
l.disconnect(), clearTimeout(s);
|
|
1529
|
-
};
|
|
1530
|
-
}, [e, t, n, r, o]);
|
|
1531
|
-
}, Ue = te({
|
|
1562
|
+
}, { compose: Zs, cva: te, cx: Ys } = da(), Ue = te({
|
|
1532
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",
|
|
1533
1564
|
variants: {
|
|
1534
1565
|
variant: {
|
|
@@ -1566,27 +1597,7 @@ const Mn = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, ni =
|
|
|
1566
1597
|
position: "relative",
|
|
1567
1598
|
size: "sm"
|
|
1568
1599
|
}
|
|
1569
|
-
})
|
|
1570
|
-
function Nr(e) {
|
|
1571
|
-
var t, n, r = "";
|
|
1572
|
-
if (typeof e == "string" || typeof e == "number")
|
|
1573
|
-
r += e;
|
|
1574
|
-
else if (typeof e == "object")
|
|
1575
|
-
if (Array.isArray(e)) {
|
|
1576
|
-
var o = e.length;
|
|
1577
|
-
for (t = 0; t < o; t++)
|
|
1578
|
-
e[t] && (n = Nr(e[t])) && (r && (r += " "), r += n);
|
|
1579
|
-
} else
|
|
1580
|
-
for (n in e)
|
|
1581
|
-
e[n] && (r && (r += " "), r += n);
|
|
1582
|
-
return r;
|
|
1583
|
-
}
|
|
1584
|
-
function oi() {
|
|
1585
|
-
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++)
|
|
1586
|
-
(e = arguments[n]) && (t = Nr(e)) && (r && (r += " "), r += t);
|
|
1587
|
-
return r;
|
|
1588
|
-
}
|
|
1589
|
-
const Ys = ({ error: e, resetError: t }) => {
|
|
1600
|
+
}), Js = ({ error: e, resetError: t }) => {
|
|
1590
1601
|
const { t: n } = xe();
|
|
1591
1602
|
return /* @__PURE__ */ u(
|
|
1592
1603
|
"div",
|
|
@@ -1622,12 +1633,12 @@ const Ys = ({ error: e, resetError: t }) => {
|
|
|
1622
1633
|
]
|
|
1623
1634
|
}
|
|
1624
1635
|
);
|
|
1625
|
-
},
|
|
1636
|
+
}, Nn = ({ error: e, resetError: t, class: n, ...r }) => {
|
|
1626
1637
|
const { t: o } = xe();
|
|
1627
1638
|
return /* @__PURE__ */ u(
|
|
1628
1639
|
"div",
|
|
1629
1640
|
{
|
|
1630
|
-
class:
|
|
1641
|
+
class: aa(
|
|
1631
1642
|
"bg-neutral-12 ring-section-weak-stroke rounded-section flex flex-col items-center gap-4 overflow-hidden p-6 text-center",
|
|
1632
1643
|
n
|
|
1633
1644
|
),
|
|
@@ -1654,7 +1665,7 @@ const Ys = ({ error: e, resetError: t }) => {
|
|
|
1654
1665
|
}
|
|
1655
1666
|
);
|
|
1656
1667
|
};
|
|
1657
|
-
class
|
|
1668
|
+
class Qs extends G {
|
|
1658
1669
|
constructor() {
|
|
1659
1670
|
super(...arguments);
|
|
1660
1671
|
pt(this, "state", { error: null });
|
|
@@ -1681,79 +1692,14 @@ class Js extends G {
|
|
|
1681
1692
|
return this.props.children;
|
|
1682
1693
|
}
|
|
1683
1694
|
}
|
|
1684
|
-
const
|
|
1685
|
-
|
|
1686
|
-
variants: {
|
|
1687
|
-
variant: {
|
|
1688
|
-
neutralWeak: "text-tag-neutral-weak-copy bg-tag-neutral-weak-bg border-solid border-px border-tag-neutral-weak-stroke",
|
|
1689
|
-
neutralStrong: "text-tag-neutral-strong-copy bg-tag-neutral-strong-bg border-solid border-px border-tag-neutral-strong-stroke",
|
|
1690
|
-
accentStrong: "text-tag-accent-strong-copy bg-tag-accent-strong-bg border-solid border-px border-tag-accent-strong-stroke",
|
|
1691
|
-
monetaryWeak: "text-tag-monetary-weak-copy bg-tag-monetary-weak-bg border-solid border-px border-tag-monetary-weak-stroke"
|
|
1692
|
-
},
|
|
1693
|
-
interactive: {
|
|
1694
|
-
true: "ease-expo-out rounded-interactive transition-all duration-snappy",
|
|
1695
|
-
false: "rounded-tag"
|
|
1696
|
-
},
|
|
1697
|
-
size: {
|
|
1698
|
-
xs: "px-2 py-0.5 text-style-tag",
|
|
1699
|
-
sm: "px-3 py-1.5 text-style-tag",
|
|
1700
|
-
lg: "px-5 py-2.5 text-style-tag",
|
|
1701
|
-
unsized: ""
|
|
1702
|
-
},
|
|
1703
|
-
disabled: {
|
|
1704
|
-
true: "opacity-25 pointer-events-none",
|
|
1705
|
-
false: ""
|
|
1706
|
-
}
|
|
1707
|
-
},
|
|
1708
|
-
compoundVariants: [{ disabled: !1, interactive: !0, class: "cursor-pointer active:scale-[0.975]" }],
|
|
1709
|
-
defaultVariants: {
|
|
1710
|
-
variant: "neutralWeak",
|
|
1711
|
-
size: "sm",
|
|
1712
|
-
disabled: !1,
|
|
1713
|
-
interactive: !1
|
|
1714
|
-
}
|
|
1715
|
-
}), ai = ({ query: e, property: t, selectedValues: n }) => {
|
|
1716
|
-
switch (e.queryState) {
|
|
1717
|
-
case "idle":
|
|
1718
|
-
case "error":
|
|
1719
|
-
case "loading":
|
|
1720
|
-
return null;
|
|
1721
|
-
case "loaded":
|
|
1722
|
-
case "revalidating": {
|
|
1723
|
-
const o = (e.data[t.key] ?? []).filter((a) => n.includes(a.value));
|
|
1724
|
-
switch (o.length) {
|
|
1725
|
-
case 0:
|
|
1726
|
-
return null;
|
|
1727
|
-
case 1: {
|
|
1728
|
-
const a = o[0];
|
|
1729
|
-
return wo(a), /* @__PURE__ */ u("span", { class: He({ size: "sm", variant: "accentStrong", interactive: !0, class: "truncate" }), children: a.label });
|
|
1730
|
-
}
|
|
1731
|
-
default:
|
|
1732
|
-
return /* @__PURE__ */ u(
|
|
1733
|
-
"span",
|
|
1734
|
-
{
|
|
1735
|
-
class: He({
|
|
1736
|
-
size: "sm",
|
|
1737
|
-
variant: "accentStrong",
|
|
1738
|
-
interactive: !0,
|
|
1739
|
-
class: "ijs-filter-current max-w-full truncate tabular-nums"
|
|
1740
|
-
}),
|
|
1741
|
-
children: o.length
|
|
1742
|
-
}
|
|
1743
|
-
);
|
|
1744
|
-
}
|
|
1745
|
-
}
|
|
1746
|
-
default:
|
|
1747
|
-
Qe(e);
|
|
1748
|
-
}
|
|
1749
|
-
}, ii = {
|
|
1750
|
-
briefcase: /* @__PURE__ */ u(D, { children: [
|
|
1695
|
+
const fa = {
|
|
1696
|
+
briefcase: /* @__PURE__ */ u(I, { children: [
|
|
1751
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" }),
|
|
1752
1698
|
/* @__PURE__ */ u("path", { d: "M4.75 11.75H19.25" }),
|
|
1753
1699
|
/* @__PURE__ */ u("path", { d: "M13.25 12.25V13.25H10.75V12.25H13.25Z" }),
|
|
1754
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" })
|
|
1755
1701
|
] }),
|
|
1756
|
-
brand: /* @__PURE__ */ u(
|
|
1702
|
+
brand: /* @__PURE__ */ u(I, { children: [
|
|
1757
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" }),
|
|
1758
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" }),
|
|
1759
1705
|
/* @__PURE__ */ u("path", { d: "M17.0791 7.55413C16.7038 7.12546 16.2758 6.74602 15.8053 6.42486" }),
|
|
@@ -1762,46 +1708,46 @@ const He = te({
|
|
|
1762
1708
|
/* @__PURE__ */ u("circle", { cx: "18.75", cy: "12", r: "2" }),
|
|
1763
1709
|
/* @__PURE__ */ u("circle", { cx: "5.25", cy: "12", r: "2" })
|
|
1764
1710
|
] }),
|
|
1765
|
-
building: /* @__PURE__ */ u(
|
|
1711
|
+
building: /* @__PURE__ */ u(I, { children: [
|
|
1766
1712
|
/* @__PURE__ */ u("path", { d: "M16.75 10.25H13.75" }),
|
|
1767
1713
|
/* @__PURE__ */ u("path", { d: "M16.75 13.25H13.75" }),
|
|
1768
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" }),
|
|
1769
1715
|
/* @__PURE__ */ u("path", { d: "M10.25 12.25V18.25" })
|
|
1770
1716
|
] }),
|
|
1771
|
-
circles: /* @__PURE__ */ u(
|
|
1717
|
+
circles: /* @__PURE__ */ u(I, { children: [
|
|
1772
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" }),
|
|
1773
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" })
|
|
1774
1720
|
] }),
|
|
1775
|
-
clock: /* @__PURE__ */ u(
|
|
1721
|
+
clock: /* @__PURE__ */ u(I, { children: [
|
|
1776
1722
|
/* @__PURE__ */ u("path", { d: "M14 9L12 13L9.5 12" }),
|
|
1777
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" })
|
|
1778
1724
|
] }),
|
|
1779
|
-
filter: /* @__PURE__ */ u(
|
|
1780
|
-
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: [
|
|
1781
1727
|
/* @__PURE__ */ u("path", { d: "M5 13.75H19" }),
|
|
1782
1728
|
/* @__PURE__ */ u("path", { d: "M5 10.25H19" }),
|
|
1783
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" }),
|
|
1784
1730
|
/* @__PURE__ */ u("circle", { cx: "12", cy: "12", r: "7.25" })
|
|
1785
1731
|
] }),
|
|
1786
|
-
magnifier: /* @__PURE__ */ u(
|
|
1732
|
+
magnifier: /* @__PURE__ */ u(I, { children: [
|
|
1787
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" }),
|
|
1788
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" }),
|
|
1789
1735
|
/* @__PURE__ */ u("path", { d: "M16 16L19 19" })
|
|
1790
1736
|
] }),
|
|
1791
|
-
magnifierSimple: /* @__PURE__ */ u(
|
|
1737
|
+
magnifierSimple: /* @__PURE__ */ u(I, { children: [
|
|
1792
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" }),
|
|
1793
1739
|
/* @__PURE__ */ u("path", { d: "M16 16L19 19" })
|
|
1794
1740
|
] }),
|
|
1795
|
-
mapPin: /* @__PURE__ */ u(
|
|
1741
|
+
mapPin: /* @__PURE__ */ u(I, { children: /* @__PURE__ */ u(I, { children: [
|
|
1796
1742
|
/* @__PURE__ */ u("circle", { cx: "12", cy: "9", r: "2" }),
|
|
1797
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" }),
|
|
1798
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" })
|
|
1799
1745
|
] }) }),
|
|
1800
|
-
pay: /* @__PURE__ */ u(
|
|
1746
|
+
pay: /* @__PURE__ */ u(I, { children: [
|
|
1801
1747
|
/* @__PURE__ */ u("path", { d: "M16.8 16.8a6.78 6.78 0 1 1 0-9.6M12 16v-1M12 9V8" }),
|
|
1802
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" })
|
|
1803
1749
|
] }),
|
|
1804
|
-
sunset: /* @__PURE__ */ u(
|
|
1750
|
+
sunset: /* @__PURE__ */ u(I, { children: [
|
|
1805
1751
|
/* @__PURE__ */ u("path", { d: "M18.5 8.5L17.5 9.5" }),
|
|
1806
1752
|
/* @__PURE__ */ u("path", { d: "M5.5 8.5L6.5 9.5" }),
|
|
1807
1753
|
/* @__PURE__ */ u("path", { d: "M12 6L12 7.5" }),
|
|
@@ -1819,7 +1765,7 @@ const He = te({
|
|
|
1819
1765
|
fill: "currentColor"
|
|
1820
1766
|
}
|
|
1821
1767
|
),
|
|
1822
|
-
"target-location": /* @__PURE__ */ u(
|
|
1768
|
+
"target-location": /* @__PURE__ */ u(I, { children: [
|
|
1823
1769
|
/* @__PURE__ */ u("circle", { cx: "12", cy: "12", r: "0.75" }),
|
|
1824
1770
|
/* @__PURE__ */ u("circle", { cx: "12", cy: "12", r: "5.75" }),
|
|
1825
1771
|
/* @__PURE__ */ u("path", { d: "M12 4.25V6.25" }),
|
|
@@ -1835,7 +1781,7 @@ const He = te({
|
|
|
1835
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"
|
|
1836
1782
|
}
|
|
1837
1783
|
)
|
|
1838
|
-
},
|
|
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]) => {
|
|
1839
1785
|
var r;
|
|
1840
1786
|
return /* @__PURE__ */ u("symbol", { id: `i-icon-${t}`, children: /* @__PURE__ */ u(
|
|
1841
1787
|
"g",
|
|
@@ -1848,580 +1794,187 @@ const He = te({
|
|
|
1848
1794
|
children: n
|
|
1849
1795
|
}
|
|
1850
1796
|
) }, t);
|
|
1851
|
-
}) }) }), 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}` }) }),
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
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);
|
|
1873
1850
|
}
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
variants: {
|
|
1877
|
-
state: {
|
|
1878
|
-
default: "text-copy-neutral-lowcontrast pointer-fine:group-hover:text-copy-neutral",
|
|
1879
|
-
filled: "text-copy-neutral",
|
|
1880
|
-
active: "text-copy-neutral"
|
|
1881
|
-
}
|
|
1851
|
+
function r(o) {
|
|
1852
|
+
return this.shouldComponentUpdate = n, X(e, o);
|
|
1882
1853
|
}
|
|
1883
|
-
|
|
1884
|
-
base: "flex-none text-copy-neutral-icon pointer-fine:group-hover:text-copy-neutral duration-snappy ease-expo-out"
|
|
1885
|
-
}), ui = (e) => {
|
|
1886
|
-
const t = q(null), [n, r] = j(0), o = () => {
|
|
1887
|
-
var a;
|
|
1888
|
-
return r(((a = t.current) == null ? void 0 : a.clientHeight) ?? 0);
|
|
1889
|
-
};
|
|
1890
|
-
return Ce(() => (o(), window.addEventListener("resize", o), () => window.removeEventListener("resize", o)), e), { height: n, ref: t, updateHeight: o };
|
|
1891
|
-
}, Lr = (e) => typeof e.value == "string" ? [e.value] : e.value ?? [], Xs = ({
|
|
1892
|
-
active: e,
|
|
1893
|
-
value: t,
|
|
1894
|
-
onActiveChange: n,
|
|
1895
|
-
property: r,
|
|
1896
|
-
onSkip: o,
|
|
1897
|
-
onValueChange: a,
|
|
1898
|
-
unfilteredQuery: s,
|
|
1899
|
-
useQuery: l
|
|
1900
|
-
}) => {
|
|
1901
|
-
const c = So(r.key, jn) ? jn[r.key] : void 0, d = r.icon ?? c ?? "filter", f = Lr(t), { height: i, ref: p, updateHeight: y } = ui([e]), _ = f.length > 0;
|
|
1902
|
-
return /* @__PURE__ */ u(
|
|
1903
|
-
"section",
|
|
1904
|
-
{
|
|
1905
|
-
"data-filter-key": r.key,
|
|
1906
|
-
"aria-label": r.label,
|
|
1907
|
-
"aria-selected": e ? "true" : void 0,
|
|
1908
|
-
class: si({ hasValue: _ }),
|
|
1909
|
-
onTouchStart: di,
|
|
1910
|
-
children: [
|
|
1911
|
-
/* @__PURE__ */ u("div", { class: "min-w-0 max-w-full shrink-0 flex-grow", children: [
|
|
1912
|
-
/* @__PURE__ */ u(
|
|
1913
|
-
"button",
|
|
1914
|
-
{
|
|
1915
|
-
"aria-label": e ? "Close filter" : "Open filter",
|
|
1916
|
-
class: li({
|
|
1917
|
-
state: e ? "active" : _ ? "filled" : "default",
|
|
1918
|
-
class: "ijs-filter-heading rounded-section fr-child flex w-full cursor-pointer select-none items-center gap-2 py-4 pl-4"
|
|
1919
|
-
}),
|
|
1920
|
-
onClick: () => n(!e),
|
|
1921
|
-
children: [
|
|
1922
|
-
/* @__PURE__ */ u(ye, { "aria-hidden": !0, class: "flex-none", name: d }),
|
|
1923
|
-
/* @__PURE__ */ u("p", { children: r.label })
|
|
1924
|
-
]
|
|
1925
|
-
}
|
|
1926
|
-
),
|
|
1927
|
-
/* @__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(
|
|
1928
|
-
wi,
|
|
1929
|
-
{
|
|
1930
|
-
useQuery: l,
|
|
1931
|
-
onRender: y,
|
|
1932
|
-
onSkip: o,
|
|
1933
|
-
onValueChange: a,
|
|
1934
|
-
unfilteredQuery: s,
|
|
1935
|
-
property: r,
|
|
1936
|
-
value: t
|
|
1937
|
-
}
|
|
1938
|
-
) }) })
|
|
1939
|
-
] }),
|
|
1940
|
-
!e && /* @__PURE__ */ u(
|
|
1941
|
-
"button",
|
|
1942
|
-
{
|
|
1943
|
-
tabIndex: -1,
|
|
1944
|
-
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",
|
|
1945
|
-
onClick: () => n(!0),
|
|
1946
|
-
children: [
|
|
1947
|
-
/* @__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 }) }),
|
|
1948
|
-
/* @__PURE__ */ u(ye, { "aria-hidden": !0, class: ci(), name: "chevron-right" })
|
|
1949
|
-
]
|
|
1950
|
-
}
|
|
1951
|
-
)
|
|
1952
|
-
]
|
|
1953
|
-
}
|
|
1954
|
-
);
|
|
1955
|
-
};
|
|
1956
|
-
function di() {
|
|
1854
|
+
return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r;
|
|
1957
1855
|
}
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
}
|
|
1969
|
-
|
|
1970
|
-
defaultVariants: {
|
|
1971
|
-
size: "md",
|
|
1972
|
-
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);
|
|
1973
1868
|
}
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
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);
|
|
1989
1886
|
}
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
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);
|
|
1997
1921
|
}
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
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();
|
|
2015
1946
|
}
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
accentStrong: "text-accent-11 bg-accent-4 border-tag-accent-strong-stroke",
|
|
2026
|
-
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);
|
|
2027
1956
|
}
|
|
1957
|
+
this.__b = null;
|
|
2028
1958
|
}
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
by: "results-count",
|
|
2041
|
-
order: "descending"
|
|
2042
|
-
}) => {
|
|
2043
|
-
const n = [...e];
|
|
2044
|
-
switch (t.by) {
|
|
2045
|
-
case "results-count":
|
|
2046
|
-
n.sort((r, o) => r.jobs - o.jobs);
|
|
2047
|
-
break;
|
|
2048
|
-
case "alphabetically":
|
|
2049
|
-
n.sort((r, o) => r.label.localeCompare(o.label));
|
|
2050
|
-
break;
|
|
2051
|
-
case "numerically":
|
|
2052
|
-
n.sort((r, o) => {
|
|
2053
|
-
const a = Vn(r.value), s = Vn(o.value);
|
|
2054
|
-
return a - s;
|
|
2055
|
-
});
|
|
2056
|
-
break;
|
|
2057
|
-
}
|
|
2058
|
-
return t.order === "descending" && n.reverse(), n;
|
|
2059
|
-
}, bi = (e, t) => {
|
|
2060
|
-
if (e === null)
|
|
2061
|
-
return !1;
|
|
2062
|
-
const n = e[t.value];
|
|
2063
|
-
return n === void 0 ? !0 : n === 0;
|
|
2064
|
-
}, Ei = (e, t) => {
|
|
2065
|
-
const n = (r) => r > 99 ? "99+" : r.toString();
|
|
2066
|
-
return n(e === null ? t.jobs : e[t.value] ?? 0);
|
|
2067
|
-
}, wi = ({
|
|
2068
|
-
value: e,
|
|
2069
|
-
property: t,
|
|
2070
|
-
onSkip: n,
|
|
2071
|
-
useQuery: r,
|
|
2072
|
-
onValueChange: o,
|
|
2073
|
-
unfilteredQuery: a,
|
|
2074
|
-
onRender: s
|
|
2075
|
-
}) => {
|
|
2076
|
-
const { t: l } = xe(), c = ho(r()), d = be(() => {
|
|
2077
|
-
switch (c.queryState) {
|
|
2078
|
-
case "error":
|
|
2079
|
-
case "idle":
|
|
2080
|
-
case "loading":
|
|
2081
|
-
return null;
|
|
2082
|
-
case "loaded":
|
|
2083
|
-
case "revalidating": {
|
|
2084
|
-
const h = c.data[t.key] ?? [];
|
|
2085
|
-
return Object.fromEntries(h.map((C) => [C.value, C.jobs]));
|
|
2086
|
-
}
|
|
2087
|
-
default:
|
|
2088
|
-
Qe(c);
|
|
2089
|
-
}
|
|
2090
|
-
}, [c, t.key]), f = Lr(e), i = f.length > 0, [p, y] = j(), _ = ri("(pointer: coarse)");
|
|
2091
|
-
return ee(() => {
|
|
2092
|
-
s();
|
|
2093
|
-
}), c.queryState === "error" ? /* @__PURE__ */ u(
|
|
2094
|
-
Pn,
|
|
2095
|
-
{
|
|
2096
|
-
error: new Error(l("filters_loading_error"), { cause: c.error }),
|
|
2097
|
-
resetError: () => c.swr.mutate()
|
|
2098
|
-
}
|
|
2099
|
-
) : /* @__PURE__ */ u("div", { class: "animate-slide-in-bottom flex w-full flex-col gap-2 pt-1", children: [
|
|
2100
|
-
t.searchable && /* @__PURE__ */ u("div", { class: "top-0 px-4 py-1", children: /* @__PURE__ */ u(
|
|
2101
|
-
"input",
|
|
2102
|
-
{
|
|
2103
|
-
type: "search",
|
|
2104
|
-
class: ct(),
|
|
2105
|
-
value: p,
|
|
2106
|
-
onInput: (h) => y(h.currentTarget.value),
|
|
2107
|
-
placeholder: l("type_to_search")
|
|
2108
|
-
}
|
|
2109
|
-
) }),
|
|
2110
|
-
(() => {
|
|
2111
|
-
switch (a.queryState) {
|
|
2112
|
-
case "error":
|
|
2113
|
-
return /* @__PURE__ */ u(
|
|
2114
|
-
Pn,
|
|
2115
|
-
{
|
|
2116
|
-
error: new Error(l("filters_loading_error"), {
|
|
2117
|
-
cause: a.error
|
|
2118
|
-
}),
|
|
2119
|
-
resetError: () => a.swr.mutate()
|
|
2120
|
-
}
|
|
2121
|
-
);
|
|
2122
|
-
case "idle":
|
|
2123
|
-
case "loading":
|
|
2124
|
-
return /* @__PURE__ */ u("div", { class: "flex px-4", children: /* @__PURE__ */ u(
|
|
2125
|
-
"div",
|
|
2126
|
-
{
|
|
2127
|
-
"aria-hidden": !0,
|
|
2128
|
-
class: He({
|
|
2129
|
-
size: "lg",
|
|
2130
|
-
variant: "neutralStrong",
|
|
2131
|
-
interactive: !0,
|
|
2132
|
-
class: "animate-skeleton cursor-default opacity-20 active:-scale-100"
|
|
2133
|
-
}),
|
|
2134
|
-
children: /* @__PURE__ */ u("span", { class: "inline-block w-[10ch]" })
|
|
2135
|
-
}
|
|
2136
|
-
) });
|
|
2137
|
-
case "revalidating":
|
|
2138
|
-
case "loaded": {
|
|
2139
|
-
const h = a.data[t.key] ?? [], C = p && p.length > 1 ? h.filter((b) => b.label.toLowerCase().includes(p.toLowerCase())) : h, g = [];
|
|
2140
|
-
for (const b of C) {
|
|
2141
|
-
if (b.label.length < 1)
|
|
2142
|
-
continue;
|
|
2143
|
-
const m = {
|
|
2144
|
-
...b,
|
|
2145
|
-
results: Ei(d, b),
|
|
2146
|
-
disabled: bi(d, b)
|
|
2147
|
-
};
|
|
2148
|
-
switch (t.results) {
|
|
2149
|
-
case "only-available":
|
|
2150
|
-
m.disabled === !1 && g.push(m);
|
|
2151
|
-
break;
|
|
2152
|
-
default:
|
|
2153
|
-
g.push(m);
|
|
2154
|
-
}
|
|
2155
|
-
}
|
|
2156
|
-
if (!g.find((b) => !b.disabled))
|
|
2157
|
-
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") });
|
|
2158
|
-
const v = (h.length > pi || h.some((b) => b.label.length > 24)) && !_;
|
|
2159
|
-
return /* @__PURE__ */ u("div", { class: "pointer-fine:px-4", children: /* @__PURE__ */ u(
|
|
2160
|
-
"ul",
|
|
2161
|
-
{
|
|
2162
|
-
style: {
|
|
2163
|
-
"--maxHeight": `${fi * (_i + 0.5) + 2 * hi}px`
|
|
2164
|
-
},
|
|
2165
|
-
class: Ir({
|
|
2166
|
-
type: v ? "long" : "short"
|
|
2167
|
-
}),
|
|
2168
|
-
children: mi(g, t.sortSuggestions).map((b) => {
|
|
2169
|
-
const m = f.includes(b.value);
|
|
2170
|
-
return /* @__PURE__ */ u(
|
|
2171
|
-
"li",
|
|
2172
|
-
{
|
|
2173
|
-
class: Ar({
|
|
2174
|
-
type: v ? "line" : "pill"
|
|
2175
|
-
}),
|
|
2176
|
-
children: /* @__PURE__ */ u(
|
|
2177
|
-
"button",
|
|
2178
|
-
{
|
|
2179
|
-
type: "button",
|
|
2180
|
-
disabled: b.disabled,
|
|
2181
|
-
"data-filter": !0,
|
|
2182
|
-
"data-current-value": m ? "true" : void 0,
|
|
2183
|
-
onClick: () => {
|
|
2184
|
-
switch (e.select) {
|
|
2185
|
-
case "many": {
|
|
2186
|
-
const k = vi(f, b.value);
|
|
2187
|
-
o({
|
|
2188
|
-
select: "many",
|
|
2189
|
-
value: k
|
|
2190
|
-
});
|
|
2191
|
-
break;
|
|
2192
|
-
}
|
|
2193
|
-
case "one":
|
|
2194
|
-
o({
|
|
2195
|
-
select: "one",
|
|
2196
|
-
value: b.value
|
|
2197
|
-
});
|
|
2198
|
-
break;
|
|
2199
|
-
default:
|
|
2200
|
-
Qe(e);
|
|
2201
|
-
}
|
|
2202
|
-
},
|
|
2203
|
-
class: v ? Dr({
|
|
2204
|
-
active: m,
|
|
2205
|
-
disabled: b.disabled
|
|
2206
|
-
}) : He({
|
|
2207
|
-
size: "lg",
|
|
2208
|
-
variant: m ? "accentStrong" : "neutralStrong",
|
|
2209
|
-
interactive: !0,
|
|
2210
|
-
disabled: b.disabled,
|
|
2211
|
-
class: "ijs-filter-tag flex max-w-full gap-3 overflow-hidden pr-2.5"
|
|
2212
|
-
}),
|
|
2213
|
-
children: [
|
|
2214
|
-
/* @__PURE__ */ u("span", { class: "max-w-full truncate", children: b.label }),
|
|
2215
|
-
" ",
|
|
2216
|
-
/* @__PURE__ */ u(gi, { colorScheme: m ? "accentStrong" : "neutralStrong", children: b.results })
|
|
2217
|
-
]
|
|
2218
|
-
}
|
|
2219
|
-
)
|
|
2220
|
-
},
|
|
2221
|
-
b.value
|
|
2222
|
-
);
|
|
2223
|
-
})
|
|
2224
|
-
}
|
|
2225
|
-
) });
|
|
2226
|
-
}
|
|
2227
|
-
default:
|
|
2228
|
-
Qe(a);
|
|
2229
|
-
}
|
|
2230
|
-
})(),
|
|
2231
|
-
/* @__PURE__ */ u("footer", { class: "flex justify-end p-2", children: [
|
|
2232
|
-
/* @__PURE__ */ u("div", { class: "flex-1", children: i && /* @__PURE__ */ u(
|
|
2233
|
-
"button",
|
|
2234
|
-
{
|
|
2235
|
-
type: "button",
|
|
2236
|
-
class: Ue({ variant: "neutral", icon: "left" }),
|
|
2237
|
-
onClick: () => {
|
|
2238
|
-
o(void 0);
|
|
2239
|
-
},
|
|
2240
|
-
children: [
|
|
2241
|
-
/* @__PURE__ */ u(ye, { "aria-hidden": !0, name: "x" }),
|
|
2242
|
-
" ",
|
|
2243
|
-
l("clear")
|
|
2244
|
-
]
|
|
2245
|
-
}
|
|
2246
|
-
) }),
|
|
2247
|
-
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: [
|
|
2248
|
-
f.length,
|
|
2249
|
-
" ",
|
|
2250
|
-
l("selected")
|
|
2251
|
-
] }) }),
|
|
2252
|
-
/* @__PURE__ */ u("div", { class: "flex-1", children: /* @__PURE__ */ u(
|
|
2253
|
-
"button",
|
|
2254
|
-
{
|
|
2255
|
-
type: "button",
|
|
2256
|
-
class: Ue({
|
|
2257
|
-
variant: i ? "accent" : "neutral",
|
|
2258
|
-
icon: "right",
|
|
2259
|
-
class: "ml-auto"
|
|
2260
|
-
}),
|
|
2261
|
-
onClick: n,
|
|
2262
|
-
children: [
|
|
2263
|
-
l(i ? "done" : "skip"),
|
|
2264
|
-
" ",
|
|
2265
|
-
/* @__PURE__ */ u(ye, { name: "chevron-right" })
|
|
2266
|
-
]
|
|
2267
|
-
},
|
|
2268
|
-
i ? "done" : "skip"
|
|
2269
|
-
) })
|
|
2270
|
-
] })
|
|
2271
|
-
] });
|
|
2272
|
-
};
|
|
2273
|
-
function Mr(e, t) {
|
|
2274
|
-
for (var n in t)
|
|
2275
|
-
e[n] = t[n];
|
|
2276
|
-
return e;
|
|
2277
|
-
}
|
|
2278
|
-
function At(e, t) {
|
|
2279
|
-
for (var n in e)
|
|
2280
|
-
if (n !== "__source" && !(n in t))
|
|
2281
|
-
return !0;
|
|
2282
|
-
for (var r in t)
|
|
2283
|
-
if (r !== "__source" && e[r] !== t[r])
|
|
2284
|
-
return !0;
|
|
2285
|
-
return !1;
|
|
2286
|
-
}
|
|
2287
|
-
function bt(e, t) {
|
|
2288
|
-
return e === t && (e !== 0 || 1 / e == 1 / t) || e != e && t != t;
|
|
2289
|
-
}
|
|
2290
|
-
function ot(e) {
|
|
2291
|
-
this.props = e;
|
|
2292
|
-
}
|
|
2293
|
-
function Pr(e, t) {
|
|
2294
|
-
function n(o) {
|
|
2295
|
-
var a = this.props.ref, s = a == o.ref;
|
|
2296
|
-
return !s && a && (a.call ? a(null) : a.current = null), t ? !t(this.props, o) || !s : At(this.props, o);
|
|
2297
|
-
}
|
|
2298
|
-
function r(o) {
|
|
2299
|
-
return this.shouldComponentUpdate = n, X(e, o);
|
|
2300
|
-
}
|
|
2301
|
-
return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r;
|
|
2302
|
-
}
|
|
2303
|
-
(ot.prototype = new G()).isPureReactComponent = !0, ot.prototype.shouldComponentUpdate = function(e, t) {
|
|
2304
|
-
return At(this.props, e) || At(this.state, t);
|
|
2305
|
-
};
|
|
2306
|
-
var $n = w.__b;
|
|
2307
|
-
w.__b = function(e) {
|
|
2308
|
-
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), $n && $n(e);
|
|
2309
|
-
};
|
|
2310
|
-
var Si = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
2311
|
-
function Zt(e) {
|
|
2312
|
-
function t(n) {
|
|
2313
|
-
var r = Mr({}, n);
|
|
2314
|
-
return delete r.ref, e(r, n.ref || null);
|
|
2315
|
-
}
|
|
2316
|
-
return t.$$typeof = Si, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
2317
|
-
}
|
|
2318
|
-
var Un = function(e, t) {
|
|
2319
|
-
return e == null ? null : le(le(e).map(t));
|
|
2320
|
-
}, jr = { map: Un, forEach: Un, count: function(e) {
|
|
2321
|
-
return e ? le(e).length : 0;
|
|
2322
|
-
}, only: function(e) {
|
|
2323
|
-
var t = le(e);
|
|
2324
|
-
if (t.length !== 1)
|
|
2325
|
-
throw "Children.only";
|
|
2326
|
-
return t[0];
|
|
2327
|
-
}, toArray: le }, Ci = w.__e;
|
|
2328
|
-
w.__e = function(e, t, n, r) {
|
|
2329
|
-
if (e.then) {
|
|
2330
|
-
for (var o, a = t; a = a.__; )
|
|
2331
|
-
if ((o = a.__c) && o.__c)
|
|
2332
|
-
return t.__e == null && (t.__e = n.__e, t.__k = n.__k), o.__c(e, t);
|
|
2333
|
-
}
|
|
2334
|
-
Ci(e, t, n, r);
|
|
2335
|
-
};
|
|
2336
|
-
var Hn = w.unmount;
|
|
2337
|
-
function Vr(e, t, n) {
|
|
2338
|
-
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
|
|
2339
|
-
typeof r.__c == "function" && r.__c();
|
|
2340
|
-
}), e.__c.__H = null), (e = Mr({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
|
|
2341
|
-
return Vr(r, t, n);
|
|
2342
|
-
})), e;
|
|
2343
|
-
}
|
|
2344
|
-
function $r(e, t, n) {
|
|
2345
|
-
return e && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
|
|
2346
|
-
return $r(r, t, n);
|
|
2347
|
-
}), e.__c && e.__c.__P === t && (e.__e && n.insertBefore(e.__e, e.__d), e.__c.__e = !0, e.__c.__P = n)), e;
|
|
2348
|
-
}
|
|
2349
|
-
function Ve() {
|
|
2350
|
-
this.__u = 0, this.t = null, this.__b = null;
|
|
2351
|
-
}
|
|
2352
|
-
function Ur(e) {
|
|
2353
|
-
var t = e.__.__c;
|
|
2354
|
-
return t && t.__a && t.__a(e);
|
|
2355
|
-
}
|
|
2356
|
-
function Hr(e) {
|
|
2357
|
-
var t, n, r;
|
|
2358
|
-
function o(a) {
|
|
2359
|
-
if (t || (t = e()).then(function(s) {
|
|
2360
|
-
n = s.default || s;
|
|
2361
|
-
}, function(s) {
|
|
2362
|
-
r = s;
|
|
2363
|
-
}), r)
|
|
2364
|
-
throw r;
|
|
2365
|
-
if (!n)
|
|
2366
|
-
throw t;
|
|
2367
|
-
return X(n, a);
|
|
2368
|
-
}
|
|
2369
|
-
return o.displayName = "Lazy", o.__f = !0, o;
|
|
2370
|
-
}
|
|
2371
|
-
function Ne() {
|
|
2372
|
-
this.u = null, this.o = null;
|
|
2373
|
-
}
|
|
2374
|
-
w.unmount = function(e) {
|
|
2375
|
-
var t = e.__c;
|
|
2376
|
-
t && t.__R && t.__R(), t && e.__h === !0 && (e.type = null), Hn && Hn(e);
|
|
2377
|
-
}, (Ve.prototype = new G()).__c = function(e, t) {
|
|
2378
|
-
var n = t.__c, r = this;
|
|
2379
|
-
r.t == null && (r.t = []), r.t.push(n);
|
|
2380
|
-
var o = Ur(r.__v), a = !1, s = function() {
|
|
2381
|
-
a || (a = !0, n.__R = null, o ? o(l) : l());
|
|
2382
|
-
};
|
|
2383
|
-
n.__R = s;
|
|
2384
|
-
var l = function() {
|
|
2385
|
-
if (!--r.__u) {
|
|
2386
|
-
if (r.state.__a) {
|
|
2387
|
-
var d = r.state.__a;
|
|
2388
|
-
r.__v.__k[0] = $r(d, d.__c.__P, d.__c.__O);
|
|
2389
|
-
}
|
|
2390
|
-
var f;
|
|
2391
|
-
for (r.setState({ __a: r.__b = null }); f = r.t.pop(); )
|
|
2392
|
-
f.forceUpdate();
|
|
2393
|
-
}
|
|
2394
|
-
}, c = t.__h === !0;
|
|
2395
|
-
r.__u++ || c || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(s, s);
|
|
2396
|
-
}, Ve.prototype.componentWillUnmount = function() {
|
|
2397
|
-
this.t = [];
|
|
2398
|
-
}, Ve.prototype.render = function(e, t) {
|
|
2399
|
-
if (this.__b) {
|
|
2400
|
-
if (this.__v.__k) {
|
|
2401
|
-
var n = document.createElement("div"), r = this.__v.__k[0].__c;
|
|
2402
|
-
this.__v.__k[0] = Vr(this.__b, n, r.__O = r.__P);
|
|
2403
|
-
}
|
|
2404
|
-
this.__b = null;
|
|
2405
|
-
}
|
|
2406
|
-
var o = t.__a && X(D, null, e.fallback);
|
|
2407
|
-
return o && (o.__h = null), [X(D, null, t.__a ? null : e.children), o];
|
|
2408
|
-
};
|
|
2409
|
-
var Fn = function(e, t, n) {
|
|
2410
|
-
if (++n[1] === n[0] && e.o.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.o.size))
|
|
2411
|
-
for (n = e.u; n; ) {
|
|
2412
|
-
for (; n.length > 3; )
|
|
2413
|
-
n.pop()();
|
|
2414
|
-
if (n[1] < n[0])
|
|
2415
|
-
break;
|
|
2416
|
-
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];
|
|
2417
1970
|
}
|
|
2418
1971
|
};
|
|
2419
|
-
function
|
|
1972
|
+
function ya(e) {
|
|
2420
1973
|
return this.getChildContext = function() {
|
|
2421
1974
|
return e.context;
|
|
2422
1975
|
}, e.children;
|
|
2423
1976
|
}
|
|
2424
|
-
function
|
|
1977
|
+
function ga(e) {
|
|
2425
1978
|
var t = this, n = e.i;
|
|
2426
1979
|
t.componentWillUnmount = function() {
|
|
2427
1980
|
$e(null, t.l), t.l = null, t.i = null;
|
|
@@ -2431,40 +1984,40 @@ function Ti(e) {
|
|
|
2431
1984
|
this.childNodes.push(r), t.i.appendChild(r);
|
|
2432
1985
|
}, removeChild: function(r) {
|
|
2433
1986
|
this.childNodes.splice(this.childNodes.indexOf(r) >>> 1, 1), t.i.removeChild(r);
|
|
2434
|
-
} }), $e(X(
|
|
1987
|
+
} }), $e(X(ya, { context: t.context }, e.__v), t.l)) : t.l && t.componentWillUnmount();
|
|
2435
1988
|
}
|
|
2436
|
-
function
|
|
2437
|
-
var n = X(
|
|
1989
|
+
function Pr(e, t) {
|
|
1990
|
+
var n = X(ga, { __v: e, i: t });
|
|
2438
1991
|
return n.containerInfo = t, n;
|
|
2439
1992
|
}
|
|
2440
|
-
(
|
|
2441
|
-
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);
|
|
2442
1995
|
return r[0]++, function(o) {
|
|
2443
1996
|
var a = function() {
|
|
2444
|
-
t.props.revealOrder ? (r.push(o),
|
|
1997
|
+
t.props.revealOrder ? (r.push(o), Mn(t, e, r)) : o();
|
|
2445
1998
|
};
|
|
2446
1999
|
n ? n(a) : a();
|
|
2447
2000
|
};
|
|
2448
|
-
},
|
|
2001
|
+
}, Le.prototype.render = function(e) {
|
|
2449
2002
|
this.u = null, this.o = /* @__PURE__ */ new Map();
|
|
2450
2003
|
var t = le(e.children);
|
|
2451
2004
|
e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
|
|
2452
2005
|
for (var n = t.length; n--; )
|
|
2453
2006
|
this.o.set(t[n], this.u = [1, 0, this.u]);
|
|
2454
2007
|
return e.children;
|
|
2455
|
-
},
|
|
2008
|
+
}, Le.prototype.componentDidUpdate = Le.prototype.componentDidMount = function() {
|
|
2456
2009
|
var e = this;
|
|
2457
2010
|
this.o.forEach(function(t, n) {
|
|
2458
|
-
|
|
2011
|
+
Mn(e, n, t);
|
|
2459
2012
|
});
|
|
2460
2013
|
};
|
|
2461
|
-
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) {
|
|
2462
2015
|
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
2463
2016
|
};
|
|
2464
|
-
function
|
|
2017
|
+
function Vr(e, t, n) {
|
|
2465
2018
|
return t.__k == null && (t.textContent = ""), $e(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
2466
2019
|
}
|
|
2467
|
-
function
|
|
2020
|
+
function $r(e, t, n) {
|
|
2468
2021
|
return _r(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
2469
2022
|
}
|
|
2470
2023
|
G.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
@@ -2474,140 +2027,165 @@ G.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveP
|
|
|
2474
2027
|
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
|
|
2475
2028
|
} });
|
|
2476
2029
|
});
|
|
2477
|
-
var
|
|
2478
|
-
function
|
|
2030
|
+
var Pn = w.event;
|
|
2031
|
+
function Sa() {
|
|
2479
2032
|
}
|
|
2480
|
-
function
|
|
2033
|
+
function Ca() {
|
|
2481
2034
|
return this.cancelBubble;
|
|
2482
2035
|
}
|
|
2483
|
-
function
|
|
2036
|
+
function xa() {
|
|
2484
2037
|
return this.defaultPrevented;
|
|
2485
2038
|
}
|
|
2486
2039
|
w.event = function(e) {
|
|
2487
|
-
return
|
|
2040
|
+
return Pn && (e = Pn(e)), e.persist = Sa, e.isPropagationStopped = Ca, e.isDefaultPrevented = xa, e.nativeEvent = e;
|
|
2488
2041
|
};
|
|
2489
|
-
var Yt,
|
|
2042
|
+
var Yt, Ta = { enumerable: !1, configurable: !0, get: function() {
|
|
2490
2043
|
return this.class;
|
|
2491
|
-
} },
|
|
2044
|
+
} }, jn = w.vnode;
|
|
2492
2045
|
w.vnode = function(e) {
|
|
2493
2046
|
typeof e.type == "string" && function(t) {
|
|
2494
2047
|
var n = t.props, r = t.type, o = {};
|
|
2495
2048
|
for (var a in n) {
|
|
2496
2049
|
var s = n[a];
|
|
2497
|
-
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")) {
|
|
2498
2051
|
var l = a.toLowerCase();
|
|
2499
|
-
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;
|
|
2500
2053
|
}
|
|
2501
2054
|
}
|
|
2502
2055
|
r == "select" && o.multiple && Array.isArray(o.value) && (o.value = le(n.children).forEach(function(c) {
|
|
2503
2056
|
c.props.selected = o.value.indexOf(c.props.value) != -1;
|
|
2504
2057
|
})), r == "select" && o.defaultValue != null && (o.value = le(n.children).forEach(function(c) {
|
|
2505
2058
|
c.props.selected = o.multiple ? o.defaultValue.indexOf(c.props.value) != -1 : o.defaultValue == c.props.value;
|
|
2506
|
-
})), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className",
|
|
2507
|
-
}(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);
|
|
2508
2061
|
};
|
|
2509
|
-
var
|
|
2062
|
+
var Vn = w.__r;
|
|
2510
2063
|
w.__r = function(e) {
|
|
2511
|
-
|
|
2064
|
+
Vn && Vn(e), Yt = e.__c;
|
|
2512
2065
|
};
|
|
2513
|
-
var
|
|
2066
|
+
var $n = w.diffed;
|
|
2514
2067
|
w.diffed = function(e) {
|
|
2515
|
-
|
|
2068
|
+
$n && $n(e);
|
|
2516
2069
|
var t = e.props, n = e.__e;
|
|
2517
2070
|
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), Yt = null;
|
|
2518
2071
|
};
|
|
2519
|
-
var
|
|
2072
|
+
var Ur = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
2520
2073
|
return Yt.__n[e.__c].props.value;
|
|
2521
|
-
} } } },
|
|
2522
|
-
function
|
|
2074
|
+
} } } }, ka = "17.0.2";
|
|
2075
|
+
function Hr(e) {
|
|
2523
2076
|
return X.bind(null, e);
|
|
2524
2077
|
}
|
|
2525
2078
|
function Jt(e) {
|
|
2526
|
-
return !!e && e.$$typeof ===
|
|
2079
|
+
return !!e && e.$$typeof === jr;
|
|
2527
2080
|
}
|
|
2528
|
-
function
|
|
2529
|
-
return Jt(e) ?
|
|
2081
|
+
function Fr(e) {
|
|
2082
|
+
return Jt(e) ? Do.apply(null, arguments) : e;
|
|
2530
2083
|
}
|
|
2531
|
-
function
|
|
2084
|
+
function Wr(e) {
|
|
2532
2085
|
return !!e.__k && ($e(null, e), !0);
|
|
2533
2086
|
}
|
|
2534
|
-
function
|
|
2087
|
+
function zr(e) {
|
|
2535
2088
|
return e && (e.base || e.nodeType === 1 && e) || null;
|
|
2536
2089
|
}
|
|
2537
|
-
var
|
|
2090
|
+
var Br = function(e, t) {
|
|
2538
2091
|
return e(t);
|
|
2539
|
-
},
|
|
2092
|
+
}, qr = function(e, t) {
|
|
2540
2093
|
return e(t);
|
|
2541
|
-
},
|
|
2094
|
+
}, Gr = I;
|
|
2542
2095
|
function Qt(e) {
|
|
2543
2096
|
e();
|
|
2544
2097
|
}
|
|
2545
|
-
function
|
|
2098
|
+
function Kr(e) {
|
|
2546
2099
|
return e;
|
|
2547
2100
|
}
|
|
2548
|
-
function
|
|
2101
|
+
function Zr() {
|
|
2549
2102
|
return [!1, Qt];
|
|
2550
2103
|
}
|
|
2551
|
-
var
|
|
2552
|
-
function
|
|
2104
|
+
var Yr = Ce;
|
|
2105
|
+
function Jr(e, t) {
|
|
2553
2106
|
var n = t(), r = j({ h: { __: n, v: t } }), o = r[0].h, a = r[1];
|
|
2554
2107
|
return Ce(function() {
|
|
2555
|
-
o.__ = n, o.v = t,
|
|
2108
|
+
o.__ = n, o.v = t, mt(o.__, t()) || a({ h: o });
|
|
2556
2109
|
}, [e, n, t]), ee(function() {
|
|
2557
|
-
return
|
|
2558
|
-
|
|
2110
|
+
return mt(o.__, o.v()) || a({ h: o }), e(function() {
|
|
2111
|
+
mt(o.__, o.v()) || a({ h: o });
|
|
2559
2112
|
});
|
|
2560
2113
|
}, [e]), n;
|
|
2561
2114
|
}
|
|
2562
|
-
var
|
|
2563
|
-
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({
|
|
2564
2117
|
__proto__: null,
|
|
2565
|
-
Children:
|
|
2118
|
+
Children: Nr,
|
|
2566
2119
|
Component: G,
|
|
2567
|
-
Fragment:
|
|
2120
|
+
Fragment: I,
|
|
2568
2121
|
PureComponent: ot,
|
|
2569
|
-
StrictMode:
|
|
2122
|
+
StrictMode: Gr,
|
|
2570
2123
|
Suspense: Ve,
|
|
2571
|
-
SuspenseList:
|
|
2572
|
-
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:
|
|
2573
|
-
cloneElement:
|
|
2124
|
+
SuspenseList: Le,
|
|
2125
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Ur,
|
|
2126
|
+
cloneElement: Fr,
|
|
2574
2127
|
createContext: it,
|
|
2575
2128
|
createElement: X,
|
|
2576
|
-
createFactory:
|
|
2577
|
-
createPortal:
|
|
2129
|
+
createFactory: Hr,
|
|
2130
|
+
createPortal: Pr,
|
|
2578
2131
|
createRef: ir,
|
|
2579
|
-
default:
|
|
2580
|
-
findDOMNode:
|
|
2581
|
-
flushSync:
|
|
2132
|
+
default: ct,
|
|
2133
|
+
findDOMNode: zr,
|
|
2134
|
+
flushSync: qr,
|
|
2582
2135
|
forwardRef: Zt,
|
|
2583
|
-
hydrate:
|
|
2136
|
+
hydrate: $r,
|
|
2584
2137
|
isValidElement: Jt,
|
|
2585
|
-
lazy:
|
|
2586
|
-
memo:
|
|
2587
|
-
render:
|
|
2138
|
+
lazy: Mr,
|
|
2139
|
+
memo: Lr,
|
|
2140
|
+
render: Vr,
|
|
2588
2141
|
startTransition: Qt,
|
|
2589
|
-
unmountComponentAtNode:
|
|
2590
|
-
unstable_batchedUpdates:
|
|
2142
|
+
unmountComponentAtNode: Wr,
|
|
2143
|
+
unstable_batchedUpdates: Br,
|
|
2591
2144
|
useCallback: je,
|
|
2592
2145
|
useContext: lt,
|
|
2593
2146
|
useDebugValue: qt,
|
|
2594
|
-
useDeferredValue:
|
|
2147
|
+
useDeferredValue: Kr,
|
|
2595
2148
|
useEffect: ee,
|
|
2596
|
-
useErrorBoundary:
|
|
2149
|
+
useErrorBoundary: sa,
|
|
2597
2150
|
useId: Gt,
|
|
2598
|
-
useImperativeHandle:
|
|
2599
|
-
useInsertionEffect:
|
|
2151
|
+
useImperativeHandle: Tr,
|
|
2152
|
+
useInsertionEffect: Yr,
|
|
2600
2153
|
useLayoutEffect: Ce,
|
|
2601
2154
|
useMemo: be,
|
|
2602
2155
|
useReducer: Bt,
|
|
2603
2156
|
useRef: q,
|
|
2604
2157
|
useState: j,
|
|
2605
|
-
useSyncExternalStore:
|
|
2606
|
-
useTransition:
|
|
2607
|
-
version:
|
|
2158
|
+
useSyncExternalStore: Jr,
|
|
2159
|
+
useTransition: Zr,
|
|
2160
|
+
version: ka
|
|
2608
2161
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2609
|
-
var
|
|
2610
|
-
|
|
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);
|
|
2611
2189
|
/**
|
|
2612
2190
|
* @license React
|
|
2613
2191
|
* use-sync-external-store-shim.production.min.js
|
|
@@ -2617,12 +2195,12 @@ const oo = /* @__PURE__ */ Zo(ji);
|
|
|
2617
2195
|
* This source code is licensed under the MIT license found in the
|
|
2618
2196
|
* LICENSE file in the root directory of this source tree.
|
|
2619
2197
|
*/
|
|
2620
|
-
var
|
|
2621
|
-
function
|
|
2622
|
-
if (
|
|
2623
|
-
return
|
|
2624
|
-
|
|
2625
|
-
var e =
|
|
2198
|
+
var Un;
|
|
2199
|
+
function Na() {
|
|
2200
|
+
if (Un)
|
|
2201
|
+
return bt;
|
|
2202
|
+
Un = 1;
|
|
2203
|
+
var e = Qr;
|
|
2626
2204
|
function t(i, p) {
|
|
2627
2205
|
return i === p && (i !== 0 || 1 / i === 1 / p) || i !== i && p !== p;
|
|
2628
2206
|
}
|
|
@@ -2651,9 +2229,9 @@ function Vi() {
|
|
|
2651
2229
|
return p();
|
|
2652
2230
|
}
|
|
2653
2231
|
var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : l;
|
|
2654
|
-
return
|
|
2232
|
+
return bt.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : f, bt;
|
|
2655
2233
|
}
|
|
2656
|
-
var
|
|
2234
|
+
var Et = {};
|
|
2657
2235
|
/**
|
|
2658
2236
|
* @license React
|
|
2659
2237
|
* use-sync-external-store-shim.development.js
|
|
@@ -2663,11 +2241,11 @@ var wt = {};
|
|
|
2663
2241
|
* This source code is licensed under the MIT license found in the
|
|
2664
2242
|
* LICENSE file in the root directory of this source tree.
|
|
2665
2243
|
*/
|
|
2666
|
-
var
|
|
2667
|
-
function
|
|
2668
|
-
return
|
|
2244
|
+
var Hn;
|
|
2245
|
+
function Da() {
|
|
2246
|
+
return Hn || (Hn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2669
2247
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
2670
|
-
var e =
|
|
2248
|
+
var e = Qr, t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
2671
2249
|
function n(S) {
|
|
2672
2250
|
{
|
|
2673
2251
|
for (var v = arguments.length, b = new Array(v > 1 ? v - 1 : 0), m = 1; m < v; m++)
|
|
@@ -2731,72 +2309,72 @@ function $i() {
|
|
|
2731
2309
|
return v();
|
|
2732
2310
|
}
|
|
2733
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;
|
|
2734
|
-
|
|
2735
|
-
}()),
|
|
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;
|
|
2736
2314
|
}
|
|
2737
|
-
process.env.NODE_ENV === "production" ?
|
|
2738
|
-
var
|
|
2315
|
+
process.env.NODE_ENV === "production" ? It.exports = Na() : It.exports = Da();
|
|
2316
|
+
var Aa = It.exports;
|
|
2739
2317
|
const pe = () => {
|
|
2740
2318
|
}, W = (
|
|
2741
2319
|
/*#__NOINLINE__*/
|
|
2742
2320
|
pe()
|
|
2743
|
-
),
|
|
2321
|
+
), wt = Object, R = (e) => e === W, Q = (e) => typeof e == "function", ge = (e, t) => ({
|
|
2744
2322
|
...e,
|
|
2745
2323
|
...t
|
|
2746
|
-
}),
|
|
2747
|
-
let
|
|
2748
|
-
const
|
|
2324
|
+
}), Ia = (e) => Q(e.then), Ye = /* @__PURE__ */ new WeakMap();
|
|
2325
|
+
let Ma = 0;
|
|
2326
|
+
const He = (e) => {
|
|
2749
2327
|
const t = typeof e, n = e && e.constructor, r = n == Date;
|
|
2750
2328
|
let o, a;
|
|
2751
|
-
if (
|
|
2329
|
+
if (wt(e) === e && !r && n != RegExp) {
|
|
2752
2330
|
if (o = Ye.get(e), o)
|
|
2753
2331
|
return o;
|
|
2754
|
-
if (o = ++
|
|
2332
|
+
if (o = ++Ma + "~", Ye.set(e, o), n == Array) {
|
|
2755
2333
|
for (o = "@", a = 0; a < e.length; a++)
|
|
2756
|
-
o +=
|
|
2334
|
+
o += He(e[a]) + ",";
|
|
2757
2335
|
Ye.set(e, o);
|
|
2758
2336
|
}
|
|
2759
|
-
if (n ==
|
|
2337
|
+
if (n == wt) {
|
|
2760
2338
|
o = "#";
|
|
2761
|
-
const s =
|
|
2339
|
+
const s = wt.keys(e).sort();
|
|
2762
2340
|
for (; !R(a = s.pop()); )
|
|
2763
|
-
R(e[a]) || (o += a + ":" +
|
|
2341
|
+
R(e[a]) || (o += a + ":" + He(e[a]) + ",");
|
|
2764
2342
|
Ye.set(e, o);
|
|
2765
2343
|
}
|
|
2766
2344
|
} else
|
|
2767
2345
|
o = r ? e.toJSON() : t == "symbol" ? e.toString() : t == "string" ? JSON.stringify(e) : "" + e;
|
|
2768
2346
|
return o;
|
|
2769
|
-
}, 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) => {
|
|
2770
2348
|
const n = ae.get(e);
|
|
2771
2349
|
return [
|
|
2772
2350
|
// Getter
|
|
2773
|
-
() => !R(t) && e.get(t) ||
|
|
2351
|
+
() => !R(t) && e.get(t) || St,
|
|
2774
2352
|
// Setter
|
|
2775
2353
|
(r) => {
|
|
2776
2354
|
if (!R(t)) {
|
|
2777
2355
|
const o = e.get(t);
|
|
2778
|
-
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);
|
|
2779
2357
|
}
|
|
2780
2358
|
},
|
|
2781
2359
|
// Subscriber
|
|
2782
2360
|
n[6],
|
|
2783
2361
|
// Get server cache snapshot
|
|
2784
|
-
() => !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
|
|
2785
2363
|
];
|
|
2786
2364
|
};
|
|
2787
2365
|
let Pt = !0;
|
|
2788
|
-
const
|
|
2366
|
+
const ja = () => Pt, [jt, Vt] = ut && window.addEventListener ? [
|
|
2789
2367
|
window.addEventListener.bind(window),
|
|
2790
2368
|
window.removeEventListener.bind(window)
|
|
2791
2369
|
] : [
|
|
2792
2370
|
pe,
|
|
2793
2371
|
pe
|
|
2794
|
-
],
|
|
2372
|
+
], Va = () => {
|
|
2795
2373
|
const e = Mt && document.visibilityState;
|
|
2796
2374
|
return R(e) || e !== "hidden";
|
|
2797
|
-
},
|
|
2375
|
+
}, $a = (e) => (Mt && document.addEventListener("visibilitychange", e), jt("focus", e), () => {
|
|
2798
2376
|
Mt && document.removeEventListener("visibilitychange", e), Vt("focus", e);
|
|
2799
|
-
}),
|
|
2377
|
+
}), Ua = (e) => {
|
|
2800
2378
|
const t = () => {
|
|
2801
2379
|
Pt = !0, e();
|
|
2802
2380
|
}, n = () => {
|
|
@@ -2805,16 +2383,16 @@ const zi = () => Pt, [jt, Vt] = dt && window.addEventListener ? [
|
|
|
2805
2383
|
return jt("online", t), jt("offline", n), () => {
|
|
2806
2384
|
Vt("online", t), Vt("offline", n);
|
|
2807
2385
|
};
|
|
2808
|
-
},
|
|
2809
|
-
isOnline:
|
|
2810
|
-
isVisible:
|
|
2811
|
-
},
|
|
2812
|
-
initFocus:
|
|
2813
|
-
initReconnect:
|
|
2814
|
-
},
|
|
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 && ([
|
|
2815
2393
|
"slow-2g",
|
|
2816
2394
|
"2g"
|
|
2817
|
-
].includes(
|
|
2395
|
+
].includes(xt.effectiveType) || xt.saveData), en = (e) => {
|
|
2818
2396
|
if (Q(e))
|
|
2819
2397
|
try {
|
|
2820
2398
|
e = e();
|
|
@@ -2822,21 +2400,21 @@ const zi = () => Pt, [jt, Vt] = dt && window.addEventListener ? [
|
|
|
2822
2400
|
e = "";
|
|
2823
2401
|
}
|
|
2824
2402
|
const t = e;
|
|
2825
|
-
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) : "", [
|
|
2826
2404
|
e,
|
|
2827
2405
|
t
|
|
2828
2406
|
];
|
|
2829
2407
|
};
|
|
2830
|
-
let
|
|
2831
|
-
const $t = () => ++
|
|
2832
|
-
var
|
|
2408
|
+
let za = 0;
|
|
2409
|
+
const $t = () => ++za, eo = 0, to = 1, no = 2, Ba = 3;
|
|
2410
|
+
var Ie = {
|
|
2833
2411
|
__proto__: null,
|
|
2834
|
-
ERROR_REVALIDATE_EVENT:
|
|
2835
|
-
FOCUS_EVENT:
|
|
2836
|
-
MUTATE_EVENT:
|
|
2837
|
-
RECONNECT_EVENT:
|
|
2412
|
+
ERROR_REVALIDATE_EVENT: Ba,
|
|
2413
|
+
FOCUS_EVENT: eo,
|
|
2414
|
+
MUTATE_EVENT: no,
|
|
2415
|
+
RECONNECT_EVENT: to
|
|
2838
2416
|
};
|
|
2839
|
-
async function
|
|
2417
|
+
async function ro(...e) {
|
|
2840
2418
|
const [t, n, r, o] = e, a = ge({
|
|
2841
2419
|
populateCache: !0,
|
|
2842
2420
|
throwOnError: !0
|
|
@@ -2859,9 +2437,9 @@ async function co(...e) {
|
|
|
2859
2437
|
const [y] = en(p);
|
|
2860
2438
|
if (!y)
|
|
2861
2439
|
return;
|
|
2862
|
-
const [_, h] =
|
|
2440
|
+
const [_, h] = Xr(t, y), [C, g, E, S] = ae.get(t), v = () => {
|
|
2863
2441
|
const H = C[y];
|
|
2864
|
-
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;
|
|
2865
2443
|
};
|
|
2866
2444
|
if (e.length < 3)
|
|
2867
2445
|
return v();
|
|
@@ -2881,7 +2459,7 @@ async function co(...e) {
|
|
|
2881
2459
|
} catch (H) {
|
|
2882
2460
|
m = H;
|
|
2883
2461
|
}
|
|
2884
|
-
if (b &&
|
|
2462
|
+
if (b && Ia(b))
|
|
2885
2463
|
if (b = await b.catch((H) => {
|
|
2886
2464
|
m = H;
|
|
2887
2465
|
}), k !== g[y][0]) {
|
|
@@ -2919,12 +2497,12 @@ async function co(...e) {
|
|
|
2919
2497
|
return b;
|
|
2920
2498
|
}
|
|
2921
2499
|
}
|
|
2922
|
-
const
|
|
2500
|
+
const zn = (e, t) => {
|
|
2923
2501
|
for (const n in e)
|
|
2924
2502
|
e[n][0] && e[n][0](t);
|
|
2925
|
-
},
|
|
2503
|
+
}, qa = (e, t) => {
|
|
2926
2504
|
if (!ae.has(e)) {
|
|
2927
|
-
const n = ge(
|
|
2505
|
+
const n = ge(Fa, t), r = {}, o = ro.bind(W, e);
|
|
2928
2506
|
let a = pe;
|
|
2929
2507
|
const s = {}, l = (f, i) => {
|
|
2930
2508
|
const p = s[f] || [];
|
|
@@ -2944,8 +2522,8 @@ const Jn = (e, t) => {
|
|
|
2944
2522
|
o,
|
|
2945
2523
|
c,
|
|
2946
2524
|
l
|
|
2947
|
-
]), !
|
|
2948
|
-
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)));
|
|
2949
2527
|
a = () => {
|
|
2950
2528
|
f && f(), i && i(), ae.delete(e);
|
|
2951
2529
|
};
|
|
@@ -2962,16 +2540,16 @@ const Jn = (e, t) => {
|
|
|
2962
2540
|
e,
|
|
2963
2541
|
ae.get(e)[4]
|
|
2964
2542
|
];
|
|
2965
|
-
},
|
|
2543
|
+
}, Ga = (e, t, n, r, o) => {
|
|
2966
2544
|
const a = n.errorRetryCount, s = o.retryCount, l = ~~((Math.random() + 0.5) * (1 << (s < 8 ? s : 8))) * n.errorRetryInterval;
|
|
2967
2545
|
!R(a) && s > a || setTimeout(r, l, o);
|
|
2968
|
-
},
|
|
2546
|
+
}, Ka = (e, t) => He(e) == He(t), [oo, Za] = qa(/* @__PURE__ */ new Map()), Ya = ge(
|
|
2969
2547
|
{
|
|
2970
2548
|
// events
|
|
2971
2549
|
onLoadingSlow: pe,
|
|
2972
2550
|
onSuccess: pe,
|
|
2973
2551
|
onError: pe,
|
|
2974
|
-
onErrorRetry:
|
|
2552
|
+
onErrorRetry: Ga,
|
|
2975
2553
|
onDiscarded: pe,
|
|
2976
2554
|
// switches
|
|
2977
2555
|
revalidateOnFocus: !0,
|
|
@@ -2979,29 +2557,29 @@ const Jn = (e, t) => {
|
|
|
2979
2557
|
revalidateIfStale: !0,
|
|
2980
2558
|
shouldRetryOnError: !0,
|
|
2981
2559
|
// timeouts
|
|
2982
|
-
errorRetryInterval:
|
|
2560
|
+
errorRetryInterval: Wn ? 1e4 : 5e3,
|
|
2983
2561
|
focusThrottleInterval: 5 * 1e3,
|
|
2984
2562
|
dedupingInterval: 2 * 1e3,
|
|
2985
|
-
loadingTimeout:
|
|
2563
|
+
loadingTimeout: Wn ? 5e3 : 3e3,
|
|
2986
2564
|
// providers
|
|
2987
|
-
compare:
|
|
2565
|
+
compare: Ka,
|
|
2988
2566
|
isPaused: () => !1,
|
|
2989
|
-
cache:
|
|
2990
|
-
mutate:
|
|
2567
|
+
cache: oo,
|
|
2568
|
+
mutate: Za,
|
|
2991
2569
|
fallback: {}
|
|
2992
2570
|
},
|
|
2993
2571
|
// use web preset by default
|
|
2994
|
-
|
|
2995
|
-
),
|
|
2572
|
+
Ha
|
|
2573
|
+
), Ja = (e, t) => {
|
|
2996
2574
|
const n = ge(e, t);
|
|
2997
2575
|
if (t) {
|
|
2998
2576
|
const { use: r, fallback: o } = e, { use: a, fallback: s } = t;
|
|
2999
2577
|
r && a && (n.use = r.concat(a)), o && s && (n.fallback = ge(o, s));
|
|
3000
2578
|
}
|
|
3001
2579
|
return n;
|
|
3002
|
-
},
|
|
3003
|
-
|
|
3004
|
-
},
|
|
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]) ? [
|
|
3005
2583
|
e[0],
|
|
3006
2584
|
e[1],
|
|
3007
2585
|
e[2] || {}
|
|
@@ -3009,28 +2587,28 @@ const Jn = (e, t) => {
|
|
|
3009
2587
|
e[0],
|
|
3010
2588
|
null,
|
|
3011
2589
|
(e[1] === null ? e[2] : e[1]) || {}
|
|
3012
|
-
],
|
|
3013
|
-
const [s] = en(t), [, , , l] = ae.get(
|
|
3014
|
-
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))
|
|
3015
2593
|
return n(...a);
|
|
3016
2594
|
const c = l[s];
|
|
3017
2595
|
return R(c) ? n(...a) : (delete l[s], c);
|
|
3018
|
-
}), r),
|
|
3019
|
-
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);
|
|
3020
2598
|
let c = e;
|
|
3021
|
-
const { use: d } = l, f = (d || []).concat(
|
|
2599
|
+
const { use: d } = l, f = (d || []).concat(ai);
|
|
3022
2600
|
for (let i = f.length; i--; )
|
|
3023
2601
|
c = f[i](c);
|
|
3024
2602
|
return c(o, a || l.fetcher || null, l);
|
|
3025
|
-
},
|
|
2603
|
+
}, si = (e, t, n) => {
|
|
3026
2604
|
const r = t[e] || (t[e] = []);
|
|
3027
2605
|
return r.push(n), () => {
|
|
3028
2606
|
const o = r.indexOf(n);
|
|
3029
2607
|
o >= 0 && (r[o] = r[r.length - 1], r.pop());
|
|
3030
2608
|
};
|
|
3031
2609
|
};
|
|
3032
|
-
|
|
3033
|
-
const
|
|
2610
|
+
ti();
|
|
2611
|
+
const Bn = ct.use || ((e) => {
|
|
3034
2612
|
if (e.status === "pending")
|
|
3035
2613
|
throw e;
|
|
3036
2614
|
if (e.status === "fulfilled")
|
|
@@ -3040,23 +2618,23 @@ const Qn = ut.use || ((e) => {
|
|
|
3040
2618
|
}, (t) => {
|
|
3041
2619
|
e.status = "rejected", e.reason = t;
|
|
3042
2620
|
}), e);
|
|
3043
|
-
}),
|
|
2621
|
+
}), Tt = {
|
|
3044
2622
|
dedupe: !0
|
|
3045
|
-
},
|
|
3046
|
-
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) => {
|
|
3047
2625
|
for (const $ in ue) {
|
|
3048
2626
|
const M = $;
|
|
3049
2627
|
if (M === "data") {
|
|
3050
|
-
if (!o(
|
|
2628
|
+
if (!o(D[M], A[M]) && (!R(D[M]) || !o(Ke, A[M])))
|
|
3051
2629
|
return !1;
|
|
3052
|
-
} else if (A[M] !==
|
|
2630
|
+
} else if (A[M] !== D[M])
|
|
3053
2631
|
return !1;
|
|
3054
2632
|
}
|
|
3055
2633
|
return !0;
|
|
3056
2634
|
}, nn = be(() => {
|
|
3057
|
-
const
|
|
2635
|
+
const D = (() => !g || !t ? !1 : R(l) ? x().isPaused() || a ? !1 : R(c) ? !0 : c : l)(), A = (F) => {
|
|
3058
2636
|
const ne = ge(F);
|
|
3059
|
-
return delete ne._k,
|
|
2637
|
+
return delete ne._k, D ? {
|
|
3060
2638
|
isValidating: !0,
|
|
3061
2639
|
isLoading: !0,
|
|
3062
2640
|
...ne
|
|
@@ -3073,9 +2651,9 @@ const Qn = ut.use || ((e) => {
|
|
|
3073
2651
|
}, [
|
|
3074
2652
|
r,
|
|
3075
2653
|
g
|
|
3076
|
-
]), Te =
|
|
3077
|
-
(
|
|
3078
|
-
tn($, A) ||
|
|
2654
|
+
]), Te = Aa.useSyncExternalStore(je(
|
|
2655
|
+
(D) => K(g, (A, $) => {
|
|
2656
|
+
tn($, A) || D();
|
|
3079
2657
|
}),
|
|
3080
2658
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3081
2659
|
[
|
|
@@ -3083,12 +2661,12 @@ const Qn = ut.use || ((e) => {
|
|
|
3083
2661
|
g
|
|
3084
2662
|
]
|
|
3085
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(
|
|
3086
|
-
async (
|
|
2664
|
+
async (D) => {
|
|
3087
2665
|
const A = m.current;
|
|
3088
2666
|
if (!g || !A || v.current || x().isPaused())
|
|
3089
2667
|
return !1;
|
|
3090
2668
|
let $, M, Z = !0;
|
|
3091
|
-
const Re =
|
|
2669
|
+
const Re = D || {}, V = !h[g] || !Re.dedupe, F = () => Fn ? !v.current && g === b.current && S.current : g === b.current, ne = {
|
|
3092
2670
|
isValidating: !1,
|
|
3093
2671
|
isLoading: !1
|
|
3094
2672
|
}, cn = () => {
|
|
@@ -3122,7 +2700,7 @@ const Qn = ut.use || ((e) => {
|
|
|
3122
2700
|
const re = x(), { shouldRetryOnError: ft } = re;
|
|
3123
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) => {
|
|
3124
2702
|
const _t = y[g];
|
|
3125
|
-
_t && _t[0] && _t[0](
|
|
2703
|
+
_t && _t[0] && _t[0](Ie.ERROR_REVALIDATE_EVENT, mo);
|
|
3126
2704
|
}, {
|
|
3127
2705
|
retryCount: (Re.retryCount || 0) + 1,
|
|
3128
2706
|
dedupe: !0
|
|
@@ -3147,85 +2725,701 @@ const Qn = ut.use || ((e) => {
|
|
|
3147
2725
|
]
|
|
3148
2726
|
), ln = je(
|
|
3149
2727
|
// Use callback to make sure `keyRef.current` returns latest result every time
|
|
3150
|
-
(...
|
|
2728
|
+
(...D) => ro(r, b.current, ...D),
|
|
3151
2729
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3152
2730
|
[]
|
|
3153
2731
|
);
|
|
3154
|
-
if (
|
|
2732
|
+
if (Ct(() => {
|
|
3155
2733
|
m.current = t, k.current = n, R(ke) || (on.current = ke);
|
|
3156
|
-
}),
|
|
2734
|
+
}), Ct(() => {
|
|
3157
2735
|
if (!g)
|
|
3158
2736
|
return;
|
|
3159
|
-
const
|
|
2737
|
+
const D = Ae.bind(W, Tt);
|
|
3160
2738
|
let A = 0;
|
|
3161
|
-
const M =
|
|
3162
|
-
if (Z ==
|
|
2739
|
+
const M = si(g, y, (Z, Re = {}) => {
|
|
2740
|
+
if (Z == Ie.FOCUS_EVENT) {
|
|
3163
2741
|
const V = Date.now();
|
|
3164
|
-
x().revalidateOnFocus && V > A && T() && (A = V + x().focusThrottleInterval,
|
|
3165
|
-
} else if (Z ==
|
|
3166
|
-
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();
|
|
3167
2745
|
else {
|
|
3168
|
-
if (Z ==
|
|
2746
|
+
if (Z == Ie.MUTATE_EVENT)
|
|
3169
2747
|
return Ae();
|
|
3170
|
-
if (Z ==
|
|
2748
|
+
if (Z == Ie.ERROR_REVALIDATE_EVENT)
|
|
3171
2749
|
return Ae(Re);
|
|
3172
2750
|
}
|
|
3173
2751
|
});
|
|
3174
2752
|
return v.current = !1, b.current = g, S.current = !0, U({
|
|
3175
2753
|
_k: E
|
|
3176
|
-
}), an && (R(Oe) ||
|
|
2754
|
+
}), an && (R(Oe) || Fe ? D() : Wa(D)), () => {
|
|
3177
2755
|
v.current = !0, M();
|
|
3178
2756
|
};
|
|
3179
2757
|
}, [
|
|
3180
2758
|
g
|
|
3181
|
-
]),
|
|
3182
|
-
let
|
|
2759
|
+
]), Ct(() => {
|
|
2760
|
+
let D;
|
|
3183
2761
|
function A() {
|
|
3184
2762
|
const M = Q(d) ? d(O().data) : d;
|
|
3185
|
-
M &&
|
|
2763
|
+
M && D !== -1 && (D = setTimeout($, M));
|
|
3186
2764
|
}
|
|
3187
2765
|
function $() {
|
|
3188
|
-
!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
|
+
]
|
|
3189
3287
|
}
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
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);
|
|
3206
3394
|
}
|
|
3207
|
-
|
|
3208
|
-
const A = Ae(kt);
|
|
3209
|
-
R(Ke) || (A.status = "fulfilled", A.value = !0), Qn(A);
|
|
3210
|
-
} else
|
|
3211
|
-
throw Ge;
|
|
3395
|
+
return l === void 0 && (l = setTimeout(g, t)), s;
|
|
3212
3396
|
}
|
|
3213
|
-
return
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
get isLoading() {
|
|
3225
|
-
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;
|
|
3226
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)
|
|
3227
3416
|
};
|
|
3228
|
-
},
|
|
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(
|
|
3229
3423
|
({
|
|
3230
3424
|
disabled: e,
|
|
3231
3425
|
error: t,
|
|
@@ -3258,7 +3452,7 @@ const Qn = ut.use || ((e) => {
|
|
|
3258
3452
|
"data-active": y ? "true" : void 0,
|
|
3259
3453
|
"aria-controls": `ijs-${n}-menu`,
|
|
3260
3454
|
placeholder: r,
|
|
3261
|
-
class:
|
|
3455
|
+
class: dt({ size: "md" }),
|
|
3262
3456
|
onFocus: () => {
|
|
3263
3457
|
c == null || c(), _(!0);
|
|
3264
3458
|
},
|
|
@@ -3297,7 +3491,7 @@ const Qn = ut.use || ((e) => {
|
|
|
3297
3491
|
!t && y && !e && o.length > 0 ? /* @__PURE__ */ u(
|
|
3298
3492
|
"ul",
|
|
3299
3493
|
{
|
|
3300
|
-
className:
|
|
3494
|
+
className: io({
|
|
3301
3495
|
type: "long",
|
|
3302
3496
|
ring: "unset",
|
|
3303
3497
|
className: "ring-width-section ring-job-card-stroke absolute left-0 right-0 top-12 z-50 w-full shadow-sm"
|
|
@@ -3310,7 +3504,7 @@ const Qn = ut.use || ((e) => {
|
|
|
3310
3504
|
children: t ? /* @__PURE__ */ u("div", { role: "alert", children: g("geo_suggestions_error") }) : o.map((v) => /* @__PURE__ */ u(
|
|
3311
3505
|
"li",
|
|
3312
3506
|
{
|
|
3313
|
-
class:
|
|
3507
|
+
class: so({
|
|
3314
3508
|
type: "line",
|
|
3315
3509
|
className: "group/tag"
|
|
3316
3510
|
}),
|
|
@@ -3319,7 +3513,7 @@ const Qn = ut.use || ((e) => {
|
|
|
3319
3513
|
{
|
|
3320
3514
|
type: "button",
|
|
3321
3515
|
onMouseEnter: () => C(v.id),
|
|
3322
|
-
class:
|
|
3516
|
+
class: lo({
|
|
3323
3517
|
active: v.id === h,
|
|
3324
3518
|
className: "line-clamp-1 overflow-hidden truncate"
|
|
3325
3519
|
}),
|
|
@@ -3337,7 +3531,7 @@ const Qn = ut.use || ((e) => {
|
|
|
3337
3531
|
) : null
|
|
3338
3532
|
] });
|
|
3339
3533
|
}
|
|
3340
|
-
),
|
|
3534
|
+
), Rs = (e = {}) => new Promise((t, n) => {
|
|
3341
3535
|
var r, o;
|
|
3342
3536
|
if ((r = e.signal) != null && r.aborted) {
|
|
3343
3537
|
n(new DOMException("Aborted", "AbortError"));
|
|
@@ -3354,11 +3548,11 @@ const Qn = ut.use || ((e) => {
|
|
|
3354
3548
|
},
|
|
3355
3549
|
{ once: !0 }
|
|
3356
3550
|
);
|
|
3357
|
-
}),
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
},
|
|
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 = ({
|
|
3362
3556
|
onLocate: e,
|
|
3363
3557
|
onError: t,
|
|
3364
3558
|
signal: n
|
|
@@ -3372,17 +3566,17 @@ const Qn = ut.use || ((e) => {
|
|
|
3372
3566
|
"aria-label": l(r === "loading" ? "geo_locating" : "geo_my_location"),
|
|
3373
3567
|
type: "button",
|
|
3374
3568
|
onClick: () => {
|
|
3375
|
-
if (
|
|
3569
|
+
if (er) {
|
|
3376
3570
|
if (o("loading"), a)
|
|
3377
3571
|
return c(a);
|
|
3378
|
-
|
|
3572
|
+
Rs({ signal: n }).then((d) => {
|
|
3379
3573
|
const f = { lat: d.latitude, lng: d.longitude };
|
|
3380
3574
|
c(f);
|
|
3381
3575
|
}).catch((d) => {
|
|
3382
3576
|
if (console.log(d), d instanceof DOMException && d.name === "AbortError")
|
|
3383
3577
|
return o("idle");
|
|
3384
3578
|
o("error");
|
|
3385
|
-
const f =
|
|
3579
|
+
const f = Ls[d.code];
|
|
3386
3580
|
if (!f)
|
|
3387
3581
|
return;
|
|
3388
3582
|
const i = l(f);
|
|
@@ -3397,18 +3591,18 @@ const Qn = ut.use || ((e) => {
|
|
|
3397
3591
|
icon: "only",
|
|
3398
3592
|
className: "data-[state=loading]:animate-pulse"
|
|
3399
3593
|
}),
|
|
3400
|
-
disabled: !
|
|
3594
|
+
disabled: !er || r === "error",
|
|
3401
3595
|
children: /* @__PURE__ */ u(ye, { name: "target-location" })
|
|
3402
3596
|
}
|
|
3403
3597
|
);
|
|
3404
|
-
},
|
|
3598
|
+
}, Ds = "https://api.mapbox.com/search/geocode/v6/forward", As = "ZzRDWFU0dTZ3SF9aWk9RNGl6QzZaWS5RZmlFak13a0hPbGxXZXlNSGN5RUhObUJ6TXpSV08yUW5OdE5tSTZJU1lpd2lJb1JYYXRObmJ2Tm5iaGhHZWx4V1lpb2pJMUp5ZS5rcA==", Is = (e) => atob(e).split("").reverse().join(""), Ms = se({
|
|
3405
3599
|
features: Wt(
|
|
3406
3600
|
_e(
|
|
3407
3601
|
se({
|
|
3408
3602
|
properties: se({
|
|
3409
|
-
mapbox_id:
|
|
3410
|
-
place_formatted: fe(
|
|
3411
|
-
name_preferred: fe(
|
|
3603
|
+
mapbox_id: L(),
|
|
3604
|
+
place_formatted: fe(L()),
|
|
3605
|
+
name_preferred: fe(L(), "Untitled location"),
|
|
3412
3606
|
coordinates: _e(
|
|
3413
3607
|
se({
|
|
3414
3608
|
latitude: de(),
|
|
@@ -3421,31 +3615,31 @@ const Qn = ut.use || ((e) => {
|
|
|
3421
3615
|
(e) => e.properties
|
|
3422
3616
|
)
|
|
3423
3617
|
)
|
|
3424
|
-
}),
|
|
3618
|
+
}), Ps = (e, t) => Array.from(new Map(e.map((n) => [typeof t == "function" ? t(n) : n[t], n])).values()), js = async (e) => {
|
|
3425
3619
|
if (!e)
|
|
3426
3620
|
return [];
|
|
3427
|
-
const t = new URL(
|
|
3428
|
-
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));
|
|
3429
3623
|
const n = await fetch(t);
|
|
3430
3624
|
if (!n.ok)
|
|
3431
3625
|
throw new Error("Failed to get address details");
|
|
3432
|
-
const r = zt(
|
|
3626
|
+
const r = zt(Ms, await n.json());
|
|
3433
3627
|
if (r.success === !1)
|
|
3434
3628
|
throw console.error(r.issues), new Error("Invalid data");
|
|
3435
3629
|
const { features: o } = r.output;
|
|
3436
|
-
return
|
|
3437
|
-
},
|
|
3630
|
+
return Ps(o, (a) => a.name_preferred + a.place_formatted);
|
|
3631
|
+
}, Vs = ({
|
|
3438
3632
|
onSelect: e,
|
|
3439
3633
|
onValueChange: t,
|
|
3440
3634
|
coords: n,
|
|
3441
3635
|
radius: r,
|
|
3442
3636
|
onError: o
|
|
3443
3637
|
}) => {
|
|
3444
|
-
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, {
|
|
3445
3639
|
keepPreviousData: !1,
|
|
3446
3640
|
revalidateIfStale: !1,
|
|
3447
3641
|
revalidateOnFocus: !1
|
|
3448
|
-
}), { data: _, queryState: h, error: C } =
|
|
3642
|
+
}), { data: _, queryState: h, error: C } = Sr(y), [g, E] = j("view"), S = q(null);
|
|
3449
3643
|
return ee(() => {
|
|
3450
3644
|
if (g === "edit") {
|
|
3451
3645
|
if (!S.current)
|
|
@@ -3458,17 +3652,17 @@ const Qn = ut.use || ((e) => {
|
|
|
3458
3652
|
{
|
|
3459
3653
|
"aria-label": a("geo_search_placeholder"),
|
|
3460
3654
|
type: "button",
|
|
3461
|
-
class:
|
|
3655
|
+
class: dt({
|
|
3462
3656
|
size: "unsized",
|
|
3463
3657
|
className: "flex h-10 w-full cursor-text items-stretch px-1 py-1"
|
|
3464
3658
|
}),
|
|
3465
3659
|
onClick: () => {
|
|
3466
3660
|
E("edit");
|
|
3467
3661
|
},
|
|
3468
|
-
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") })
|
|
3469
3663
|
}
|
|
3470
3664
|
) : /* @__PURE__ */ u(
|
|
3471
|
-
|
|
3665
|
+
Os,
|
|
3472
3666
|
{
|
|
3473
3667
|
ref: S,
|
|
3474
3668
|
error: C,
|
|
@@ -3499,7 +3693,7 @@ const Qn = ut.use || ((e) => {
|
|
|
3499
3693
|
}
|
|
3500
3694
|
),
|
|
3501
3695
|
/* @__PURE__ */ u("div", { class: "absolute bottom-0 right-0 top-0 flex items-center", children: !s && !n ? /* @__PURE__ */ u(
|
|
3502
|
-
|
|
3696
|
+
Ns,
|
|
3503
3697
|
{
|
|
3504
3698
|
onLocate: (v) => {
|
|
3505
3699
|
E("view"), d(a("geo_my_location")), t({
|
|
@@ -3528,37 +3722,37 @@ const Qn = ut.use || ((e) => {
|
|
|
3528
3722
|
}
|
|
3529
3723
|
) })
|
|
3530
3724
|
] });
|
|
3531
|
-
},
|
|
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, {
|
|
3532
3726
|
style: "unit",
|
|
3533
3727
|
unit: "mile",
|
|
3534
3728
|
unitDisplay: "long",
|
|
3535
3729
|
maximumFractionDigits: 1,
|
|
3536
3730
|
// @ts-expect-error - CI/CD is not happy with this, though locally it works
|
|
3537
3731
|
trailingZeroDisplay: "stripIfInteger"
|
|
3538
|
-
}),
|
|
3732
|
+
}), Hs = _e(
|
|
3539
3733
|
se({
|
|
3540
3734
|
type: oe("provided"),
|
|
3541
|
-
lat: fe(_e(
|
|
3542
|
-
lng: fe(_e(
|
|
3543
|
-
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))
|
|
3544
3738
|
}),
|
|
3545
3739
|
(e) => ({
|
|
3546
3740
|
radius: e.radius,
|
|
3547
3741
|
type: e.type,
|
|
3548
3742
|
coords: e.lat && e.lng ? { lat: e.lat, lng: e.lng } : void 0
|
|
3549
3743
|
})
|
|
3550
|
-
),
|
|
3744
|
+
), ol = ({
|
|
3551
3745
|
value: e,
|
|
3552
3746
|
onValueChange: t,
|
|
3553
3747
|
logger: n
|
|
3554
3748
|
}) => {
|
|
3555
|
-
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();
|
|
3556
3750
|
return /* @__PURE__ */ u("div", { class: "flex flex-col gap-2", children: [
|
|
3557
3751
|
/* @__PURE__ */ u(
|
|
3558
3752
|
"form",
|
|
3559
3753
|
{
|
|
3560
3754
|
onChange: (c) => {
|
|
3561
|
-
const d = new FormData(c.currentTarget), f = zt(
|
|
3755
|
+
const d = new FormData(c.currentTarget), f = zt(Hs, Object.fromEntries(d.entries()));
|
|
3562
3756
|
if (!f.success) {
|
|
3563
3757
|
n.error(f.issues), l(f.issues[0].message);
|
|
3564
3758
|
return;
|
|
@@ -3568,12 +3762,12 @@ const Qn = ut.use || ((e) => {
|
|
|
3568
3762
|
class: "flex flex-col gap-2 md:flex-row",
|
|
3569
3763
|
children: [
|
|
3570
3764
|
/* @__PURE__ */ u("input", { type: "hidden", name: "type", value: "provided" }),
|
|
3571
|
-
(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: [
|
|
3572
3766
|
/* @__PURE__ */ u("input", { type: "hidden", name: "lat", value: e.coords.lat }),
|
|
3573
3767
|
/* @__PURE__ */ u("input", { type: "hidden", name: "lng", value: e.coords.lng })
|
|
3574
3768
|
] }) : null,
|
|
3575
3769
|
/* @__PURE__ */ u(
|
|
3576
|
-
|
|
3770
|
+
Vs,
|
|
3577
3771
|
{
|
|
3578
3772
|
coords: (e == null ? void 0 : e.type) === "provided" ? e.coords : void 0,
|
|
3579
3773
|
radius: a,
|
|
@@ -3595,7 +3789,7 @@ const Qn = ut.use || ((e) => {
|
|
|
3595
3789
|
{
|
|
3596
3790
|
id: o,
|
|
3597
3791
|
name: "radius",
|
|
3598
|
-
class:
|
|
3792
|
+
class: dt({
|
|
3599
3793
|
size: "unsized",
|
|
3600
3794
|
className: "w-full appearance-none truncate py-2 pl-3 pr-10"
|
|
3601
3795
|
}),
|
|
@@ -3607,7 +3801,7 @@ const Qn = ut.use || ((e) => {
|
|
|
3607
3801
|
radius: Number(c.currentTarget.value)
|
|
3608
3802
|
});
|
|
3609
3803
|
},
|
|
3610
|
-
children:
|
|
3804
|
+
children: $s.map((c) => /* @__PURE__ */ u("option", { value: Ut(c), class: "truncate", children: Us.format(c) }, c))
|
|
3611
3805
|
}
|
|
3612
3806
|
),
|
|
3613
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" }) })
|
|
@@ -3627,245 +3821,50 @@ const Qn = ut.use || ((e) => {
|
|
|
3627
3821
|
}
|
|
3628
3822
|
) : null
|
|
3629
3823
|
] });
|
|
3630
|
-
}, tl = (e, t) => {
|
|
3631
|
-
const n = structuredClone(e);
|
|
3632
|
-
return n.forEach((r) => {
|
|
3633
|
-
if (t.has(r.key)) {
|
|
3634
|
-
const o = t.get(r.key);
|
|
3635
|
-
if (!o)
|
|
3636
|
-
return;
|
|
3637
|
-
r.defaultValue = o.includes(",") ? o.split(",") : o;
|
|
3638
|
-
}
|
|
3639
|
-
}), n;
|
|
3640
|
-
}, nl = (e) => {
|
|
3641
|
-
const t = e.get("lat"), n = e.get("lng"), r = e.get("radius");
|
|
3642
|
-
return {
|
|
3643
|
-
type: "provided",
|
|
3644
|
-
coords: t && n ? { lat: Number(t), lng: Number(n) } : void 0,
|
|
3645
|
-
radius: r ? Number(r) : Ut(_o)
|
|
3646
|
-
};
|
|
3647
|
-
}, Ls = (e, t = 1e3) => {
|
|
3648
|
-
const [n, r] = j(e), o = be(() => Za((a) => r(a), t), [t]);
|
|
3649
|
-
return ee(() => {
|
|
3650
|
-
o(e);
|
|
3651
|
-
}, [e, o]), n;
|
|
3652
|
-
}, er = {
|
|
3653
|
-
ANNUALLY: "per year",
|
|
3654
|
-
DAILY: "per day",
|
|
3655
|
-
HOURLY: "per hour",
|
|
3656
|
-
MONTHLY: "per month",
|
|
3657
|
-
WEEKLY: "per week"
|
|
3658
|
-
}, Is = (e) => {
|
|
3659
|
-
const { salary: t, config: n } = e, r = new Intl.NumberFormat(n.locales, {
|
|
3660
|
-
style: "currency",
|
|
3661
|
-
currency: t.pay_currency,
|
|
3662
|
-
// @ts-expect-error - CI/CD is not happy with this, though locally it works
|
|
3663
|
-
trailingZeroDisplay: "stripIfInteger"
|
|
3664
|
-
});
|
|
3665
|
-
if (t.pay_display === !1)
|
|
3666
|
-
return;
|
|
3667
|
-
if (t.pay_mask)
|
|
3668
|
-
return e.t("competitive");
|
|
3669
|
-
if (t.pay_max && Number.isNaN(+t.pay_max) || t.pay_min && Number.isNaN(+t.pay_min) || t.pay && Number.isNaN(+t.pay))
|
|
3670
|
-
return e.t("invalid_salary");
|
|
3671
|
-
const o = t.pay_type && t.pay_type in er ? er[t.pay_type] : void 0;
|
|
3672
|
-
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");
|
|
3673
|
-
}, As = new Intl.RelativeTimeFormat(void 0, { numeric: "auto" }), Ds = ({ from: e = /* @__PURE__ */ new Date(), to: t, formatter: n = As, t: r }) => {
|
|
3674
|
-
const a = (t instanceof Date ? t : new Date(t)).getTime() - e.getTime(), s = {
|
|
3675
|
-
days: Math.round(a / 1e3 / 60 / 60 / 24),
|
|
3676
|
-
months: Math.round(a / 1e3 / 60 / 60 / 24 / 30)
|
|
3677
|
-
};
|
|
3678
|
-
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");
|
|
3679
|
-
}, Ms = br(
|
|
3680
|
-
Wt(se({ label: gn(N(), String), value: gn(N(), String), jobs: de() }))
|
|
3681
|
-
), Ps = N([qo()]), js = se({
|
|
3682
|
-
total: de(),
|
|
3683
|
-
current_page: de(),
|
|
3684
|
-
per_page: de(),
|
|
3685
|
-
last_page: de()
|
|
3686
|
-
}), Vs = se({
|
|
3687
|
-
id: de(),
|
|
3688
|
-
company_name: N(),
|
|
3689
|
-
company_logo: z(fe(N())),
|
|
3690
|
-
employment_type: N(),
|
|
3691
|
-
location_type: mn([oe("LOCATION"), oe("REMOTE"), oe("HYBRID")]),
|
|
3692
|
-
pay_type: z(
|
|
3693
|
-
mn([oe("ANNUALLY"), oe("HOURLY"), oe("MONTHLY"), oe("WEEKLY"), oe("DAILY")])
|
|
3694
|
-
),
|
|
3695
|
-
pay_currency: N(),
|
|
3696
|
-
// Whether to mask the pay and show as "competitive"
|
|
3697
|
-
pay_mask: vn(),
|
|
3698
|
-
// Whether to display pay at all
|
|
3699
|
-
pay_display: vn(),
|
|
3700
|
-
// Decimal numeric string e.g. "12.70"
|
|
3701
|
-
pay: z(N()),
|
|
3702
|
-
// Decimal numeric string e.g. "12.70"
|
|
3703
|
-
pay_min: z(N()),
|
|
3704
|
-
// Decimal numeric string e.g. "12.70"
|
|
3705
|
-
pay_max: z(N()),
|
|
3706
|
-
description: N(),
|
|
3707
|
-
title: N(),
|
|
3708
|
-
// E.g.: Any varchar, e.g.: "Permanent contract"
|
|
3709
|
-
contract_type: z(N()),
|
|
3710
|
-
created_at: z(N()),
|
|
3711
|
-
custom_data: z(br(Wo())),
|
|
3712
|
-
href: N(),
|
|
3713
|
-
industry: z(N()),
|
|
3714
|
-
category: z(N()),
|
|
3715
|
-
skills: fe(N()),
|
|
3716
|
-
town: fe(N()),
|
|
3717
|
-
city: z(N()),
|
|
3718
|
-
country: z(N()),
|
|
3719
|
-
vector_distance: fe(z(N()))
|
|
3720
|
-
}), $s = (e) => _e(Vs, (t) => {
|
|
3721
|
-
const n = zt(Ps, t.company_logo);
|
|
3722
|
-
return {
|
|
3723
|
-
id: t.id,
|
|
3724
|
-
createdAt: t.created_at,
|
|
3725
|
-
company: {
|
|
3726
|
-
name: t.company_name,
|
|
3727
|
-
logo: n.success ? n.output : null
|
|
3728
|
-
},
|
|
3729
|
-
employmentType: t.employment_type,
|
|
3730
|
-
locationType: t.location_type,
|
|
3731
|
-
pay: Is({ salary: t, config: { locales: void 0 }, t: e }) ?? null,
|
|
3732
|
-
description: t.description,
|
|
3733
|
-
title: t.title,
|
|
3734
|
-
contractType: t.contract_type,
|
|
3735
|
-
href: t.href,
|
|
3736
|
-
relativePostedDate: t.created_at ? Ds({ to: new Date(t.created_at), t: e }) : "INVALID DATE",
|
|
3737
|
-
customData: t.custom_data,
|
|
3738
|
-
raw: t,
|
|
3739
|
-
match: t.vector_distance && parseFloat(t.vector_distance) < 0.15 ? e("great_match") : null
|
|
3740
|
-
};
|
|
3741
|
-
}), Us = (e) => _e(
|
|
3742
|
-
se({
|
|
3743
|
-
data: Wt($s(e)),
|
|
3744
|
-
pagination: js
|
|
3745
|
-
}),
|
|
3746
|
-
(t) => ({
|
|
3747
|
-
pagination: t.pagination,
|
|
3748
|
-
results: t.data
|
|
3749
|
-
})
|
|
3750
|
-
), Hs = (e) => !e || Array.isArray(e) && e.length === 0 ? null : e, po = (e) => {
|
|
3751
|
-
var n;
|
|
3752
|
-
const t = {};
|
|
3753
|
-
for (const r in e.filters) {
|
|
3754
|
-
const o = e.filters[r];
|
|
3755
|
-
t[r] = Hs(o == null ? void 0 : o.value);
|
|
3756
|
-
}
|
|
3757
|
-
return ((n = e.geo) == null ? void 0 : n.type) === "provided" && e.geo.coords && (t.geolocation = {
|
|
3758
|
-
type: e.geo.type,
|
|
3759
|
-
lat: e.geo.coords.lat,
|
|
3760
|
-
lng: e.geo.coords.lng,
|
|
3761
|
-
radius: e.geo.radius
|
|
3762
|
-
}), t;
|
|
3763
|
-
}, rl = async ({
|
|
3764
|
-
apiClient: e,
|
|
3765
|
-
state: t,
|
|
3766
|
-
logger: n,
|
|
3767
|
-
signal: r
|
|
3768
|
-
}) => {
|
|
3769
|
-
try {
|
|
3770
|
-
const o = new URLSearchParams(
|
|
3771
|
-
gr({
|
|
3772
|
-
filters: po(t),
|
|
3773
|
-
query: t.query
|
|
3774
|
-
})
|
|
3775
|
-
), a = "/search/filters", s = await e.fetch([a, o.toString()].filter(Boolean).join("?"), {
|
|
3776
|
-
signal: r
|
|
3777
|
-
});
|
|
3778
|
-
return Er(Ms, s);
|
|
3779
|
-
} catch (o) {
|
|
3780
|
-
throw o instanceof st ? n.error(o.message, o.issues) : n.error(o), o;
|
|
3781
|
-
}
|
|
3782
|
-
}, ol = async ({
|
|
3783
|
-
apiClient: e,
|
|
3784
|
-
logger: t,
|
|
3785
|
-
signal: n,
|
|
3786
|
-
state: r,
|
|
3787
|
-
page: o = 1,
|
|
3788
|
-
t: a
|
|
3789
|
-
}) => {
|
|
3790
|
-
try {
|
|
3791
|
-
const s = new URLSearchParams(
|
|
3792
|
-
gr({
|
|
3793
|
-
filters: po(r)
|
|
3794
|
-
})
|
|
3795
|
-
);
|
|
3796
|
-
s.set("page", o.toString()), s.set("per_page", Go.toString()), r.query && (s.set("query", r.query), s.set("mode", r.mode));
|
|
3797
|
-
const l = await e.fetch(["/search/results", s.toString()].filter(Boolean).join("?"), {
|
|
3798
|
-
signal: n
|
|
3799
|
-
});
|
|
3800
|
-
return Er(Us(a), l);
|
|
3801
|
-
} catch (s) {
|
|
3802
|
-
throw s instanceof st ? t.error(s.message, s.issues) : t.error(s), s;
|
|
3803
|
-
}
|
|
3804
|
-
}, ho = (e) => {
|
|
3805
|
-
if (e.error)
|
|
3806
|
-
return { queryState: "error", error: e.error, swr: e };
|
|
3807
|
-
if (e.isLoading && e.data === void 0)
|
|
3808
|
-
return { queryState: "loading", swr: e };
|
|
3809
|
-
if ((e.isLoading || e.isValidating) && e.data)
|
|
3810
|
-
return { queryState: "revalidating", data: e.data, swr: e };
|
|
3811
|
-
if (!e.isLoading && e.data)
|
|
3812
|
-
return { queryState: "loaded", data: e.data, swr: e };
|
|
3813
|
-
if (!e.data && !e.isLoading)
|
|
3814
|
-
return { queryState: "idle", swr: e };
|
|
3815
|
-
throw console.error("Unhandled data state", e), new Error("Unhandled data state");
|
|
3816
|
-
}, al = {
|
|
3817
|
-
keepPreviousData: !0,
|
|
3818
|
-
revalidateOnFocus: !1,
|
|
3819
|
-
revalidateOnReconnect: !1,
|
|
3820
|
-
revalidateIfStale: !1,
|
|
3821
|
-
revalidateFirstPage: !1
|
|
3822
3824
|
};
|
|
3823
3825
|
export {
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3826
|
+
el as A,
|
|
3827
|
+
Ks as B,
|
|
3828
|
+
_r as C,
|
|
3829
|
+
$e as D,
|
|
3830
|
+
Nn as E,
|
|
3829
3831
|
be as F,
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
+
ol as G,
|
|
3833
|
+
Gs as H,
|
|
3832
3834
|
ye as I,
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
Go as P,
|
|
3840
|
-
Ds as Q,
|
|
3841
|
-
al as S,
|
|
3835
|
+
Ws as J,
|
|
3836
|
+
Xs as K,
|
|
3837
|
+
nl as L,
|
|
3838
|
+
rl as M,
|
|
3839
|
+
Yo as P,
|
|
3840
|
+
qs as S,
|
|
3842
3841
|
je as T,
|
|
3843
|
-
|
|
3842
|
+
Js as U,
|
|
3844
3843
|
q as _,
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3844
|
+
ci as a,
|
|
3845
|
+
zs as b,
|
|
3846
|
+
Qs as c,
|
|
3847
|
+
tl as d,
|
|
3849
3848
|
Qe as e,
|
|
3850
|
-
|
|
3851
|
-
|
|
3849
|
+
aa as f,
|
|
3850
|
+
Sr as g,
|
|
3852
3851
|
j as h,
|
|
3853
|
-
|
|
3852
|
+
dt as i,
|
|
3854
3853
|
Ue as j,
|
|
3855
|
-
|
|
3854
|
+
I as k,
|
|
3856
3855
|
w as l,
|
|
3857
|
-
|
|
3858
|
-
|
|
3856
|
+
ds as m,
|
|
3857
|
+
os as n,
|
|
3859
3858
|
u as o,
|
|
3860
3859
|
ee as p,
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3860
|
+
uo as q,
|
|
3861
|
+
fo as r,
|
|
3862
|
+
_o as s,
|
|
3863
|
+
We as t,
|
|
3865
3864
|
xe as u,
|
|
3866
|
-
|
|
3865
|
+
Ra as v,
|
|
3867
3866
|
te as w,
|
|
3868
|
-
|
|
3867
|
+
Bs as x,
|
|
3869
3868
|
X as y,
|
|
3870
3869
|
wo as z
|
|
3871
3870
|
};
|