pdap-design-system 3.0.0-beta.3 → 3.0.0-beta.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.cjs +3 -3
- package/dist/index.js +520 -517
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent as C, reactive as q, openBlock as j, createElementBlock as h, normalizeClass as le, renderSlot as H, ref as N, onErrorCaptured as it, createBlock as
|
1
|
+
import { defineComponent as C, reactive as q, openBlock as j, createElementBlock as h, normalizeClass as le, renderSlot as H, ref as N, onErrorCaptured as it, createBlock as x, resolveDynamicComponent as lt, withCtx as D, createElementVNode as f, createTextVNode as T, inject as re, resolveComponent as Ve, Fragment as B, renderList as ce, unref as L, toDisplayString as E, createCommentVNode as k, getCurrentInstance as ct, onBeforeMount as Be, watch as J, isRef as ye, onBeforeUnmount as he, computed as v, isReactive as dt, isReadonly as Lt, provide as xe, nextTick as ne, mergeProps as F, normalizeProps as Mt, watchEffect as Ie, withModifiers as me, withKeys as je, createVNode as U, Transition as se, withDirectives as fe, vShow as Fe, pushScopeId as gt, popScopeId as pt, onMounted as We, toHandlers as yt, TransitionGroup as mt } from "vue";
|
2
2
|
import { RouterLink as oe, useRouter as jt, useRoute as ft } from "vue-router";
|
3
3
|
const wt = {
|
4
4
|
name: "PdapButton"
|
@@ -9,15 +9,15 @@ const wt = {
|
|
9
9
|
isLoading: { type: Boolean, default: !1 }
|
10
10
|
},
|
11
11
|
setup(e) {
|
12
|
-
const t = e,
|
12
|
+
const t = e, a = q({
|
13
13
|
"pdap-button": !0,
|
14
14
|
[`pdap-button-${t.intent}`]: !!t.intent,
|
15
15
|
"pdap-button-loading": t.isLoading
|
16
16
|
});
|
17
|
-
return (
|
18
|
-
class: le(
|
17
|
+
return (r, n) => (j(), h("button", {
|
18
|
+
class: le(a)
|
19
19
|
}, [
|
20
|
-
H(
|
20
|
+
H(r.$slots, "default")
|
21
21
|
], 2));
|
22
22
|
}
|
23
23
|
});
|
@@ -30,7 +30,7 @@ const ht = /* @__PURE__ */ f("h1", null, "Oops, something went wrong!", -1), vt
|
|
30
30
|
/* @__PURE__ */ T(" for assistance. ")
|
31
31
|
], -1), $t = {
|
32
32
|
name: "ErrorBoundary"
|
33
|
-
},
|
33
|
+
}, an = /* @__PURE__ */ C({
|
34
34
|
...$t,
|
35
35
|
props: {
|
36
36
|
component: { default: "div" },
|
@@ -39,14 +39,14 @@ const ht = /* @__PURE__ */ f("h1", null, "Oops, something went wrong!", -1), vt
|
|
39
39
|
},
|
40
40
|
emits: ["onError"],
|
41
41
|
setup(e, { emit: t }) {
|
42
|
-
const
|
42
|
+
const a = e, r = t, n = N(), s = N("");
|
43
43
|
function i(u, c, l) {
|
44
44
|
var M;
|
45
|
-
n.value = u, s.value = l, (M =
|
45
|
+
n.value = u, s.value = l, (M = a.onError) == null || M.call(a, u, c, l), r("onError", { error: u, vm: c, info: l });
|
46
46
|
}
|
47
47
|
return it((u, c, l) => {
|
48
48
|
i(u, c, l);
|
49
|
-
}), (u, c) => n.value ? (j(),
|
49
|
+
}), (u, c) => n.value ? (j(), x(lt(u.component), {
|
50
50
|
key: 1,
|
51
51
|
class: "pdap-flex-container-center h-[full]",
|
52
52
|
"v-bind": u.params
|
@@ -58,7 +58,7 @@ const ht = /* @__PURE__ */ f("h1", null, "Oops, something went wrong!", -1), vt
|
|
58
58
|
_: 1
|
59
59
|
}, 8, ["v-bind"])) : H(u.$slots, "default", { key: 0 });
|
60
60
|
}
|
61
|
-
}), Nt = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI0LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwO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GggZD0iTTg4LjcsODAuMUw4Nyw3NC40aC03bC0xLjgsNS44aC01LjNsOC4yLTIyLjloNC44bDguMywyMi45aC01LjVWODAuMXogTTg0LDY0LjZjLTAuMi0wLjctMC41LTEuNi0wLjUtMS44CgljMCwwLjEtMC4yLDEtMC41LDEuOGwtMS43LDUuNmg0LjRMODQsNjQuNnoiLz4KPHBhdGggZD0iTTEwNC43LDcxLjFoLTIuNnY5LjFoLTVWNTcuM2g3LjZjNS4xLDAsOC40LDIuNCw4LjQsNi43UzEwOS44LDcxLjEsMTA0LjcsNzEuMXogTTEwNC43LDYxLjVoLTIuNnY1LjNoMi42CgljMi4zLDAsMy4zLTAuOSwzLjMtMi43UzEwNi45LDYxLjUsMTA0LjcsNjEuNXoiLz4KPC9zdmc+Cg==", Dt = { class: "pdap-footer" }, Tt = { class: "pdap-flex-container-center" }, Ct = { class: "pdap-footer-social-links" }, xt = ["href"], It = { class: "pdap-footer-copyright" },
|
61
|
+
}), Nt = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI0LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMTMuOCA4Ni4xIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxMTMuOCA4Ni4xOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxwYXRoIGQ9Ik0wLDgwLjlMMjEuNSwyLjZoNS4x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DcxLjEsMTA0LjcsNzEuMXogTTEwNC43LDYxLjVoLTIuNnY1LjNoMi42CgljMi4zLDAsMy4zLTAuOSwzLjMtMi43UzEwNi45LDYxLjUsMTA0LjcsNjEuNXoiLz4KPC9zdmc+Cg==", Dt = { class: "pdap-footer" }, Tt = { class: "pdap-flex-container-center" }, Ct = { class: "pdap-footer-social-links" }, xt = ["href"], It = { class: "pdap-footer-copyright" }, St = /* @__PURE__ */ f("br", null, null, -1), bt = /* @__PURE__ */ f("p", { class: "pdap-footer-copyright" }, [
|
62
62
|
/* @__PURE__ */ T(" PDAP is a non-profit. EIN: 85-4207132. "),
|
63
63
|
/* @__PURE__ */ f("a", {
|
64
64
|
href: "https://docs.pdap.io/meta/policy/pdap-privacy-policy",
|
@@ -81,14 +81,14 @@ const ht = /* @__PURE__ */ f("h1", null, "Oops, something went wrong!", -1), vt
|
|
81
81
|
})
|
82
82
|
], -1), zt = ["href"], _t = ["src"], At = ["src"], kt = {
|
83
83
|
name: "PdapFooter"
|
84
|
-
},
|
84
|
+
}, rn = /* @__PURE__ */ C({
|
85
85
|
...kt,
|
86
86
|
props: {
|
87
87
|
logoImageSrc: { default: Nt },
|
88
88
|
logoImageAnchorPath: { default: "/" }
|
89
89
|
},
|
90
90
|
setup(e) {
|
91
|
-
const t = e,
|
91
|
+
const t = e, a = re("footerLinks", [
|
92
92
|
{
|
93
93
|
href: "https://github.com/orgs/Police-Data-Accessibility-Project",
|
94
94
|
text: "Github"
|
@@ -105,13 +105,13 @@ const ht = /* @__PURE__ */ f("h1", null, "Oops, something went wrong!", -1), vt
|
|
105
105
|
path: "/jobs",
|
106
106
|
text: "Jobs"
|
107
107
|
}
|
108
|
-
]),
|
108
|
+
]), r = t.logoImageAnchorPath.startsWith("/");
|
109
109
|
return (n, s) => {
|
110
110
|
const i = Ve("router-link");
|
111
111
|
return j(), h("footer", Dt, [
|
112
112
|
f("div", Tt, [
|
113
113
|
f("ul", Ct, [
|
114
|
-
(j(!0), h(B, null, ce(L(
|
114
|
+
(j(!0), h(B, null, ce(L(a), (u) => (j(), h("li", {
|
115
115
|
key: u.text,
|
116
116
|
class: "pdap-footer-link-container"
|
117
117
|
}, [
|
@@ -122,7 +122,7 @@ const ht = /* @__PURE__ */ f("h1", null, "Oops, something went wrong!", -1), vt
|
|
122
122
|
target: "_blank",
|
123
123
|
referrerpolicy: "no-referrer"
|
124
124
|
}, E(u.text), 9, xt)) : k("", !0),
|
125
|
-
u.path ? (j(),
|
125
|
+
u.path ? (j(), x(i, {
|
126
126
|
key: 1,
|
127
127
|
"active-class": "pdap-footer-social-link-current",
|
128
128
|
"exact-active-class": "pdap-footer-social-link-current-exact",
|
@@ -138,12 +138,12 @@ const ht = /* @__PURE__ */ f("h1", null, "Oops, something went wrong!", -1), vt
|
|
138
138
|
]),
|
139
139
|
f("p", It, [
|
140
140
|
T(" © " + E((/* @__PURE__ */ new Date()).getFullYear()) + " Police Data Accessibility Project", 1),
|
141
|
-
|
141
|
+
St
|
142
142
|
]),
|
143
|
-
|
143
|
+
bt,
|
144
144
|
f("div", Et, [
|
145
145
|
Ot,
|
146
|
-
L(
|
146
|
+
L(r) ? (j(), x(i, {
|
147
147
|
key: 1,
|
148
148
|
to: n.logoImageAnchorPath,
|
149
149
|
class: "pdap-footer-logo"
|
@@ -175,38 +175,38 @@ const ht = /* @__PURE__ */ f("h1", null, "Oops, something went wrong!", -1), vt
|
|
175
175
|
};
|
176
176
|
}
|
177
177
|
});
|
178
|
-
function
|
179
|
-
var
|
178
|
+
function Se(e, t) {
|
179
|
+
var a = Object.keys(e);
|
180
180
|
if (Object.getOwnPropertySymbols) {
|
181
|
-
var
|
182
|
-
t && (
|
181
|
+
var r = Object.getOwnPropertySymbols(e);
|
182
|
+
t && (r = r.filter(function(n) {
|
183
183
|
return Object.getOwnPropertyDescriptor(e, n).enumerable;
|
184
|
-
})),
|
184
|
+
})), a.push.apply(a, r);
|
185
185
|
}
|
186
|
-
return
|
186
|
+
return a;
|
187
187
|
}
|
188
188
|
function A(e) {
|
189
189
|
for (var t = 1; t < arguments.length; t++) {
|
190
|
-
var
|
191
|
-
t % 2 ?
|
192
|
-
Pt(e,
|
193
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(
|
194
|
-
Object.defineProperty(e,
|
190
|
+
var a = arguments[t] != null ? arguments[t] : {};
|
191
|
+
t % 2 ? Se(Object(a), !0).forEach(function(r) {
|
192
|
+
Pt(e, r, a[r]);
|
193
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : Se(Object(a)).forEach(function(r) {
|
194
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(a, r));
|
195
195
|
});
|
196
196
|
}
|
197
197
|
return e;
|
198
198
|
}
|
199
|
-
function Pt(e, t,
|
199
|
+
function Pt(e, t, a) {
|
200
200
|
return t in e ? Object.defineProperty(e, t, {
|
201
|
-
value:
|
201
|
+
value: a,
|
202
202
|
enumerable: !0,
|
203
203
|
configurable: !0,
|
204
204
|
writable: !0
|
205
|
-
}) : e[t] =
|
205
|
+
}) : e[t] = a, e;
|
206
206
|
}
|
207
|
-
function
|
207
|
+
function be(e) {
|
208
208
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
209
|
-
return Object.keys(e).reduce((
|
209
|
+
return Object.keys(e).reduce((a, r) => (t.includes(r) || (a[r] = L(e[r])), a), {});
|
210
210
|
}
|
211
211
|
function ue(e) {
|
212
212
|
return typeof e == "function";
|
@@ -214,44 +214,44 @@ function ue(e) {
|
|
214
214
|
function Yt(e) {
|
215
215
|
return dt(e) || Lt(e);
|
216
216
|
}
|
217
|
-
function Ze(e, t,
|
218
|
-
let
|
217
|
+
function Ze(e, t, a) {
|
218
|
+
let r = e;
|
219
219
|
const n = t.split(".");
|
220
220
|
for (let s = 0; s < n.length; s++) {
|
221
|
-
if (!
|
222
|
-
return
|
223
|
-
|
221
|
+
if (!r[n[s]])
|
222
|
+
return a;
|
223
|
+
r = r[n[s]];
|
224
224
|
}
|
225
|
-
return
|
225
|
+
return r;
|
226
226
|
}
|
227
|
-
function pe(e, t,
|
228
|
-
return v(() => e.some((
|
229
|
-
[
|
230
|
-
})[
|
227
|
+
function pe(e, t, a) {
|
228
|
+
return v(() => e.some((r) => Ze(t, r, {
|
229
|
+
[a]: !1
|
230
|
+
})[a]));
|
231
231
|
}
|
232
|
-
function Ee(e, t,
|
233
|
-
return v(() => e.reduce((
|
232
|
+
function Ee(e, t, a) {
|
233
|
+
return v(() => e.reduce((r, n) => {
|
234
234
|
const s = Ze(t, n, {
|
235
|
-
[
|
236
|
-
})[
|
237
|
-
return
|
235
|
+
[a]: !1
|
236
|
+
})[a] || [];
|
237
|
+
return r.concat(s);
|
238
238
|
}, []));
|
239
239
|
}
|
240
|
-
function He(e, t,
|
241
|
-
return e.call(
|
240
|
+
function He(e, t, a, r) {
|
241
|
+
return e.call(r, L(t), L(a), r);
|
242
242
|
}
|
243
243
|
function Je(e) {
|
244
244
|
return e.$valid !== void 0 ? !e.$valid : !e;
|
245
245
|
}
|
246
|
-
function Qt(e, t,
|
246
|
+
function Qt(e, t, a, r, n, s, i) {
|
247
247
|
let {
|
248
248
|
$lazy: u,
|
249
249
|
$rewardEarly: c
|
250
250
|
} = n, l = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : [], M = arguments.length > 8 ? arguments[8] : void 0, y = arguments.length > 9 ? arguments[9] : void 0, m = arguments.length > 10 ? arguments[10] : void 0;
|
251
|
-
const p = N(!!
|
252
|
-
|
253
|
-
const d = J([t,
|
254
|
-
if (u && !
|
251
|
+
const p = N(!!r.value), o = N(0);
|
252
|
+
a.value = !1;
|
253
|
+
const d = J([t, r].concat(l, m), () => {
|
254
|
+
if (u && !r.value || c && !y.value && !a.value)
|
255
255
|
return;
|
256
256
|
let g;
|
257
257
|
try {
|
@@ -259,10 +259,10 @@ function Qt(e, t, r, a, n, s, i) {
|
|
259
259
|
} catch (w) {
|
260
260
|
g = Promise.reject(w);
|
261
261
|
}
|
262
|
-
o.value++,
|
263
|
-
o.value--,
|
262
|
+
o.value++, a.value = !!o.value, p.value = !1, Promise.resolve(g).then((w) => {
|
263
|
+
o.value--, a.value = !!o.value, s.value = w, p.value = Je(w);
|
264
264
|
}).catch((w) => {
|
265
|
-
o.value--,
|
265
|
+
o.value--, a.value = !!o.value, s.value = w, p.value = !0;
|
266
266
|
});
|
267
267
|
}, {
|
268
268
|
immediate: !0,
|
@@ -273,13 +273,13 @@ function Qt(e, t, r, a, n, s, i) {
|
|
273
273
|
$unwatch: d
|
274
274
|
};
|
275
275
|
}
|
276
|
-
function Rt(e, t,
|
276
|
+
function Rt(e, t, a, r, n, s, i, u) {
|
277
277
|
let {
|
278
278
|
$lazy: c,
|
279
279
|
$rewardEarly: l
|
280
|
-
} =
|
280
|
+
} = r;
|
281
281
|
const M = () => ({}), y = v(() => {
|
282
|
-
if (c && !
|
282
|
+
if (c && !a.value || l && !u.value)
|
283
283
|
return !1;
|
284
284
|
let m = !0;
|
285
285
|
try {
|
@@ -295,22 +295,22 @@ function Rt(e, t, r, a, n, s, i, u) {
|
|
295
295
|
$invalid: y
|
296
296
|
};
|
297
297
|
}
|
298
|
-
function Ut(e, t,
|
298
|
+
function Ut(e, t, a, r, n, s, i, u, c, l, M) {
|
299
299
|
const y = N(!1), m = e.$params || {}, p = N(null);
|
300
300
|
let o, d;
|
301
301
|
e.$async ? {
|
302
302
|
$invalid: o,
|
303
303
|
$unwatch: d
|
304
|
-
} = Qt(e.$validator, t, y,
|
304
|
+
} = Qt(e.$validator, t, y, a, r, p, n, e.$watchTargets, c, l, M) : {
|
305
305
|
$invalid: o,
|
306
306
|
$unwatch: d
|
307
|
-
} = Rt(e.$validator, t,
|
307
|
+
} = Rt(e.$validator, t, a, r, p, n, c, l);
|
308
308
|
const g = e.$message;
|
309
309
|
return {
|
310
|
-
$message: ue(g) ? v(() => g(
|
310
|
+
$message: ue(g) ? v(() => g(be({
|
311
311
|
$pending: y,
|
312
312
|
$invalid: o,
|
313
|
-
$params:
|
313
|
+
$params: be(m),
|
314
314
|
$model: t,
|
315
315
|
$response: p,
|
316
316
|
$validator: s,
|
@@ -326,16 +326,16 @@ function Ut(e, t, r, a, n, s, i, u, c, l, M) {
|
|
326
326
|
}
|
327
327
|
function Vt() {
|
328
328
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
329
|
-
const t = L(e),
|
329
|
+
const t = L(e), a = Object.keys(t), r = {}, n = {}, s = {};
|
330
330
|
let i = null;
|
331
|
-
return
|
331
|
+
return a.forEach((u) => {
|
332
332
|
const c = t[u];
|
333
333
|
switch (!0) {
|
334
334
|
case ue(c.$validator):
|
335
|
-
|
335
|
+
r[u] = c;
|
336
336
|
break;
|
337
337
|
case ue(c):
|
338
|
-
|
338
|
+
r[u] = {
|
339
339
|
$validator: c
|
340
340
|
};
|
341
341
|
break;
|
@@ -349,15 +349,15 @@ function Vt() {
|
|
349
349
|
n[u] = c;
|
350
350
|
}
|
351
351
|
}), {
|
352
|
-
rules:
|
352
|
+
rules: r,
|
353
353
|
nestedValidators: n,
|
354
354
|
config: s,
|
355
355
|
validationGroups: i
|
356
356
|
};
|
357
357
|
}
|
358
358
|
const Bt = "__root";
|
359
|
-
function Ft(e, t,
|
360
|
-
const l = Object.keys(e), M =
|
359
|
+
function Ft(e, t, a, r, n, s, i, u, c) {
|
360
|
+
const l = Object.keys(e), M = r.get(n, e), y = N(!1), m = N(!1), p = N(0);
|
361
361
|
if (M) {
|
362
362
|
if (!M.$partial)
|
363
363
|
return M;
|
@@ -376,10 +376,10 @@ function Ft(e, t, r, a, n, s, i, u, c) {
|
|
376
376
|
}
|
377
377
|
};
|
378
378
|
return l.length ? (l.forEach((d) => {
|
379
|
-
o[d] = Ut(e[d], t, o.$dirty, s, i, d,
|
379
|
+
o[d] = Ut(e[d], t, o.$dirty, s, i, d, a, n, c, m, p);
|
380
380
|
}), o.$externalResults = v(() => u.value ? [].concat(u.value).map((d, g) => ({
|
381
381
|
$propertyPath: n,
|
382
|
-
$property:
|
382
|
+
$property: a,
|
383
383
|
$validator: "$externalResults",
|
384
384
|
$uid: `${n}-externalResult-${g}`,
|
385
385
|
$message: d,
|
@@ -393,7 +393,7 @@ function Ft(e, t, r, a, n, s, i, u, c) {
|
|
393
393
|
const g = o[d];
|
394
394
|
return q({
|
395
395
|
$propertyPath: n,
|
396
|
-
$property:
|
396
|
+
$property: a,
|
397
397
|
$validator: d,
|
398
398
|
$uid: `${n}-${d}`,
|
399
399
|
$message: g.$message,
|
@@ -405,49 +405,49 @@ function Ft(e, t, r, a, n, s, i, u, c) {
|
|
405
405
|
o[d].$unwatch();
|
406
406
|
}), o.$commit = () => {
|
407
407
|
m.value = !0, p.value = Date.now();
|
408
|
-
},
|
408
|
+
}, r.set(n, e, o), o) : (M && r.set(n, e, o), o);
|
409
409
|
}
|
410
|
-
function Wt(e, t,
|
410
|
+
function Wt(e, t, a, r, n, s, i) {
|
411
411
|
const u = Object.keys(e);
|
412
412
|
return u.length ? u.reduce((c, l) => (c[l] = we({
|
413
413
|
validations: e[l],
|
414
414
|
state: t,
|
415
415
|
key: l,
|
416
|
-
parentKey:
|
417
|
-
resultsCache:
|
416
|
+
parentKey: a,
|
417
|
+
resultsCache: r,
|
418
418
|
globalConfig: n,
|
419
419
|
instance: s,
|
420
420
|
externalResults: i
|
421
421
|
}), c), {}) : {};
|
422
422
|
}
|
423
|
-
function Gt(e, t,
|
424
|
-
const
|
423
|
+
function Gt(e, t, a) {
|
424
|
+
const r = v(() => [t, a].filter((o) => o).reduce((o, d) => o.concat(Object.values(L(d))), [])), n = v({
|
425
425
|
get() {
|
426
|
-
return e.$dirty.value || (
|
426
|
+
return e.$dirty.value || (r.value.length ? r.value.every((o) => o.$dirty) : !1);
|
427
427
|
},
|
428
428
|
set(o) {
|
429
429
|
e.$dirty.value = o;
|
430
430
|
}
|
431
431
|
}), s = v(() => {
|
432
|
-
const o = L(e.$silentErrors) || [], d =
|
432
|
+
const o = L(e.$silentErrors) || [], d = r.value.filter((g) => (L(g).$silentErrors || []).length).reduce((g, w) => g.concat(...w.$silentErrors), []);
|
433
433
|
return o.concat(d);
|
434
434
|
}), i = v(() => {
|
435
|
-
const o = L(e.$errors) || [], d =
|
435
|
+
const o = L(e.$errors) || [], d = r.value.filter((g) => (L(g).$errors || []).length).reduce((g, w) => g.concat(...w.$errors), []);
|
436
436
|
return o.concat(d);
|
437
|
-
}), u = v(() =>
|
438
|
-
e.$touch(),
|
437
|
+
}), u = v(() => r.value.some((o) => o.$invalid) || L(e.$invalid) || !1), c = v(() => r.value.some((o) => L(o.$pending)) || L(e.$pending) || !1), l = v(() => r.value.some((o) => o.$dirty) || r.value.some((o) => o.$anyDirty) || n.value), M = v(() => n.value ? c.value || u.value : !1), y = () => {
|
438
|
+
e.$touch(), r.value.forEach((o) => {
|
439
439
|
o.$touch();
|
440
440
|
});
|
441
441
|
}, m = () => {
|
442
|
-
e.$commit(),
|
442
|
+
e.$commit(), r.value.forEach((o) => {
|
443
443
|
o.$commit();
|
444
444
|
});
|
445
445
|
}, p = () => {
|
446
|
-
e.$reset(),
|
446
|
+
e.$reset(), r.value.forEach((o) => {
|
447
447
|
o.$reset();
|
448
448
|
});
|
449
449
|
};
|
450
|
-
return
|
450
|
+
return r.value.length && r.value.every((o) => o.$dirty) && y(), {
|
451
451
|
$dirty: n,
|
452
452
|
$errors: i,
|
453
453
|
$invalid: u,
|
@@ -463,8 +463,8 @@ function Gt(e, t, r) {
|
|
463
463
|
function we(e) {
|
464
464
|
let {
|
465
465
|
validations: t,
|
466
|
-
state:
|
467
|
-
key:
|
466
|
+
state: a,
|
467
|
+
key: r,
|
468
468
|
parentKey: n,
|
469
469
|
childResults: s,
|
470
470
|
resultsCache: i,
|
@@ -472,21 +472,21 @@ function we(e) {
|
|
472
472
|
instance: c,
|
473
473
|
externalResults: l
|
474
474
|
} = e;
|
475
|
-
const M = n ? `${n}.${
|
475
|
+
const M = n ? `${n}.${r}` : r, {
|
476
476
|
rules: y,
|
477
477
|
nestedValidators: m,
|
478
478
|
config: p,
|
479
479
|
validationGroups: o
|
480
|
-
} = Vt(t), d = A(A({}, u), p), g =
|
481
|
-
const $ = L(
|
482
|
-
return $ ? L($[
|
483
|
-
}) :
|
480
|
+
} = Vt(t), d = A(A({}, u), p), g = r ? v(() => {
|
481
|
+
const $ = L(a);
|
482
|
+
return $ ? L($[r]) : void 0;
|
483
|
+
}) : a, w = A({}, L(l) || {}), S = v(() => {
|
484
484
|
const $ = L(l);
|
485
|
-
return
|
486
|
-
}), Z = Ft(y, g,
|
485
|
+
return r ? $ ? L($[r]) : void 0 : $;
|
486
|
+
}), Z = Ft(y, g, r, i, M, d, c, S, a), b = Wt(m, g, M, i, d, c, S), Q = {};
|
487
487
|
o && Object.entries(o).forEach(($) => {
|
488
|
-
let [
|
489
|
-
R
|
488
|
+
let [R, _] = $;
|
489
|
+
Q[R] = {
|
490
490
|
$invalid: pe(_, b, "$invalid"),
|
491
491
|
$error: pe(_, b, "$error"),
|
492
492
|
$pending: pe(_, b, "$pending"),
|
@@ -502,21 +502,21 @@ function we(e) {
|
|
502
502
|
$error: tt,
|
503
503
|
$pending: Me,
|
504
504
|
$touch: ge,
|
505
|
-
$reset:
|
506
|
-
$silentErrors:
|
505
|
+
$reset: at,
|
506
|
+
$silentErrors: rt,
|
507
507
|
$commit: Ce
|
508
|
-
} = Gt(Z, b, s), nt =
|
508
|
+
} = Gt(Z, b, s), nt = r ? v({
|
509
509
|
get: () => L(g),
|
510
510
|
set: ($) => {
|
511
511
|
z.value = !0;
|
512
|
-
const
|
513
|
-
_ && (_[
|
512
|
+
const R = L(a), _ = L(l);
|
513
|
+
_ && (_[r] = w[r]), ye(R[r]) ? R[r].value = $ : R[r] = $;
|
514
514
|
}
|
515
515
|
}) : null;
|
516
|
-
|
516
|
+
r && d.$autoDirty && J(g, () => {
|
517
517
|
z.value || ge();
|
518
518
|
const $ = L(l);
|
519
|
-
$ && ($[
|
519
|
+
$ && ($[r] = w[r]);
|
520
520
|
}, {
|
521
521
|
flush: "sync"
|
522
522
|
});
|
@@ -524,8 +524,8 @@ function we(e) {
|
|
524
524
|
return ge(), d.$rewardEarly && (Ce(), await ne()), await ne(), new Promise(($) => {
|
525
525
|
if (!Me.value)
|
526
526
|
return $(!Le.value);
|
527
|
-
const
|
528
|
-
$(!Le.value),
|
527
|
+
const R = J(Me, () => {
|
528
|
+
$(!Le.value), R();
|
529
529
|
});
|
530
530
|
});
|
531
531
|
}
|
@@ -546,39 +546,39 @@ function we(e) {
|
|
546
546
|
$anyDirty: et,
|
547
547
|
$pending: Me,
|
548
548
|
$touch: ge,
|
549
|
-
$reset:
|
549
|
+
$reset: at,
|
550
550
|
$path: M || Bt,
|
551
|
-
$silentErrors:
|
551
|
+
$silentErrors: rt,
|
552
552
|
$validate: st,
|
553
553
|
$commit: Ce
|
554
554
|
}, s && {
|
555
555
|
$getResultsForChild: ot,
|
556
556
|
$clearExternalResults: ut,
|
557
|
-
$validationGroups:
|
557
|
+
$validationGroups: Q
|
558
558
|
}), b));
|
559
559
|
}
|
560
560
|
class Zt {
|
561
561
|
constructor() {
|
562
562
|
this.storage = /* @__PURE__ */ new Map();
|
563
563
|
}
|
564
|
-
set(t,
|
564
|
+
set(t, a, r) {
|
565
565
|
this.storage.set(t, {
|
566
|
-
rules:
|
567
|
-
result:
|
566
|
+
rules: a,
|
567
|
+
result: r
|
568
568
|
});
|
569
569
|
}
|
570
|
-
checkRulesValidity(t,
|
571
|
-
const n = Object.keys(
|
572
|
-
return s.length !== n.length || !s.every((u) => n.includes(u)) ? !1 : s.every((u) =>
|
570
|
+
checkRulesValidity(t, a, r) {
|
571
|
+
const n = Object.keys(r), s = Object.keys(a);
|
572
|
+
return s.length !== n.length || !s.every((u) => n.includes(u)) ? !1 : s.every((u) => a[u].$params ? Object.keys(a[u].$params).every((c) => L(r[u].$params[c]) === L(a[u].$params[c])) : !0);
|
573
573
|
}
|
574
|
-
get(t,
|
575
|
-
const
|
576
|
-
if (!
|
574
|
+
get(t, a) {
|
575
|
+
const r = this.storage.get(t);
|
576
|
+
if (!r)
|
577
577
|
return;
|
578
578
|
const {
|
579
579
|
rules: n,
|
580
580
|
result: s
|
581
|
-
} =
|
581
|
+
} = r, i = this.checkRulesValidity(t, a, n), u = s.$unwatch ? s.$unwatch : () => ({});
|
582
582
|
return i ? s : {
|
583
583
|
$dirty: s.$dirty,
|
584
584
|
$partial: !0,
|
@@ -593,26 +593,26 @@ const te = {
|
|
593
593
|
function Ht(e) {
|
594
594
|
let {
|
595
595
|
$scope: t,
|
596
|
-
instance:
|
596
|
+
instance: a
|
597
597
|
} = e;
|
598
|
-
const
|
598
|
+
const r = {}, n = N([]), s = v(() => n.value.reduce((M, y) => (M[y] = L(r[y]), M), {}));
|
599
599
|
function i(M, y) {
|
600
600
|
let {
|
601
601
|
$registerAs: m,
|
602
602
|
$scope: p,
|
603
603
|
$stopPropagation: o
|
604
604
|
} = y;
|
605
|
-
o || t === te.COLLECT_NONE || p === te.COLLECT_NONE || t !== te.COLLECT_ALL && t !== p || (
|
605
|
+
o || t === te.COLLECT_NONE || p === te.COLLECT_NONE || t !== te.COLLECT_ALL && t !== p || (r[m] = M, n.value.push(m));
|
606
606
|
}
|
607
|
-
|
607
|
+
a.__vuelidateInjectInstances = [].concat(a.__vuelidateInjectInstances || [], i);
|
608
608
|
function u(M) {
|
609
|
-
n.value = n.value.filter((y) => y !== M), delete
|
609
|
+
n.value = n.value.filter((y) => y !== M), delete r[M];
|
610
610
|
}
|
611
|
-
|
612
|
-
const c =
|
613
|
-
xe(Oe,
|
614
|
-
const l =
|
615
|
-
return xe(ze,
|
611
|
+
a.__vuelidateRemoveInstances = [].concat(a.__vuelidateRemoveInstances || [], u);
|
612
|
+
const c = re(Oe, []);
|
613
|
+
xe(Oe, a.__vuelidateInjectInstances);
|
614
|
+
const l = re(ze, []);
|
615
|
+
return xe(ze, a.__vuelidateRemoveInstances), {
|
616
616
|
childResults: s,
|
617
617
|
sendValidationResultsToParent: c,
|
618
618
|
removeValidationResultsFromParent: l
|
@@ -620,24 +620,24 @@ function Ht(e) {
|
|
620
620
|
}
|
621
621
|
function Xe(e) {
|
622
622
|
return new Proxy(e, {
|
623
|
-
get(t,
|
624
|
-
return typeof t[
|
623
|
+
get(t, a) {
|
624
|
+
return typeof t[a] == "object" ? Xe(t[a]) : v(() => t[a]);
|
625
625
|
}
|
626
626
|
});
|
627
627
|
}
|
628
628
|
let _e = 0;
|
629
629
|
function Jt(e, t) {
|
630
|
-
var
|
631
|
-
let
|
632
|
-
arguments.length === 1 && (
|
630
|
+
var a;
|
631
|
+
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
632
|
+
arguments.length === 1 && (r = e, e = void 0, t = void 0);
|
633
633
|
let {
|
634
634
|
$registerAs: n,
|
635
635
|
$scope: s = te.COLLECT_ALL,
|
636
636
|
$stopPropagation: i,
|
637
637
|
$externalResults: u,
|
638
638
|
currentVueInstance: c
|
639
|
-
} =
|
640
|
-
const l = c || ((
|
639
|
+
} = r;
|
640
|
+
const l = c || ((a = ct()) === null || a === void 0 ? void 0 : a.proxy), M = l ? l.$options : {};
|
641
641
|
n || (_e += 1, n = `_vuelidate_${_e}`);
|
642
642
|
const y = N({}), m = new Zt(), {
|
643
643
|
childResults: p,
|
@@ -658,14 +658,14 @@ function Jt(e, t) {
|
|
658
658
|
state: t,
|
659
659
|
childResults: p,
|
660
660
|
resultsCache: m,
|
661
|
-
globalConfig:
|
661
|
+
globalConfig: r,
|
662
662
|
instance: l,
|
663
663
|
externalResults: u || l.vuelidateExternalResults
|
664
664
|
});
|
665
665
|
}, {
|
666
666
|
immediate: !0
|
667
667
|
});
|
668
|
-
}),
|
668
|
+
}), r = M.validationsConfig || r;
|
669
669
|
} else {
|
670
670
|
const g = ye(e) || Yt(e) ? e : q(e || {});
|
671
671
|
J(g, (w) => {
|
@@ -674,7 +674,7 @@ function Jt(e, t) {
|
|
674
674
|
state: t,
|
675
675
|
childResults: p,
|
676
676
|
resultsCache: m,
|
677
|
-
globalConfig:
|
677
|
+
globalConfig: r,
|
678
678
|
instance: l ?? {},
|
679
679
|
externalResults: u
|
680
680
|
});
|
@@ -702,8 +702,8 @@ const Xt = ["id", "type", "name", "placeholder", "value"], Kt = /* @__PURE__ */
|
|
702
702
|
},
|
703
703
|
emits: ["input"],
|
704
704
|
setup(e, { emit: t }) {
|
705
|
-
const
|
706
|
-
|
705
|
+
const a = t, r = (n) => {
|
706
|
+
a("input", n);
|
707
707
|
};
|
708
708
|
return (n, s) => (j(), h("input", F({
|
709
709
|
id: n.id,
|
@@ -711,9 +711,9 @@ const Xt = ["id", "type", "name", "placeholder", "value"], Kt = /* @__PURE__ */
|
|
711
711
|
name: n.name,
|
712
712
|
placeholder: n.placeholder,
|
713
713
|
value: n.value
|
714
|
-
}, n.$attrs, { onInput:
|
714
|
+
}, n.$attrs, { onInput: r }), null, 16, Xt));
|
715
715
|
}
|
716
|
-
}), qt = ["id", "name", "checked", "value"],
|
716
|
+
}), qt = ["id", "name", "checked", "value"], ea = /* @__PURE__ */ C({
|
717
717
|
__name: "InputCheckbox",
|
718
718
|
props: {
|
719
719
|
defaultChecked: { type: Boolean },
|
@@ -727,8 +727,8 @@ const Xt = ["id", "type", "name", "placeholder", "value"], Kt = /* @__PURE__ */
|
|
727
727
|
},
|
728
728
|
emits: ["input"],
|
729
729
|
setup(e, { emit: t }) {
|
730
|
-
const
|
731
|
-
|
730
|
+
const a = t, r = (n) => {
|
731
|
+
a("input", n);
|
732
732
|
};
|
733
733
|
return (n, s) => (j(), h("input", F({
|
734
734
|
id: n.id,
|
@@ -737,9 +737,9 @@ const Xt = ["id", "type", "name", "placeholder", "value"], Kt = /* @__PURE__ */
|
|
737
737
|
value: n.value,
|
738
738
|
class: "pdap-input-checkbox",
|
739
739
|
type: "checkbox"
|
740
|
-
}, n.$attrs, { onInput:
|
740
|
+
}, n.$attrs, { onInput: r }), null, 16, qt));
|
741
741
|
}
|
742
|
-
}),
|
742
|
+
}), ta = ["id"], aa = ["for"], ra = /* @__PURE__ */ C({
|
743
743
|
__name: "PdapInput",
|
744
744
|
props: {
|
745
745
|
type: {},
|
@@ -752,62 +752,62 @@ const Xt = ["id", "type", "name", "placeholder", "value"], Kt = /* @__PURE__ */
|
|
752
752
|
defaultChecked: { type: Boolean }
|
753
753
|
},
|
754
754
|
setup(e) {
|
755
|
-
const t = e,
|
756
|
-
return (
|
755
|
+
const t = e, a = v(() => `pdap-${t.name}-input-error`);
|
756
|
+
return (r, n) => {
|
757
757
|
var s;
|
758
758
|
return j(), h("div", {
|
759
759
|
class: le({
|
760
760
|
"pdap-input": !0,
|
761
|
-
[`pdap-input-${
|
762
|
-
[`pdap-input-${
|
763
|
-
"pdap-input-error": Number((s =
|
761
|
+
[`pdap-input-${r.type}`]: !0,
|
762
|
+
[`pdap-input-${r.type}-checked`]: r.type === L(O).CHECKBOX && r.value === "true",
|
763
|
+
"pdap-input-error": Number((s = r.error) == null ? void 0 : s.length) >= 1
|
764
764
|
})
|
765
765
|
}, [
|
766
|
-
|
766
|
+
r.type === L(O).CHECKBOX ? (j(), x(ea, F({
|
767
767
|
key: 0,
|
768
768
|
class: "pdap-input-checkbox"
|
769
|
-
}, { ...
|
770
|
-
|
769
|
+
}, { ...r.$attrs, ...t }), null, 16)) : (j(), x(Kt, Mt(F({ key: 1 }, { ...r.$attrs, ...r.$props })), null, 16)),
|
770
|
+
r.error ? (j(), h("div", {
|
771
771
|
key: 2,
|
772
|
-
id:
|
772
|
+
id: a.value,
|
773
773
|
class: "pdap-input-error-message"
|
774
|
-
}, E(
|
774
|
+
}, E(r.error), 9, ta)) : k("", !0),
|
775
775
|
f("label", {
|
776
776
|
class: "pdap-input-label",
|
777
|
-
for:
|
778
|
-
}, E(
|
777
|
+
for: r.id
|
778
|
+
}, E(r.label), 9, aa)
|
779
779
|
], 2);
|
780
780
|
};
|
781
781
|
}
|
782
782
|
});
|
783
783
|
function Ae(e, t) {
|
784
|
-
var
|
784
|
+
var a = Object.keys(e);
|
785
785
|
if (Object.getOwnPropertySymbols) {
|
786
|
-
var
|
787
|
-
t && (
|
786
|
+
var r = Object.getOwnPropertySymbols(e);
|
787
|
+
t && (r = r.filter(function(n) {
|
788
788
|
return Object.getOwnPropertyDescriptor(e, n).enumerable;
|
789
|
-
})),
|
789
|
+
})), a.push.apply(a, r);
|
790
790
|
}
|
791
|
-
return
|
791
|
+
return a;
|
792
792
|
}
|
793
793
|
function W(e) {
|
794
794
|
for (var t = 1; t < arguments.length; t++) {
|
795
|
-
var
|
796
|
-
t % 2 ? Ae(Object(
|
797
|
-
|
798
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(
|
799
|
-
Object.defineProperty(e,
|
795
|
+
var a = arguments[t] != null ? arguments[t] : {};
|
796
|
+
t % 2 ? Ae(Object(a), !0).forEach(function(r) {
|
797
|
+
na(e, r, a[r]);
|
798
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : Ae(Object(a)).forEach(function(r) {
|
799
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(a, r));
|
800
800
|
});
|
801
801
|
}
|
802
802
|
return e;
|
803
803
|
}
|
804
|
-
function
|
804
|
+
function na(e, t, a) {
|
805
805
|
return t in e ? Object.defineProperty(e, t, {
|
806
|
-
value:
|
806
|
+
value: a,
|
807
807
|
enumerable: !0,
|
808
808
|
configurable: !0,
|
809
809
|
writable: !0
|
810
|
-
}) : e[t] =
|
810
|
+
}) : e[t] = a, e;
|
811
811
|
}
|
812
812
|
function X(e) {
|
813
813
|
return typeof e == "function";
|
@@ -820,10 +820,10 @@ function de(e) {
|
|
820
820
|
$validator: e
|
821
821
|
};
|
822
822
|
}
|
823
|
-
function
|
823
|
+
function sa(e) {
|
824
824
|
return ie(e) && X(e.then);
|
825
825
|
}
|
826
|
-
function
|
826
|
+
function P(e) {
|
827
827
|
return typeof e == "object" ? e.$valid : e;
|
828
828
|
}
|
829
829
|
function V(e) {
|
@@ -834,42 +834,42 @@ function ve(e, t) {
|
|
834
834
|
throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof e}`);
|
835
835
|
if (!ie(t) && !X(t))
|
836
836
|
throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");
|
837
|
-
const
|
838
|
-
return
|
837
|
+
const a = de(t);
|
838
|
+
return a.$params = W(W({}, a.$params || {}), e), a;
|
839
839
|
}
|
840
840
|
function K(e, t) {
|
841
841
|
if (!X(e) && typeof L(e) != "string")
|
842
842
|
throw new Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof e}`);
|
843
843
|
if (!ie(t) && !X(t))
|
844
844
|
throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");
|
845
|
-
const
|
846
|
-
return
|
845
|
+
const a = de(t);
|
846
|
+
return a.$message = e, a;
|
847
847
|
}
|
848
|
-
function
|
848
|
+
function oa(e) {
|
849
849
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
850
|
-
const
|
851
|
-
return W(W({},
|
850
|
+
const a = de(e);
|
851
|
+
return W(W({}, a), {}, {
|
852
852
|
$async: !0,
|
853
853
|
$watchTargets: t
|
854
854
|
});
|
855
855
|
}
|
856
|
-
function
|
856
|
+
function ua(e) {
|
857
857
|
return {
|
858
858
|
$validator(t) {
|
859
|
-
for (var
|
860
|
-
|
859
|
+
for (var a = arguments.length, r = new Array(a > 1 ? a - 1 : 0), n = 1; n < a; n++)
|
860
|
+
r[n - 1] = arguments[n];
|
861
861
|
return L(t).reduce((s, i, u) => {
|
862
862
|
const c = Object.entries(i).reduce((l, M) => {
|
863
863
|
let [y, m] = M;
|
864
864
|
const p = e[y] || {}, o = Object.entries(p).reduce((d, g) => {
|
865
|
-
let [w,
|
866
|
-
const b = V(
|
867
|
-
if (d.$data[w] = b, d.$data.$invalid = !
|
868
|
-
let z =
|
869
|
-
const ee =
|
865
|
+
let [w, S] = g;
|
866
|
+
const b = V(S).call(this, m, i, u, ...r), Q = P(b);
|
867
|
+
if (d.$data[w] = b, d.$data.$invalid = !Q || !!d.$data.$invalid, d.$data.$error = d.$data.$invalid, !Q) {
|
868
|
+
let z = S.$message || "";
|
869
|
+
const ee = S.$params || {};
|
870
870
|
typeof z == "function" && (z = z({
|
871
871
|
$pending: !1,
|
872
|
-
$invalid: !
|
872
|
+
$invalid: !Q,
|
873
873
|
$params: ee,
|
874
874
|
$model: m,
|
875
875
|
$response: b
|
@@ -884,7 +884,7 @@ function ur(e) {
|
|
884
884
|
});
|
885
885
|
}
|
886
886
|
return {
|
887
|
-
$valid: d.$valid &&
|
887
|
+
$valid: d.$valid && Q,
|
888
888
|
$data: d.$data,
|
889
889
|
$errors: d.$errors
|
890
890
|
};
|
@@ -916,13 +916,13 @@ function ur(e) {
|
|
916
916
|
},
|
917
917
|
$message: (t) => {
|
918
918
|
let {
|
919
|
-
$response:
|
919
|
+
$response: a
|
920
920
|
} = t;
|
921
|
-
return
|
921
|
+
return a ? a.$errors.map((r) => Object.values(r).map((n) => n.map((s) => s.$message)).reduce((n, s) => n.concat(s), [])) : [];
|
922
922
|
}
|
923
923
|
};
|
924
924
|
}
|
925
|
-
const
|
925
|
+
const I = (e) => {
|
926
926
|
if (e = L(e), Array.isArray(e))
|
927
927
|
return !!e.length;
|
928
928
|
if (e == null)
|
@@ -938,54 +938,54 @@ const x = (e) => {
|
|
938
938
|
}
|
939
939
|
return !!String(e).length;
|
940
940
|
}, $e = (e) => (e = L(e), Array.isArray(e) ? e.length : typeof e == "object" ? Object.keys(e).length : String(e).length);
|
941
|
-
function
|
942
|
-
for (var e = arguments.length, t = new Array(e),
|
943
|
-
t[
|
944
|
-
return (
|
941
|
+
function Y() {
|
942
|
+
for (var e = arguments.length, t = new Array(e), a = 0; a < e; a++)
|
943
|
+
t[a] = arguments[a];
|
944
|
+
return (r) => (r = L(r), !I(r) || t.every((n) => (n.lastIndex = 0, n.test(r))));
|
945
945
|
}
|
946
946
|
var G = /* @__PURE__ */ Object.freeze({
|
947
947
|
__proto__: null,
|
948
|
-
forEach:
|
948
|
+
forEach: ua,
|
949
949
|
len: $e,
|
950
950
|
normalizeValidatorObject: de,
|
951
|
-
regex:
|
952
|
-
req:
|
951
|
+
regex: Y,
|
952
|
+
req: I,
|
953
953
|
unwrap: L,
|
954
954
|
unwrapNormalizedValidator: V,
|
955
|
-
unwrapValidatorResponse:
|
956
|
-
withAsync:
|
955
|
+
unwrapValidatorResponse: P,
|
956
|
+
withAsync: oa,
|
957
957
|
withMessage: K,
|
958
958
|
withParams: ve
|
959
|
-
}),
|
960
|
-
$validator:
|
959
|
+
}), ia = Y(/^[a-zA-Z]*$/), la = {
|
960
|
+
$validator: ia,
|
961
961
|
$message: "The value is not alphabetical",
|
962
962
|
$params: {
|
963
963
|
type: "alpha"
|
964
964
|
}
|
965
|
-
},
|
966
|
-
$validator:
|
965
|
+
}, ca = Y(/^[a-zA-Z0-9]*$/), da = {
|
966
|
+
$validator: ca,
|
967
967
|
$message: "The value must be alpha-numeric",
|
968
968
|
$params: {
|
969
969
|
type: "alphaNum"
|
970
970
|
}
|
971
|
-
},
|
972
|
-
$validator:
|
971
|
+
}, La = Y(/^\d*(\.\d+)?$/), Ma = {
|
972
|
+
$validator: La,
|
973
973
|
$message: "Value must be numeric",
|
974
974
|
$params: {
|
975
975
|
type: "numeric"
|
976
976
|
}
|
977
977
|
};
|
978
|
-
function
|
979
|
-
return (
|
978
|
+
function ga(e, t) {
|
979
|
+
return (a) => !I(a) || (!/\s/.test(a) || a instanceof Date) && +L(e) <= +a && +L(t) >= +a;
|
980
980
|
}
|
981
|
-
function
|
981
|
+
function pa(e, t) {
|
982
982
|
return {
|
983
|
-
$validator:
|
984
|
-
$message: (
|
983
|
+
$validator: ga(e, t),
|
984
|
+
$message: (a) => {
|
985
985
|
let {
|
986
|
-
$params:
|
987
|
-
} =
|
988
|
-
return `The value must be between ${
|
986
|
+
$params: r
|
987
|
+
} = a;
|
988
|
+
return `The value must be between ${r.min} and ${r.max}`;
|
989
989
|
},
|
990
990
|
$params: {
|
991
991
|
min: e,
|
@@ -994,67 +994,67 @@ function pr(e, t) {
|
|
994
994
|
}
|
995
995
|
};
|
996
996
|
}
|
997
|
-
const
|
998
|
-
var
|
999
|
-
$validator:
|
997
|
+
const ya = /^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;
|
998
|
+
var ma = Y(ya), Ne = {
|
999
|
+
$validator: ma,
|
1000
1000
|
$message: "Value is not a valid email address",
|
1001
1001
|
$params: {
|
1002
1002
|
type: "email"
|
1003
1003
|
}
|
1004
1004
|
};
|
1005
|
-
function
|
1006
|
-
if (!
|
1005
|
+
function ja(e) {
|
1006
|
+
if (!I(e))
|
1007
1007
|
return !0;
|
1008
1008
|
if (typeof e != "string")
|
1009
1009
|
return !1;
|
1010
1010
|
const t = e.split(".");
|
1011
|
-
return t.length === 4 && t.every(
|
1011
|
+
return t.length === 4 && t.every(fa);
|
1012
1012
|
}
|
1013
|
-
const
|
1013
|
+
const fa = (e) => {
|
1014
1014
|
if (e.length > 3 || e.length === 0 || e[0] === "0" && e !== "0" || !e.match(/^\d+$/))
|
1015
1015
|
return !1;
|
1016
1016
|
const t = +e | 0;
|
1017
1017
|
return t >= 0 && t <= 255;
|
1018
1018
|
};
|
1019
|
-
var
|
1020
|
-
$validator:
|
1019
|
+
var wa = {
|
1020
|
+
$validator: ja,
|
1021
1021
|
$message: "The value is not a valid IP address",
|
1022
1022
|
$params: {
|
1023
1023
|
type: "ipAddress"
|
1024
1024
|
}
|
1025
1025
|
};
|
1026
|
-
function
|
1026
|
+
function ha() {
|
1027
1027
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ":";
|
1028
1028
|
return (t) => {
|
1029
|
-
if (e = L(e), !
|
1029
|
+
if (e = L(e), !I(t))
|
1030
1030
|
return !0;
|
1031
1031
|
if (typeof t != "string")
|
1032
1032
|
return !1;
|
1033
|
-
const
|
1034
|
-
return
|
1033
|
+
const a = typeof e == "string" && e !== "" ? t.split(e) : t.length === 12 || t.length === 16 ? t.match(/.{2}/g) : null;
|
1034
|
+
return a !== null && (a.length === 6 || a.length === 8) && a.every(va);
|
1035
1035
|
};
|
1036
1036
|
}
|
1037
|
-
const
|
1038
|
-
function $
|
1037
|
+
const va = (e) => e.toLowerCase().match(/^[0-9a-f]{2}$/);
|
1038
|
+
function $a(e) {
|
1039
1039
|
return {
|
1040
|
-
$validator:
|
1040
|
+
$validator: ha(e),
|
1041
1041
|
$message: "The value is not a valid MAC Address",
|
1042
1042
|
$params: {
|
1043
1043
|
type: "macAddress"
|
1044
1044
|
}
|
1045
1045
|
};
|
1046
1046
|
}
|
1047
|
-
function
|
1048
|
-
return (t) => !
|
1047
|
+
function Na(e) {
|
1048
|
+
return (t) => !I(t) || $e(t) <= L(e);
|
1049
1049
|
}
|
1050
|
-
function
|
1050
|
+
function Da(e) {
|
1051
1051
|
return {
|
1052
|
-
$validator:
|
1052
|
+
$validator: Na(e),
|
1053
1053
|
$message: (t) => {
|
1054
1054
|
let {
|
1055
|
-
$params:
|
1055
|
+
$params: a
|
1056
1056
|
} = t;
|
1057
|
-
return `The maximum length allowed is ${
|
1057
|
+
return `The maximum length allowed is ${a.max}`;
|
1058
1058
|
},
|
1059
1059
|
$params: {
|
1060
1060
|
max: e,
|
@@ -1062,17 +1062,17 @@ function Dr(e) {
|
|
1062
1062
|
}
|
1063
1063
|
};
|
1064
1064
|
}
|
1065
|
-
function
|
1066
|
-
return (t) => !
|
1065
|
+
function Ta(e) {
|
1066
|
+
return (t) => !I(t) || $e(t) >= L(e);
|
1067
1067
|
}
|
1068
|
-
function
|
1068
|
+
function Ca(e) {
|
1069
1069
|
return {
|
1070
|
-
$validator:
|
1070
|
+
$validator: Ta(e),
|
1071
1071
|
$message: (t) => {
|
1072
1072
|
let {
|
1073
|
-
$params:
|
1073
|
+
$params: a
|
1074
1074
|
} = t;
|
1075
|
-
return `This field should be at least ${
|
1075
|
+
return `This field should be at least ${a.min} characters long`;
|
1076
1076
|
},
|
1077
1077
|
$params: {
|
1078
1078
|
min: e,
|
@@ -1080,28 +1080,28 @@ function Cr(e) {
|
|
1080
1080
|
}
|
1081
1081
|
};
|
1082
1082
|
}
|
1083
|
-
function
|
1084
|
-
return typeof e == "string" && (e = e.trim()),
|
1083
|
+
function xa(e) {
|
1084
|
+
return typeof e == "string" && (e = e.trim()), I(e);
|
1085
1085
|
}
|
1086
1086
|
var De = {
|
1087
|
-
$validator:
|
1087
|
+
$validator: xa,
|
1088
1088
|
$message: "Value is required",
|
1089
1089
|
$params: {
|
1090
1090
|
type: "required"
|
1091
1091
|
}
|
1092
1092
|
};
|
1093
|
-
const ke = (e, t) => e ?
|
1094
|
-
function
|
1095
|
-
return function(t,
|
1093
|
+
const ke = (e, t) => e ? I(typeof t == "string" ? t.trim() : t) : !0;
|
1094
|
+
function Ia(e) {
|
1095
|
+
return function(t, a) {
|
1096
1096
|
if (typeof e != "function")
|
1097
1097
|
return ke(L(e), t);
|
1098
|
-
const
|
1099
|
-
return ke(
|
1098
|
+
const r = e.call(this, t, a);
|
1099
|
+
return ke(r, t);
|
1100
1100
|
};
|
1101
1101
|
}
|
1102
|
-
function
|
1102
|
+
function Sa(e) {
|
1103
1103
|
return {
|
1104
|
-
$validator:
|
1104
|
+
$validator: Ia(e),
|
1105
1105
|
$message: "The value is required",
|
1106
1106
|
$params: {
|
1107
1107
|
type: "requiredIf",
|
@@ -1109,18 +1109,18 @@ function br(e) {
|
|
1109
1109
|
}
|
1110
1110
|
};
|
1111
1111
|
}
|
1112
|
-
const Pe = (e, t) => e ? !0 :
|
1113
|
-
function
|
1114
|
-
return function(t,
|
1112
|
+
const Pe = (e, t) => e ? !0 : I(typeof t == "string" ? t.trim() : t);
|
1113
|
+
function ba(e) {
|
1114
|
+
return function(t, a) {
|
1115
1115
|
if (typeof e != "function")
|
1116
1116
|
return Pe(L(e), t);
|
1117
|
-
const
|
1118
|
-
return Pe(
|
1117
|
+
const r = e.call(this, t, a);
|
1118
|
+
return Pe(r, t);
|
1119
1119
|
};
|
1120
1120
|
}
|
1121
|
-
function
|
1121
|
+
function Ea(e) {
|
1122
1122
|
return {
|
1123
|
-
$validator:
|
1123
|
+
$validator: ba(e),
|
1124
1124
|
$message: "The value is required",
|
1125
1125
|
$params: {
|
1126
1126
|
type: "requiredUnless",
|
@@ -1128,14 +1128,14 @@ function Er(e) {
|
|
1128
1128
|
}
|
1129
1129
|
};
|
1130
1130
|
}
|
1131
|
-
function
|
1131
|
+
function Oa(e) {
|
1132
1132
|
return (t) => L(t) === L(e);
|
1133
1133
|
}
|
1134
|
-
function
|
1134
|
+
function za(e) {
|
1135
1135
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "other";
|
1136
1136
|
return {
|
1137
|
-
$validator:
|
1138
|
-
$message: (
|
1137
|
+
$validator: Oa(e),
|
1138
|
+
$message: (a) => `The value must be equal to the ${t} value`,
|
1139
1139
|
$params: {
|
1140
1140
|
equalTo: e,
|
1141
1141
|
otherName: t,
|
@@ -1143,108 +1143,108 @@ function zr(e) {
|
|
1143
1143
|
}
|
1144
1144
|
};
|
1145
1145
|
}
|
1146
|
-
const
|
1147
|
-
var
|
1148
|
-
$validator:
|
1146
|
+
const _a = /^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i;
|
1147
|
+
var Aa = Y(_a), ka = {
|
1148
|
+
$validator: Aa,
|
1149
1149
|
$message: "The value is not a valid URL address",
|
1150
1150
|
$params: {
|
1151
1151
|
type: "url"
|
1152
1152
|
}
|
1153
1153
|
};
|
1154
|
-
function
|
1154
|
+
function Pa(e) {
|
1155
1155
|
return function() {
|
1156
|
-
for (var t = arguments.length,
|
1157
|
-
r
|
1158
|
-
return e.reduce((n, s) =>
|
1156
|
+
for (var t = arguments.length, a = new Array(t), r = 0; r < t; r++)
|
1157
|
+
a[r] = arguments[r];
|
1158
|
+
return e.reduce((n, s) => P(n) ? n : V(s).apply(this, a), !1);
|
1159
1159
|
};
|
1160
1160
|
}
|
1161
|
-
function
|
1161
|
+
function Ya(e) {
|
1162
1162
|
return function() {
|
1163
|
-
for (var t = arguments.length,
|
1164
|
-
r
|
1163
|
+
for (var t = arguments.length, a = new Array(t), r = 0; r < t; r++)
|
1164
|
+
a[r] = arguments[r];
|
1165
1165
|
return e.reduce(async (n, s) => {
|
1166
1166
|
const i = await n;
|
1167
|
-
return
|
1167
|
+
return P(i) ? i : V(s).apply(this, a);
|
1168
1168
|
}, Promise.resolve(!1));
|
1169
1169
|
};
|
1170
1170
|
}
|
1171
|
-
function
|
1172
|
-
for (var e = arguments.length, t = new Array(e),
|
1173
|
-
t[
|
1174
|
-
const
|
1171
|
+
function Qa() {
|
1172
|
+
for (var e = arguments.length, t = new Array(e), a = 0; a < e; a++)
|
1173
|
+
t[a] = arguments[a];
|
1174
|
+
const r = t.some((i) => i.$async), n = t.reduce((i, u) => u.$watchTargets ? i.concat(u.$watchTargets) : i, []);
|
1175
1175
|
let s = () => !1;
|
1176
|
-
return t.length && (s =
|
1177
|
-
$async:
|
1176
|
+
return t.length && (s = r ? Ya(t) : Pa(t)), {
|
1177
|
+
$async: r,
|
1178
1178
|
$validator: s,
|
1179
1179
|
$watchTargets: n
|
1180
1180
|
};
|
1181
1181
|
}
|
1182
|
-
function
|
1182
|
+
function Ra() {
|
1183
1183
|
return ve({
|
1184
1184
|
type: "or"
|
1185
|
-
}, K("The value does not match any of the provided validators",
|
1185
|
+
}, K("The value does not match any of the provided validators", Qa(...arguments)));
|
1186
1186
|
}
|
1187
|
-
function
|
1187
|
+
function Ua(e) {
|
1188
1188
|
return function() {
|
1189
|
-
for (var t = arguments.length,
|
1190
|
-
r
|
1191
|
-
return e.reduce((n, s) =>
|
1189
|
+
for (var t = arguments.length, a = new Array(t), r = 0; r < t; r++)
|
1190
|
+
a[r] = arguments[r];
|
1191
|
+
return e.reduce((n, s) => P(n) ? V(s).apply(this, a) : n, !0);
|
1192
1192
|
};
|
1193
1193
|
}
|
1194
|
-
function
|
1194
|
+
function Va(e) {
|
1195
1195
|
return function() {
|
1196
|
-
for (var t = arguments.length,
|
1197
|
-
r
|
1196
|
+
for (var t = arguments.length, a = new Array(t), r = 0; r < t; r++)
|
1197
|
+
a[r] = arguments[r];
|
1198
1198
|
return e.reduce(async (n, s) => {
|
1199
1199
|
const i = await n;
|
1200
|
-
return
|
1200
|
+
return P(i) ? V(s).apply(this, a) : i;
|
1201
1201
|
}, Promise.resolve(!0));
|
1202
1202
|
};
|
1203
1203
|
}
|
1204
|
-
function
|
1205
|
-
for (var e = arguments.length, t = new Array(e),
|
1206
|
-
t[
|
1207
|
-
const
|
1204
|
+
function Ba() {
|
1205
|
+
for (var e = arguments.length, t = new Array(e), a = 0; a < e; a++)
|
1206
|
+
t[a] = arguments[a];
|
1207
|
+
const r = t.some((i) => i.$async), n = t.reduce((i, u) => u.$watchTargets ? i.concat(u.$watchTargets) : i, []);
|
1208
1208
|
let s = () => !1;
|
1209
|
-
return t.length && (s =
|
1210
|
-
$async:
|
1209
|
+
return t.length && (s = r ? Va(t) : Ua(t)), {
|
1210
|
+
$async: r,
|
1211
1211
|
$validator: s,
|
1212
1212
|
$watchTargets: n
|
1213
1213
|
};
|
1214
1214
|
}
|
1215
|
-
function
|
1215
|
+
function Fa() {
|
1216
1216
|
return ve({
|
1217
1217
|
type: "and"
|
1218
|
-
}, K("The value does not match all of the provided validators",
|
1218
|
+
}, K("The value does not match all of the provided validators", Ba(...arguments)));
|
1219
1219
|
}
|
1220
|
-
function
|
1221
|
-
return function(t,
|
1222
|
-
if (!
|
1220
|
+
function Wa(e) {
|
1221
|
+
return function(t, a) {
|
1222
|
+
if (!I(t))
|
1223
1223
|
return !0;
|
1224
|
-
const
|
1225
|
-
return
|
1224
|
+
const r = V(e).call(this, t, a);
|
1225
|
+
return sa(r) ? r.then((n) => !P(n)) : !P(r);
|
1226
1226
|
};
|
1227
1227
|
}
|
1228
|
-
function
|
1228
|
+
function Ga(e) {
|
1229
1229
|
return {
|
1230
|
-
$validator:
|
1230
|
+
$validator: Wa(e),
|
1231
1231
|
$message: "The value does not match the provided validator",
|
1232
1232
|
$params: {
|
1233
1233
|
type: "not"
|
1234
1234
|
}
|
1235
1235
|
};
|
1236
1236
|
}
|
1237
|
-
function
|
1238
|
-
return (t) => !
|
1237
|
+
function Za(e) {
|
1238
|
+
return (t) => !I(t) || (!/\s/.test(t) || t instanceof Date) && +t >= +L(e);
|
1239
1239
|
}
|
1240
|
-
function
|
1240
|
+
function Ha(e) {
|
1241
1241
|
return {
|
1242
|
-
$validator:
|
1242
|
+
$validator: Za(e),
|
1243
1243
|
$message: (t) => {
|
1244
1244
|
let {
|
1245
|
-
$params:
|
1245
|
+
$params: a
|
1246
1246
|
} = t;
|
1247
|
-
return `The minimum value allowed is ${
|
1247
|
+
return `The minimum value allowed is ${a.min}`;
|
1248
1248
|
},
|
1249
1249
|
$params: {
|
1250
1250
|
min: e,
|
@@ -1252,50 +1252,50 @@ function Hr(e) {
|
|
1252
1252
|
}
|
1253
1253
|
};
|
1254
1254
|
}
|
1255
|
-
function
|
1256
|
-
return (t) => !
|
1255
|
+
function Ja(e) {
|
1256
|
+
return (t) => !I(t) || (!/\s/.test(t) || t instanceof Date) && +t <= +L(e);
|
1257
1257
|
}
|
1258
|
-
var
|
1259
|
-
$validator:
|
1258
|
+
var Xa = (e) => ({
|
1259
|
+
$validator: Ja(e),
|
1260
1260
|
$message: (t) => {
|
1261
1261
|
let {
|
1262
|
-
$params:
|
1262
|
+
$params: a
|
1263
1263
|
} = t;
|
1264
|
-
return `The maximum value allowed is ${
|
1264
|
+
return `The maximum value allowed is ${a.max}`;
|
1265
1265
|
},
|
1266
1266
|
$params: {
|
1267
1267
|
max: e,
|
1268
1268
|
type: "maxValue"
|
1269
1269
|
}
|
1270
|
-
}),
|
1271
|
-
$validator:
|
1270
|
+
}), Ka = Y(/(^[0-9]*$)|(^-[0-9]+$)/), qa = {
|
1271
|
+
$validator: Ka,
|
1272
1272
|
$message: "Value is not an integer",
|
1273
1273
|
$params: {
|
1274
1274
|
type: "integer"
|
1275
1275
|
}
|
1276
|
-
},
|
1277
|
-
$validator:
|
1276
|
+
}, er = Y(/^[-]?\d*(\.\d+)?$/), tr = {
|
1277
|
+
$validator: er,
|
1278
1278
|
$message: "Value must be decimal",
|
1279
1279
|
$params: {
|
1280
1280
|
type: "decimal"
|
1281
1281
|
}
|
1282
1282
|
};
|
1283
|
-
function
|
1283
|
+
function ar(e) {
|
1284
1284
|
let {
|
1285
1285
|
t,
|
1286
|
-
messagePath:
|
1286
|
+
messagePath: a = (n) => {
|
1287
1287
|
let {
|
1288
1288
|
$validator: s
|
1289
1289
|
} = n;
|
1290
1290
|
return `validations.${s}`;
|
1291
1291
|
},
|
1292
|
-
messageParams:
|
1292
|
+
messageParams: r = (n) => n
|
1293
1293
|
} = e;
|
1294
1294
|
return function(s) {
|
1295
1295
|
let {
|
1296
1296
|
withArguments: i = !1,
|
1297
|
-
messagePath: u =
|
1298
|
-
messageParams: c =
|
1297
|
+
messagePath: u = a,
|
1298
|
+
messageParams: c = r
|
1299
1299
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
1300
1300
|
function l(M) {
|
1301
1301
|
return t(u(M), c(W({
|
@@ -1315,29 +1315,29 @@ function ra(e) {
|
|
1315
1315
|
}
|
1316
1316
|
const Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1317
1317
|
__proto__: null,
|
1318
|
-
alpha:
|
1319
|
-
alphaNum:
|
1320
|
-
and:
|
1321
|
-
between:
|
1322
|
-
createI18nMessage:
|
1323
|
-
decimal:
|
1318
|
+
alpha: la,
|
1319
|
+
alphaNum: da,
|
1320
|
+
and: Fa,
|
1321
|
+
between: pa,
|
1322
|
+
createI18nMessage: ar,
|
1323
|
+
decimal: tr,
|
1324
1324
|
email: Ne,
|
1325
1325
|
helpers: G,
|
1326
|
-
integer:
|
1327
|
-
ipAddress:
|
1328
|
-
macAddress: $
|
1329
|
-
maxLength:
|
1330
|
-
maxValue:
|
1331
|
-
minLength:
|
1332
|
-
minValue:
|
1333
|
-
not:
|
1334
|
-
numeric:
|
1335
|
-
or:
|
1326
|
+
integer: qa,
|
1327
|
+
ipAddress: wa,
|
1328
|
+
macAddress: $a,
|
1329
|
+
maxLength: Da,
|
1330
|
+
maxValue: Xa,
|
1331
|
+
minLength: Ca,
|
1332
|
+
minValue: Ha,
|
1333
|
+
not: Ga,
|
1334
|
+
numeric: Ma,
|
1335
|
+
or: Ra,
|
1336
1336
|
required: De,
|
1337
|
-
requiredIf:
|
1338
|
-
requiredUnless:
|
1339
|
-
sameAs:
|
1340
|
-
url:
|
1337
|
+
requiredIf: Sa,
|
1338
|
+
requiredUnless: Ea,
|
1339
|
+
sameAs: za,
|
1340
|
+
url: ka
|
1341
1341
|
}, Symbol.toStringTag, { value: "Module" })), qe = G.regex(
|
1342
1342
|
/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$ %^&*-]).{8,}$/
|
1343
1343
|
);
|
@@ -1353,70 +1353,70 @@ function Re(e) {
|
|
1353
1353
|
function Ue(e) {
|
1354
1354
|
return e === "password";
|
1355
1355
|
}
|
1356
|
-
function
|
1356
|
+
function rr(e, t) {
|
1357
1357
|
return {
|
1358
1358
|
[e]: Ke[e](t)
|
1359
1359
|
};
|
1360
1360
|
}
|
1361
|
-
function
|
1361
|
+
function nr(e, t, a) {
|
1362
1362
|
return {
|
1363
|
-
[e]: G.withMessage(
|
1363
|
+
[e]: G.withMessage(a, Ke[e](t))
|
1364
1364
|
};
|
1365
1365
|
}
|
1366
|
-
function
|
1366
|
+
function sr() {
|
1367
1367
|
return { required: De };
|
1368
1368
|
}
|
1369
|
-
function
|
1369
|
+
function or(e) {
|
1370
1370
|
return {
|
1371
1371
|
required: G.withMessage(e, De)
|
1372
1372
|
};
|
1373
1373
|
}
|
1374
|
-
function
|
1374
|
+
function ur() {
|
1375
1375
|
return { email: Ne };
|
1376
1376
|
}
|
1377
|
-
function
|
1377
|
+
function ir(e) {
|
1378
1378
|
return {
|
1379
1379
|
email: G.withMessage(e, Ne)
|
1380
1380
|
};
|
1381
1381
|
}
|
1382
|
-
function
|
1382
|
+
function lr() {
|
1383
1383
|
return { password: qe };
|
1384
1384
|
}
|
1385
|
-
function
|
1385
|
+
function cr(e) {
|
1386
1386
|
return {
|
1387
1387
|
password: G.withMessage(e, qe)
|
1388
1388
|
};
|
1389
1389
|
}
|
1390
|
-
function
|
1390
|
+
function dr(e, t) {
|
1391
1391
|
if (Ye(e) && typeof t.message == "string" && typeof t.value == "number")
|
1392
|
-
return
|
1392
|
+
return nr(
|
1393
1393
|
e,
|
1394
1394
|
t.value,
|
1395
1395
|
t.message
|
1396
1396
|
);
|
1397
1397
|
if (Ye(e) && typeof t.message > "u" && typeof t.value == "number")
|
1398
|
-
return
|
1398
|
+
return rr(e, t.value);
|
1399
1399
|
if (Re(e) && typeof t.message == "string")
|
1400
|
-
return
|
1400
|
+
return ir(t.message);
|
1401
1401
|
if (Re(e) && typeof t.message > "u")
|
1402
|
-
return
|
1402
|
+
return ur();
|
1403
1403
|
if (Ue(e) && typeof t.message == "string")
|
1404
|
-
return
|
1404
|
+
return cr(t.message);
|
1405
1405
|
if (Ue(e) && typeof t.message > "u")
|
1406
|
-
return
|
1406
|
+
return lr();
|
1407
1407
|
if (Qe(e) && typeof t.message == "string")
|
1408
|
-
return
|
1408
|
+
return or(t.message);
|
1409
1409
|
if (Qe(e) && typeof t.message > "u")
|
1410
|
-
return
|
1410
|
+
return sr();
|
1411
1411
|
throw new Error("No valid rule detected");
|
1412
1412
|
}
|
1413
|
-
const
|
1413
|
+
const Lr = ["id", "name", "onSubmit"], Mr = {
|
1414
1414
|
key: 0,
|
1415
1415
|
class: "pdap-form-error-message"
|
1416
|
-
},
|
1416
|
+
}, gr = {
|
1417
1417
|
name: "PdapForm"
|
1418
|
-
},
|
1419
|
-
...
|
1418
|
+
}, pr = /* @__PURE__ */ C({
|
1419
|
+
...gr,
|
1420
1420
|
props: {
|
1421
1421
|
error: { default: null },
|
1422
1422
|
id: {},
|
@@ -1426,8 +1426,8 @@ const La = ["id", "name", "onSubmit"], Ma = {
|
|
1426
1426
|
},
|
1427
1427
|
emits: ["submit", "change"],
|
1428
1428
|
setup(e, { emit: t }) {
|
1429
|
-
const
|
1430
|
-
() =>
|
1429
|
+
const a = e, r = t, n = v(
|
1430
|
+
() => a.schema.map((m) => {
|
1431
1431
|
const p = { ...m };
|
1432
1432
|
return delete p.validators, p;
|
1433
1433
|
})
|
@@ -1442,11 +1442,11 @@ const La = ["id", "name", "onSubmit"], Ma = {
|
|
1442
1442
|
return { ...m, [p.name]: p.value };
|
1443
1443
|
}
|
1444
1444
|
}, {})
|
1445
|
-
), i =
|
1445
|
+
), i = a.schema.reduce((m, p) => {
|
1446
1446
|
const o = Object.entries(p.validators ?? {}).reduce(
|
1447
1447
|
(d, [g, w]) => ({
|
1448
1448
|
...d,
|
1449
|
-
...
|
1449
|
+
...dr(g, w)
|
1450
1450
|
}),
|
1451
1451
|
{}
|
1452
1452
|
);
|
@@ -1456,7 +1456,7 @@ const La = ["id", "name", "onSubmit"], Ma = {
|
|
1456
1456
|
...o
|
1457
1457
|
}
|
1458
1458
|
};
|
1459
|
-
}, {}), u = Jt(i, s, { $autoDirty: !1, $lazy: !0 }), c = N(
|
1459
|
+
}, {}), u = Jt(i, s, { $autoDirty: !1, $lazy: !0 }), c = N(a.error);
|
1460
1460
|
function l(m, p) {
|
1461
1461
|
const o = p.target, d = (() => {
|
1462
1462
|
switch (m.type) {
|
@@ -1466,18 +1466,18 @@ const La = ["id", "name", "onSubmit"], Ma = {
|
|
1466
1466
|
return o.value;
|
1467
1467
|
}
|
1468
1468
|
})();
|
1469
|
-
s.value[m.name] = d,
|
1469
|
+
s.value[m.name] = d, r("change", s.value);
|
1470
1470
|
}
|
1471
1471
|
Ie(() => {
|
1472
|
-
|
1472
|
+
a.error ? c.value = a.error : c.value && u.value.$errors.length === 0 ? c.value = null : !c.value && u.value.$errors.length > 0 && (c.value = "Please update this form to correct the errors");
|
1473
1473
|
}), Ie(() => {
|
1474
|
-
|
1474
|
+
a.resetOn && a.resetOn !== "submit" && M();
|
1475
1475
|
});
|
1476
1476
|
function M() {
|
1477
1477
|
u.value.$reset(), s.value = Object.entries(s).reduce((m, [p]) => ({ ...m, [p]: "" }), {});
|
1478
1478
|
}
|
1479
1479
|
async function y() {
|
1480
|
-
await u.value.$validate() && (
|
1480
|
+
await u.value.$validate() && (r("submit", { ...s.value }), a.resetOn === "submit" && M());
|
1481
1481
|
}
|
1482
1482
|
return (m, p) => (j(), h("form", {
|
1483
1483
|
id: m.id,
|
@@ -1485,72 +1485,72 @@ const La = ["id", "name", "onSubmit"], Ma = {
|
|
1485
1485
|
class: "pdap-form",
|
1486
1486
|
onSubmit: me(y, ["prevent"])
|
1487
1487
|
}, [
|
1488
|
-
typeof c.value == "string" ? (j(), h("div",
|
1488
|
+
typeof c.value == "string" ? (j(), h("div", Mr, E(c.value), 1)) : k("", !0),
|
1489
1489
|
(j(!0), h(B, null, ce(n.value, (o) => {
|
1490
|
-
var d, g, w,
|
1491
|
-
return j(),
|
1490
|
+
var d, g, w, S;
|
1491
|
+
return j(), x(ra, F(o, {
|
1492
1492
|
key: o.name,
|
1493
|
-
error: (d = L(u)[o.name]) != null && d.$error ? (
|
1493
|
+
error: (d = L(u)[o.name]) != null && d.$error ? (S = (w = (g = L(u)[o.name]) == null ? void 0 : g.$errors) == null ? void 0 : w[0]) == null ? void 0 : S.$message : "",
|
1494
1494
|
value: s.value[o.name],
|
1495
1495
|
onInput: (Z) => l(o, Z)
|
1496
1496
|
}), null, 16, ["error", "value", "onInput"]);
|
1497
1497
|
}), 128)),
|
1498
1498
|
H(m.$slots, "default")
|
1499
|
-
], 40,
|
1499
|
+
], 40, Lr));
|
1500
1500
|
}
|
1501
1501
|
});
|
1502
|
-
const
|
1502
|
+
const yr = (e) => (gt("data-v-3158c5fc"), e = e(), pt(), e), mr = ["aria-label", "aria-expanded", "onKeyup"], jr = /* @__PURE__ */ yr(() => /* @__PURE__ */ f("svg", {
|
1503
1503
|
"aria-label": "Menu",
|
1504
1504
|
xmlns: "http://www.w3.org/2000/svg",
|
1505
1505
|
viewBox: "0 0 448 512"
|
1506
1506
|
}, [
|
1507
1507
|
/* @__PURE__ */ f("path", { d: "M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z" })
|
1508
|
-
], -1)),
|
1509
|
-
|
1510
|
-
],
|
1508
|
+
], -1)), fr = [
|
1509
|
+
jr
|
1510
|
+
], wr = ["aria-hidden"], hr = ["href"], vr = {
|
1511
1511
|
name: "PdapHeader"
|
1512
|
-
}, $
|
1513
|
-
...
|
1512
|
+
}, $r = /* @__PURE__ */ C({
|
1513
|
+
...vr,
|
1514
1514
|
setup(e) {
|
1515
|
-
let t =
|
1515
|
+
let t = re("navLinks");
|
1516
1516
|
typeof t > "u" && (t = [], console.error(
|
1517
1517
|
`Hey, PDAP developer
|
1518
1518
|
`,
|
1519
1519
|
"Did you forget to inject some linkData for the Nav component?"
|
1520
1520
|
));
|
1521
|
-
const
|
1521
|
+
const a = q({
|
1522
1522
|
isExpanded: !1,
|
1523
1523
|
isMobile: !0
|
1524
1524
|
});
|
1525
1525
|
Be(() => {
|
1526
|
-
|
1526
|
+
r(), window.addEventListener("resize", r);
|
1527
1527
|
}), he(() => {
|
1528
|
-
window.removeEventListener("resize",
|
1528
|
+
window.removeEventListener("resize", r);
|
1529
1529
|
});
|
1530
|
-
async function
|
1531
|
-
window.innerWidth <= 1024 ?
|
1530
|
+
async function r() {
|
1531
|
+
window.innerWidth <= 1024 ? a.isMobile = !0 : a.isMobile = !1, await ne();
|
1532
1532
|
}
|
1533
1533
|
async function n() {
|
1534
1534
|
var i, u;
|
1535
1535
|
const s = document.querySelector("body");
|
1536
|
-
!
|
1536
|
+
!a.isExpanded && a.isMobile ? (a.isExpanded = !0, s != null && s.classList.contains("lock-scroll") || (i = document.querySelector("body")) == null || i.classList.add("lock-scroll")) : a.isExpanded && a.isMobile && (a.isExpanded = !1, (u = document.querySelector("body")) == null || u.classList.remove("lock-scroll")), await ne();
|
1537
1537
|
}
|
1538
1538
|
return (s, i) => (j(), h(B, null, [
|
1539
1539
|
f("div", {
|
1540
|
-
"aria-label":
|
1541
|
-
"aria-expanded":
|
1540
|
+
"aria-label": a.isExpanded ? "close navigation menu" : "open navigation menu",
|
1541
|
+
"aria-expanded": a.isMobile && a.isExpanded,
|
1542
1542
|
"aria-controls": "nav",
|
1543
1543
|
class: "pdap-nav-open-button",
|
1544
1544
|
role: "button",
|
1545
1545
|
tabindex: 0,
|
1546
1546
|
onClick: n,
|
1547
1547
|
onKeyup: je(n, ["enter"])
|
1548
|
-
},
|
1549
|
-
|
1548
|
+
}, fr, 40, mr),
|
1549
|
+
U(se, null, {
|
1550
1550
|
default: D(() => [
|
1551
1551
|
fe(f("nav", {
|
1552
1552
|
id: "nav",
|
1553
|
-
"aria-hidden": !(
|
1553
|
+
"aria-hidden": !(a.isMobile && a.isExpanded),
|
1554
1554
|
class: "pdap-nav"
|
1555
1555
|
}, [
|
1556
1556
|
(j(!0), h(B, null, ce(L(t), (u) => (j(), h("li", {
|
@@ -1564,8 +1564,8 @@ const ya = (e) => (gt("data-v-3158c5fc"), e = e(), pt(), e), ma = ["aria-label",
|
|
1564
1564
|
target: "_blank",
|
1565
1565
|
referrerpolicy: "no-referrer",
|
1566
1566
|
onClick: n
|
1567
|
-
}, E(u.text), 9,
|
1568
|
-
u.path ? (j(),
|
1567
|
+
}, E(u.text), 9, hr)) : k("", !0),
|
1568
|
+
u.path ? (j(), x(L(oe), {
|
1569
1569
|
key: 1,
|
1570
1570
|
"active-class": "pdap-nav-link-current",
|
1571
1571
|
"exact-active-class": "pdap-nav-link-current-exact",
|
@@ -1579,8 +1579,8 @@ const ya = (e) => (gt("data-v-3158c5fc"), e = e(), pt(), e), ma = ["aria-label",
|
|
1579
1579
|
_: 2
|
1580
1580
|
}, 1032, ["to"])) : k("", !0)
|
1581
1581
|
]))), 128))
|
1582
|
-
], 8,
|
1583
|
-
[Fe,
|
1582
|
+
], 8, wr), [
|
1583
|
+
[Fe, a.isMobile && a.isExpanded || !a.isMobile]
|
1584
1584
|
])
|
1585
1585
|
]),
|
1586
1586
|
_: 1
|
@@ -1589,20 +1589,20 @@ const ya = (e) => (gt("data-v-3158c5fc"), e = e(), pt(), e), ma = ["aria-label",
|
|
1589
1589
|
}
|
1590
1590
|
});
|
1591
1591
|
const Te = (e, t) => {
|
1592
|
-
const
|
1593
|
-
for (const [
|
1594
|
-
r
|
1595
|
-
return
|
1596
|
-
},
|
1592
|
+
const a = e.__vccOpts || e;
|
1593
|
+
for (const [r, n] of t)
|
1594
|
+
a[r] = n;
|
1595
|
+
return a;
|
1596
|
+
}, Nr = /* @__PURE__ */ Te($r, [["__scopeId", "data-v-3158c5fc"]]), Dr = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI0LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MDkuNCAxMTEuNyIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTA5LjQgMTExLjc7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHBhdGggZD0iTTAsMTAwLjhMMjYuOCwzLjJoOS4zTDkuNCwxMDAuOEgweiIvPgo8cGF0aCBkPSJNMTIzLjIsMjdoLTQuN3YxNi42aC05LjFWMS45aDEzLjhjOS4zLDAsMTUuMiw0LjUsMTUuMiwxMi4zUzEzMi43L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xLDMuMiwyLjcsMy4yaDIuMnY3LjRoLTUuNlYxMDAuOHoKCSIvPgo8cG9seWdvbiBwb2ludHM9IjkxLjcsMjAuMiA3Ni4yLDIwLjIgODguNCw4IDgzLjEsMi43IDcxLjUsMTQuMyA3MS41LDAgNjQsMCA2NCwxNC4zIDUyLjMsMi43IDQ3LDggNTkuMiwyMC4yIDQzLjcsMjAuMiA0My43LDI3LjggCgk1OC4xLDI3LjggNDcsMzguOCA1Mi4zLDQ0LjEgNjQsMzIuNSA2NCw0OCA3MS41LDQ4IDcxLjUsMzIuNSA4My4xLDQ0LjEgODguNCwzOC44IDc3LjQsMjcuOCA5MS43LDI3LjggIi8+Cjwvc3ZnPgo=", Tr = ["href"], Cr = ["src"], xr = ["src"], Ir = {
|
1597
1597
|
name: "PdapHeader"
|
1598
1598
|
}, nn = /* @__PURE__ */ C({
|
1599
|
-
...
|
1599
|
+
...Ir,
|
1600
1600
|
props: {
|
1601
|
-
logoImageSrc: { default:
|
1601
|
+
logoImageSrc: { default: Dr },
|
1602
1602
|
logoImageAnchorPath: { default: "/" }
|
1603
1603
|
},
|
1604
1604
|
setup(e) {
|
1605
|
-
const t = e,
|
1605
|
+
const t = e, a = N(null), r = t.logoImageAnchorPath.startsWith("/");
|
1606
1606
|
We(() => {
|
1607
1607
|
n(), window.addEventListener("resize", n);
|
1608
1608
|
}), he(() => {
|
@@ -1610,17 +1610,17 @@ const Te = (e, t) => {
|
|
1610
1610
|
});
|
1611
1611
|
function n() {
|
1612
1612
|
var s;
|
1613
|
-
|
1613
|
+
a.value && ((s = document.querySelector(":root")) == null || s.style.setProperty(
|
1614
1614
|
"--header-height",
|
1615
|
-
`${
|
1615
|
+
`${a.value.clientHeight}px`
|
1616
1616
|
));
|
1617
1617
|
}
|
1618
1618
|
return (s, i) => (j(), h("header", {
|
1619
1619
|
ref_key: "el",
|
1620
|
-
ref:
|
1620
|
+
ref: a,
|
1621
1621
|
class: "pdap-header"
|
1622
1622
|
}, [
|
1623
|
-
L(
|
1623
|
+
L(r) ? (j(), x(L(oe), {
|
1624
1624
|
key: 1,
|
1625
1625
|
to: s.logoImageAnchorPath,
|
1626
1626
|
class: "logo"
|
@@ -1631,7 +1631,7 @@ const Te = (e, t) => {
|
|
1631
1631
|
loading: "lazy",
|
1632
1632
|
width: "250",
|
1633
1633
|
alt: "Police Data Accessibility Project Logo"
|
1634
|
-
}, null, 8,
|
1634
|
+
}, null, 8, xr)
|
1635
1635
|
]),
|
1636
1636
|
_: 1
|
1637
1637
|
}, 8, ["to"])) : (j(), h("a", {
|
@@ -1644,27 +1644,27 @@ const Te = (e, t) => {
|
|
1644
1644
|
loading: "lazy",
|
1645
1645
|
width: "250",
|
1646
1646
|
alt: "Police Data Accessibility Project Logo"
|
1647
|
-
}, null, 8,
|
1648
|
-
], 8,
|
1649
|
-
|
1647
|
+
}, null, 8, Cr)
|
1648
|
+
], 8, Tr)),
|
1649
|
+
U(Nr)
|
1650
1650
|
], 512));
|
1651
1651
|
}
|
1652
1652
|
});
|
1653
|
-
const
|
1653
|
+
const Sr = /* @__PURE__ */ f("div", { class: "pdap-flex-container" }, [
|
1654
1654
|
/* @__PURE__ */ f("h2", { class: "mt-0" }, "Search our database"),
|
1655
1655
|
/* @__PURE__ */ f("p", { class: "pb-4 md:pb-8" }, [
|
1656
1656
|
/* @__PURE__ */ T(" If you are looking for something specific, we may already be tracking it. "),
|
1657
1657
|
/* @__PURE__ */ f("a", { href: "https://pdap.io/data" }, "Learn more about the data here.")
|
1658
1658
|
])
|
1659
|
-
], -1),
|
1659
|
+
], -1), br = { class: "pdap-quick-search-form h-full max-h-[75-vh] justify-start p-0" }, Er = { class: "max-w-[unset] text-med" }, Or = ["href"], zr = ["href"], _r = {
|
1660
1660
|
name: "QuickSearchForm"
|
1661
1661
|
}, sn = /* @__PURE__ */ C({
|
1662
|
-
...
|
1662
|
+
..._r,
|
1663
1663
|
props: {
|
1664
1664
|
baseUrlForRedirect: { default: "https://data-sources.pdap.io" }
|
1665
1665
|
},
|
1666
1666
|
setup(e) {
|
1667
|
-
const t = jt(),
|
1667
|
+
const t = jt(), a = e, r = [
|
1668
1668
|
{
|
1669
1669
|
id: "search-term",
|
1670
1670
|
name: "searchTerm",
|
@@ -1692,23 +1692,23 @@ const ba = /* @__PURE__ */ f("div", { class: "pdap-flex-container" }, [
|
|
1692
1692
|
}
|
1693
1693
|
let { location: l, searchTerm: M } = c;
|
1694
1694
|
l = l && l.length > 0 ? l : "all", M = M && M.length > 0 ? M : "all", s ? t.push(`/search/${M}/${l}`) : window.location.assign(
|
1695
|
-
`${
|
1695
|
+
`${a.baseUrlForRedirect}/search/${M}/${l}`
|
1696
1696
|
);
|
1697
1697
|
}
|
1698
1698
|
return (c, l) => (j(), h(B, null, [
|
1699
|
-
|
1700
|
-
f("div",
|
1701
|
-
|
1699
|
+
Sr,
|
1700
|
+
f("div", br, [
|
1701
|
+
U(pr, {
|
1702
1702
|
id: "quick-search-form",
|
1703
1703
|
class: "flex flex-wrap gap-x-4",
|
1704
1704
|
error: n.value,
|
1705
|
-
schema:
|
1705
|
+
schema: r,
|
1706
1706
|
name: "quickSearchForm",
|
1707
1707
|
onChange: i,
|
1708
1708
|
onSubmit: u
|
1709
1709
|
}, {
|
1710
1710
|
default: D(() => [
|
1711
|
-
|
1711
|
+
U(Ge, {
|
1712
1712
|
type: "submit",
|
1713
1713
|
class: "flex-grow-0 flex-shrink-0 basis-full max-w-[unset] mt-4"
|
1714
1714
|
}, {
|
@@ -1720,9 +1720,9 @@ const ba = /* @__PURE__ */ f("div", { class: "pdap-flex-container" }, [
|
|
1720
1720
|
]),
|
1721
1721
|
_: 1
|
1722
1722
|
}, 8, ["error"]),
|
1723
|
-
f("p",
|
1723
|
+
f("p", Er, [
|
1724
1724
|
T(" For example, you could search for "),
|
1725
|
-
L(s) ? (j(),
|
1725
|
+
L(s) ? (j(), x(L(oe), {
|
1726
1726
|
key: 0,
|
1727
1727
|
to: "/search/stops/pittsburgh"
|
1728
1728
|
}, {
|
@@ -1734,10 +1734,10 @@ const ba = /* @__PURE__ */ f("div", { class: "pdap-flex-container" }, [
|
|
1734
1734
|
key: 1,
|
1735
1735
|
target: "_blank",
|
1736
1736
|
rel: "noreferrer",
|
1737
|
-
href: `${
|
1738
|
-
}, " stops in Pittsburgh ", 8,
|
1737
|
+
href: `${a.baseUrlForRedirect}/search/stops/pittsburgh`
|
1738
|
+
}, " stops in Pittsburgh ", 8, Or)),
|
1739
1739
|
T(" or "),
|
1740
|
-
L(s) ? (j(),
|
1740
|
+
L(s) ? (j(), x(L(oe), {
|
1741
1741
|
key: 2,
|
1742
1742
|
to: "/search/complaints/all"
|
1743
1743
|
}, {
|
@@ -1749,70 +1749,70 @@ const ba = /* @__PURE__ */ f("div", { class: "pdap-flex-container" }, [
|
|
1749
1749
|
key: 3,
|
1750
1750
|
target: "_blank",
|
1751
1751
|
rel: "noreferrer",
|
1752
|
-
href: `${
|
1753
|
-
}, " complaints everywhere ", 8,
|
1752
|
+
href: `${a.baseUrlForRedirect}/search/complaints/all`
|
1753
|
+
}, " complaints everywhere ", 8, zr)),
|
1754
1754
|
T(" . ")
|
1755
1755
|
])
|
1756
1756
|
])
|
1757
1757
|
], 64));
|
1758
1758
|
}
|
1759
1759
|
});
|
1760
|
-
const
|
1760
|
+
const Ar = ["alt", "src"], kr = {
|
1761
1761
|
name: "TileIcon"
|
1762
1762
|
}, on = /* @__PURE__ */ C({
|
1763
|
-
...
|
1763
|
+
...kr,
|
1764
1764
|
props: {
|
1765
1765
|
imgAltText: {},
|
1766
1766
|
imgSrc: {}
|
1767
1767
|
},
|
1768
1768
|
setup(e) {
|
1769
|
-
return (t,
|
1769
|
+
return (t, a) => (j(), h("img", {
|
1770
1770
|
class: "pdap-tile-icon",
|
1771
1771
|
alt: t.imgAltText,
|
1772
1772
|
src: t.imgSrc
|
1773
|
-
}, null, 8,
|
1773
|
+
}, null, 8, Ar));
|
1774
1774
|
}
|
1775
1775
|
});
|
1776
|
-
var
|
1777
|
-
const
|
1776
|
+
var ae = /* @__PURE__ */ ((e) => (e.PRESS = "press", e.HOVER = "hover", e))(ae || {});
|
1777
|
+
const Pr = {
|
1778
1778
|
beforeMount(e, t) {
|
1779
|
-
const
|
1780
|
-
|
1781
|
-
e === n.target ||
|
1782
|
-
}, document.addEventListener("click",
|
1779
|
+
const a = e;
|
1780
|
+
a.clickOutsideEvent = function(n) {
|
1781
|
+
e === n.target || a.contains(n.target) || t.value(n);
|
1782
|
+
}, document.addEventListener("click", a.clickOutsideEvent), document.addEventListener("keyup", a.clickOutsideEvent);
|
1783
1783
|
},
|
1784
1784
|
unmounted(e) {
|
1785
1785
|
e.clickOutsideEvent && (document.removeEventListener("click", e.clickOutsideEvent), document.removeEventListener("keyup", e.clickOutsideEvent));
|
1786
1786
|
}
|
1787
|
-
},
|
1787
|
+
}, Yr = ["onKeydown"], Qr = ["id", "aria-hidden"], Rr = {
|
1788
1788
|
name: "PdapButton"
|
1789
1789
|
}, un = /* @__PURE__ */ C({
|
1790
|
-
...
|
1790
|
+
...Rr,
|
1791
1791
|
props: {
|
1792
1792
|
defaultOpen: { type: Boolean, default: !1 },
|
1793
1793
|
disabled: { type: Boolean, default: !1 },
|
1794
1794
|
dropdownId: {},
|
1795
|
-
triggerOn: { default:
|
1795
|
+
triggerOn: { default: ae.PRESS }
|
1796
1796
|
},
|
1797
1797
|
emits: ["update:open", "press"],
|
1798
1798
|
setup(e, { emit: t }) {
|
1799
|
-
const
|
1800
|
-
() =>
|
1799
|
+
const a = e, r = t, n = N(null), s = N(null), i = N(a.defaultOpen), u = v(
|
1800
|
+
() => a.triggerOn === ae.HOVER
|
1801
1801
|
);
|
1802
1802
|
function c(o) {
|
1803
|
-
|
1803
|
+
r("press", o), a.triggerOn === ae.PRESS && l();
|
1804
1804
|
}
|
1805
1805
|
const l = () => {
|
1806
|
-
|
1806
|
+
a.disabled || (i.value = !i.value, r("update:open", i.value));
|
1807
1807
|
};
|
1808
1808
|
function M() {
|
1809
|
-
i.value = !0,
|
1809
|
+
i.value = !0, r("update:open", !0);
|
1810
1810
|
}
|
1811
1811
|
function y() {
|
1812
|
-
i.value = !1,
|
1812
|
+
i.value = !1, r("update:open", !1);
|
1813
1813
|
}
|
1814
1814
|
function m() {
|
1815
|
-
var w,
|
1815
|
+
var w, S;
|
1816
1816
|
if (!n.value)
|
1817
1817
|
return;
|
1818
1818
|
n.value.style.display = "flex", n.value.style.setProperty("max-height", "max-content");
|
@@ -1821,7 +1821,7 @@ const Pa = {
|
|
1821
1821
|
const d = document == null ? void 0 : document.querySelector(":root"), g = (w = d == null ? void 0 : d.style) == null ? void 0 : w.getPropertyValue(
|
1822
1822
|
"--dropdown-content-max-height"
|
1823
1823
|
);
|
1824
|
-
Number((
|
1824
|
+
Number((S = g == null ? void 0 : g.match(/\d+/)) == null ? void 0 : S.join("")) >= o || n.value && d && d.style.setProperty("--dropdown-content-max-height", `${o + 16}px`);
|
1825
1825
|
}
|
1826
1826
|
const p = {
|
1827
1827
|
mouseenter: u.value ? M : void 0,
|
@@ -1840,7 +1840,7 @@ const Pa = {
|
|
1840
1840
|
role: "presentation",
|
1841
1841
|
onKeydown: je(y, ["escape"])
|
1842
1842
|
}, yt(p, !0)), [
|
1843
|
-
|
1843
|
+
U(L(Ge), {
|
1844
1844
|
"aria-controls": o.dropdownId,
|
1845
1845
|
"aria-expanded": i.value,
|
1846
1846
|
disabled: o.disabled,
|
@@ -1860,7 +1860,7 @@ const Pa = {
|
|
1860
1860
|
]),
|
1861
1861
|
_: 3
|
1862
1862
|
}, 8, ["aria-controls", "aria-expanded", "disabled", "class", "onClick", "onKeydown"]),
|
1863
|
-
|
1863
|
+
U(se, {
|
1864
1864
|
name: "dropdown",
|
1865
1865
|
appear: ""
|
1866
1866
|
}, {
|
@@ -1875,21 +1875,21 @@ const Pa = {
|
|
1875
1875
|
role: "menu"
|
1876
1876
|
}, [
|
1877
1877
|
H(o.$slots, "content")
|
1878
|
-
], 8,
|
1878
|
+
], 8, Qr), [
|
1879
1879
|
[Fe, i.value]
|
1880
1880
|
])
|
1881
1881
|
]),
|
1882
1882
|
_: 3
|
1883
1883
|
})
|
1884
|
-
], 16,
|
1885
|
-
[L(
|
1884
|
+
], 16, Yr)), [
|
1885
|
+
[L(Pr), y]
|
1886
1886
|
]);
|
1887
1887
|
}
|
1888
1888
|
});
|
1889
|
-
function
|
1889
|
+
function Ur(e) {
|
1890
1890
|
const t = [];
|
1891
|
-
for (const
|
1892
|
-
const { name:
|
1891
|
+
for (const a of e.matched) {
|
1892
|
+
const { name: r, path: n, meta: s } = a, i = s.breadcrumbText ?? r;
|
1893
1893
|
i && t.push({
|
1894
1894
|
text: i,
|
1895
1895
|
path: n,
|
@@ -1898,25 +1898,25 @@ function Ua(e) {
|
|
1898
1898
|
}
|
1899
1899
|
return t.length > 0 && (t[t.length - 1].active = !0), t;
|
1900
1900
|
}
|
1901
|
-
const
|
1901
|
+
const Vr = { "aria-label": "Breadcrumb" }, Br = { key: 1 }, Fr = {
|
1902
1902
|
name: "PdapBreadcrumbs"
|
1903
|
-
},
|
1904
|
-
...
|
1903
|
+
}, Wr = /* @__PURE__ */ C({
|
1904
|
+
...Fr,
|
1905
1905
|
setup(e) {
|
1906
|
-
const t = ft(),
|
1907
|
-
return (
|
1906
|
+
const t = ft(), a = v(() => Ur(t));
|
1907
|
+
return (r, n) => {
|
1908
1908
|
const s = Ve("router-link");
|
1909
|
-
return j(), h("nav",
|
1910
|
-
|
1909
|
+
return j(), h("nav", Vr, [
|
1910
|
+
U(mt, {
|
1911
1911
|
class: "pdap-breadcrumbs",
|
1912
1912
|
tag: "ul"
|
1913
1913
|
}, {
|
1914
1914
|
default: D(() => [
|
1915
|
-
(j(!0), h(B, null, ce(
|
1915
|
+
(j(!0), h(B, null, ce(a.value, (i) => (j(), h("li", {
|
1916
1916
|
key: i.text,
|
1917
1917
|
class: le({ "is-active": i.active })
|
1918
1918
|
}, [
|
1919
|
-
i.active ? (j(), h("span",
|
1919
|
+
i.active ? (j(), h("span", Br, E(i.text), 1)) : (j(), x(s, {
|
1920
1920
|
key: 0,
|
1921
1921
|
to: i.path
|
1922
1922
|
}, {
|
@@ -1933,7 +1933,10 @@ const Va = { "aria-label": "Breadcrumb" }, Ba = { key: 1 }, Fa = {
|
|
1933
1933
|
};
|
1934
1934
|
}
|
1935
1935
|
});
|
1936
|
-
const ln = /* @__PURE__ */ Te(
|
1936
|
+
const ln = /* @__PURE__ */ Te(Wr, [["__scopeId", "data-v-e8d76c0f"]]), Gr = {
|
1937
|
+
key: 0,
|
1938
|
+
class: "pdap-spinner"
|
1939
|
+
}, Zr = ["width", "height"], Hr = ["stroke", "fill"], Jr = ["stroke", "fill"], Xr = {
|
1937
1940
|
key: 0,
|
1938
1941
|
"aria-live": "polite"
|
1939
1942
|
};
|
@@ -1943,10 +1946,10 @@ const ln = /* @__PURE__ */ Te(Wa, [["__scopeId", "data-v-e8d76c0f"]]), Ga = { cl
|
|
1943
1946
|
*
|
1944
1947
|
* @preserve
|
1945
1948
|
*/
|
1946
|
-
const
|
1949
|
+
const Kr = {
|
1947
1950
|
name: "PdapSpinner"
|
1948
|
-
},
|
1949
|
-
...
|
1951
|
+
}, qr = /* @__PURE__ */ C({
|
1952
|
+
...Kr,
|
1950
1953
|
props: {
|
1951
1954
|
color: { default: "currentColor" },
|
1952
1955
|
size: { default: 24 },
|
@@ -1954,11 +1957,10 @@ const Ka = {
|
|
1954
1957
|
show: { type: Boolean, default: !1 }
|
1955
1958
|
},
|
1956
1959
|
setup(e) {
|
1957
|
-
return (t,
|
1958
|
-
|
1959
|
-
|
1960
|
-
|
1961
|
-
key: 0,
|
1960
|
+
return (t, a) => (j(), x(se, { appear: "" }, {
|
1961
|
+
default: D(() => [
|
1962
|
+
t.show ? (j(), h("div", Gr, [
|
1963
|
+
(j(), h("svg", {
|
1962
1964
|
"aria-label": "loading",
|
1963
1965
|
width: t.size,
|
1964
1966
|
height: t.size,
|
@@ -1970,31 +1972,31 @@ const Ka = {
|
|
1970
1972
|
opacity: ".25",
|
1971
1973
|
stroke: t.color,
|
1972
1974
|
fill: t.color
|
1973
|
-
}, null, 8,
|
1975
|
+
}, null, 8, Hr),
|
1974
1976
|
f("path", {
|
1975
1977
|
d: "M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z",
|
1976
1978
|
class: "pdap-spinner-innards",
|
1977
1979
|
stroke: t.color,
|
1978
1980
|
fill: t.color
|
1979
|
-
}, null, 8,
|
1980
|
-
], 8,
|
1981
|
-
|
1982
|
-
|
1983
|
-
|
1984
|
-
|
1985
|
-
|
1986
|
-
|
1987
|
-
|
1988
|
-
|
1989
|
-
|
1990
|
-
|
1991
|
-
]),
|
1992
|
-
|
1993
|
-
|
1994
|
-
|
1981
|
+
}, null, 8, Jr)
|
1982
|
+
], 8, Zr)),
|
1983
|
+
(j(), x(se, {
|
1984
|
+
key: t.text,
|
1985
|
+
appear: "",
|
1986
|
+
mode: "out-in"
|
1987
|
+
}, {
|
1988
|
+
default: D(() => [
|
1989
|
+
t.text && t.show ? (j(), h("p", Xr, E(t.text), 1)) : k("", !0)
|
1990
|
+
]),
|
1991
|
+
_: 1
|
1992
|
+
}))
|
1993
|
+
])) : k("", !0)
|
1994
|
+
]),
|
1995
|
+
_: 1
|
1996
|
+
}));
|
1995
1997
|
}
|
1996
1998
|
});
|
1997
|
-
const cn = /* @__PURE__ */ Te(
|
1999
|
+
const cn = /* @__PURE__ */ Te(qr, [["__scopeId", "data-v-16618cf4"]]);
|
1998
2000
|
const dn = {
|
1999
2001
|
content: ["./src/**/*.vue", "./src/**/*.css"],
|
2000
2002
|
theme: {
|
@@ -2088,6 +2090,7 @@ const dn = {
|
|
2088
2090
|
// Using properties directly - overrides tailwind theme defaults for entire section
|
2089
2091
|
fontFamily: {
|
2090
2092
|
sans: [
|
2093
|
+
'"Public Sans"',
|
2091
2094
|
'"Libre Franklin"',
|
2092
2095
|
"ui-sans-serif",
|
2093
2096
|
"system-ui",
|
@@ -2165,18 +2168,18 @@ export {
|
|
2165
2168
|
ln as Breadcrumbs,
|
2166
2169
|
Ge as Button,
|
2167
2170
|
un as Dropdown,
|
2168
|
-
|
2169
|
-
|
2170
|
-
|
2171
|
+
an as ErrorBoundary,
|
2172
|
+
rn as Footer,
|
2173
|
+
pr as Form,
|
2171
2174
|
nn as Header,
|
2172
|
-
|
2173
|
-
|
2174
|
-
|
2175
|
+
ra as Input,
|
2176
|
+
Nr as Nav,
|
2177
|
+
ae as PdapDropdownTriggerType,
|
2175
2178
|
O as PdapInputTypes,
|
2176
2179
|
sn as QuickSearchForm,
|
2177
2180
|
cn as Spinner,
|
2178
2181
|
on as TileIcon,
|
2179
2182
|
Ln as stylelintConfig,
|
2180
2183
|
dn as tailwindConfig,
|
2181
|
-
|
2184
|
+
Pr as vOnClickOutside
|
2182
2185
|
};
|