pdap-design-system 2.7.0-beta.1 → 2.7.0-beta.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Breadcrumbs/PdapBreadcrumbs.vue.d.ts +2 -0
- package/dist/components/Breadcrumbs/index.d.ts +2 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +583 -530
- package/dist/styles.css +1 -1
- package/dist/utils/breadcrumbs.d.ts +7 -0
- package/dist/utils/breadcrumbs.test.d.ts +1 -0
- package/docs/components.md +111 -88
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { RouterLink as
|
3
|
-
const
|
1
|
+
import { defineComponent as v, reactive as z, openBlock as y, createElementBlock as $, normalizeClass as U, renderSlot as q, createBlock as x, resolveDynamicComponent as pe, withCtx as T, inject as re, resolveComponent as ke, createElementVNode as w, Fragment as G, renderList as ie, unref as L, toDisplayString as E, createCommentVNode as B, createTextVNode as C, getCurrentInstance as tt, ref as D, onBeforeMount as Qe, watch as H, isRef as ge, onBeforeUnmount as me, computed as h, isReactive as rt, isReadonly as at, provide as De, nextTick as ae, mergeProps as J, normalizeProps as nt, watchEffect as ve, withModifiers as st, normalizeStyle as ye, onMounted as ut, createVNode as ne, TransitionGroup as ot } from "vue";
|
2
|
+
import { RouterLink as se, useRouter as it, useRoute as lt } from "vue-router";
|
3
|
+
const ct = /* @__PURE__ */ v({
|
4
4
|
__name: "PdapButton",
|
5
5
|
props: {
|
6
6
|
intent: { default: "primary" },
|
@@ -12,17 +12,17 @@ const it = /* @__PURE__ */ C({
|
|
12
12
|
[`pdap-button-${t.intent}`]: !!t.intent,
|
13
13
|
"pdap-button-loading": t.isLoading
|
14
14
|
});
|
15
|
-
return (a, n) => (y(),
|
16
|
-
class:
|
15
|
+
return (a, n) => (y(), $("button", {
|
16
|
+
class: U(r)
|
17
17
|
}, [
|
18
18
|
q(a.$slots, "default")
|
19
19
|
], 2));
|
20
20
|
}
|
21
21
|
});
|
22
|
-
const
|
22
|
+
const Lt = {
|
23
23
|
name: "FlexContainer"
|
24
|
-
},
|
25
|
-
...
|
24
|
+
}, Ca = /* @__PURE__ */ v({
|
25
|
+
...Lt,
|
26
26
|
props: {
|
27
27
|
alignment: { default: "start" },
|
28
28
|
component: { default: "div" }
|
@@ -32,37 +32,37 @@ const lt = {
|
|
32
32
|
"pdap-flex-container": !0,
|
33
33
|
[`pdap-flex-container-${e.alignment}`]: !0
|
34
34
|
});
|
35
|
-
return (a, n) => (y(),
|
36
|
-
class:
|
35
|
+
return (a, n) => (y(), x(pe(a.component), {
|
36
|
+
class: U(r)
|
37
37
|
}, {
|
38
|
-
default:
|
38
|
+
default: T(() => [
|
39
39
|
q(a.$slots, "default")
|
40
40
|
]),
|
41
41
|
_: 3
|
42
42
|
}, 8, ["class"]));
|
43
43
|
}
|
44
|
-
}),
|
45
|
-
/* @__PURE__ */
|
46
|
-
/* @__PURE__ */
|
44
|
+
}), Mt = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI0LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMTMuOCA4Ni4xIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxMTMuOCA4Ni4xOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxwYXRoIGQ9Ik0wLDgwLjlMMjEuNSwyLjZo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OS44LDcxLjEsMTA0LjcsNzEuMXogTTEwNC43LDYxLjVoLTIuNnY1LjNoMi42CgljMi4zLDAsMy4zLTAuOSwzLjMtMi43UzEwNi45LDYxLjUsMTA0LjcsNjEuNXoiLz4KPC9zdmc+Cg==", dt = { class: "pdap-footer" }, gt = { class: "pdap-flex-container-center" }, jt = { class: "pdap-footer-social-links" }, pt = ["href"], mt = { class: "pdap-footer-copyright" }, yt = /* @__PURE__ */ w("br", null, null, -1), ft = /* @__PURE__ */ w("p", { class: "pdap-footer-copyright" }, [
|
45
|
+
/* @__PURE__ */ C(" PDAP is a non-profit. EIN: 85-4207132. "),
|
46
|
+
/* @__PURE__ */ w("a", {
|
47
47
|
href: "https://docs.pdap.io/meta/policy/pdap-privacy-policy",
|
48
48
|
alt: "Privacy Policy",
|
49
49
|
target: "_blank"
|
50
50
|
}, [
|
51
|
-
/* @__PURE__ */
|
52
|
-
/* @__PURE__ */
|
53
|
-
/* @__PURE__ */
|
51
|
+
/* @__PURE__ */ w("br"),
|
52
|
+
/* @__PURE__ */ C(" Privacy Policy "),
|
53
|
+
/* @__PURE__ */ w("i", { class: "fa fa-external-link" })
|
54
54
|
]),
|
55
|
-
/* @__PURE__ */
|
56
|
-
/* @__PURE__ */
|
57
|
-
], -1),
|
55
|
+
/* @__PURE__ */ w("br"),
|
56
|
+
/* @__PURE__ */ w("a", { href: "mailto:contact@pdap.io" }, "contact@pdap.io")
|
57
|
+
], -1), wt = { class: "pdap-footer-widget-links" }, ht = /* @__PURE__ */ w("a", {
|
58
58
|
href: "https://www.guidestar.org/profile/85-4207132",
|
59
59
|
target: "_blank"
|
60
60
|
}, [
|
61
|
-
/* @__PURE__ */
|
62
|
-
], -1),
|
61
|
+
/* @__PURE__ */ w("img", { src: "https://widgets.guidestar.org/gximage2?o=9973356&l=v4" })
|
62
|
+
], -1), $t = ["href"], Nt = ["src"], Dt = ["src"], Ta = /* @__PURE__ */ v({
|
63
63
|
__name: "PdapFooter",
|
64
64
|
props: {
|
65
|
-
logoImageSrc: { default:
|
65
|
+
logoImageSrc: { default: Mt },
|
66
66
|
logoImageAnchorPath: { default: "/" }
|
67
67
|
},
|
68
68
|
setup(e) {
|
@@ -85,75 +85,75 @@ const lt = {
|
|
85
85
|
}
|
86
86
|
]), a = t.logoImageAnchorPath.startsWith("/");
|
87
87
|
return (n, s) => {
|
88
|
-
const
|
89
|
-
return y(),
|
90
|
-
|
91
|
-
|
92
|
-
(y(!0),
|
93
|
-
key:
|
88
|
+
const o = ke("router-link");
|
89
|
+
return y(), $("footer", dt, [
|
90
|
+
w("div", gt, [
|
91
|
+
w("ul", jt, [
|
92
|
+
(y(!0), $(G, null, ie(L(r), (i) => (y(), $("li", {
|
93
|
+
key: i.text,
|
94
94
|
class: "pdap-footer-link-container"
|
95
95
|
}, [
|
96
|
-
|
96
|
+
i.href ? (y(), $("a", {
|
97
97
|
key: 0,
|
98
98
|
class: "pdap-footer-social-link",
|
99
|
-
href:
|
99
|
+
href: i.href,
|
100
100
|
target: "_blank",
|
101
101
|
referrerpolicy: "no-referrer"
|
102
|
-
},
|
103
|
-
|
102
|
+
}, E(i.text), 9, pt)) : B("", !0),
|
103
|
+
i.path ? (y(), x(o, {
|
104
104
|
key: 1,
|
105
105
|
"active-class": "pdap-footer-social-link-current",
|
106
106
|
"exact-active-class": "pdap-footer-social-link-current-exact",
|
107
107
|
class: "pdap-footer-social-link",
|
108
|
-
to:
|
108
|
+
to: i.path
|
109
109
|
}, {
|
110
|
-
default:
|
111
|
-
|
110
|
+
default: T(() => [
|
111
|
+
C(E(i.text), 1)
|
112
112
|
]),
|
113
113
|
_: 2
|
114
|
-
}, 1032, ["to"])) :
|
114
|
+
}, 1032, ["to"])) : B("", !0)
|
115
115
|
]))), 128))
|
116
116
|
]),
|
117
|
-
|
118
|
-
|
119
|
-
|
117
|
+
w("p", mt, [
|
118
|
+
C(" © " + E((/* @__PURE__ */ new Date()).getFullYear()) + " Police Data Accessibility Project", 1),
|
119
|
+
yt
|
120
120
|
]),
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
L(a) ? (y(),
|
121
|
+
ft,
|
122
|
+
w("div", wt, [
|
123
|
+
ht,
|
124
|
+
L(a) ? (y(), x(o, {
|
125
125
|
key: 1,
|
126
126
|
to: n.logoImageAnchorPath,
|
127
127
|
class: "pdap-footer-logo"
|
128
128
|
}, {
|
129
|
-
default:
|
130
|
-
|
129
|
+
default: T(() => [
|
130
|
+
w("img", {
|
131
131
|
src: n.logoImageSrc,
|
132
132
|
loading: "lazy",
|
133
133
|
width: "250",
|
134
134
|
alt: "Police Data Accessibility Project Logo"
|
135
|
-
}, null, 8,
|
135
|
+
}, null, 8, Dt)
|
136
136
|
]),
|
137
137
|
_: 1
|
138
|
-
}, 8, ["to"])) : (y(),
|
138
|
+
}, 8, ["to"])) : (y(), $("a", {
|
139
139
|
key: 0,
|
140
140
|
href: n.logoImageAnchorPath,
|
141
141
|
class: "pdap-footer-logo"
|
142
142
|
}, [
|
143
|
-
|
143
|
+
w("img", {
|
144
144
|
src: n.logoImageSrc,
|
145
145
|
loading: "lazy",
|
146
146
|
width: "250",
|
147
147
|
alt: "Police Data Accessibility Project Logo"
|
148
|
-
}, null, 8,
|
149
|
-
], 8,
|
148
|
+
}, null, 8, Nt)
|
149
|
+
], 8, $t))
|
150
150
|
])
|
151
151
|
])
|
152
152
|
]);
|
153
153
|
};
|
154
154
|
}
|
155
155
|
});
|
156
|
-
function
|
156
|
+
function Ce(e, t) {
|
157
157
|
var r = Object.keys(e);
|
158
158
|
if (Object.getOwnPropertySymbols) {
|
159
159
|
var a = Object.getOwnPropertySymbols(e);
|
@@ -163,18 +163,18 @@ function Te(e, t) {
|
|
163
163
|
}
|
164
164
|
return r;
|
165
165
|
}
|
166
|
-
function
|
166
|
+
function Y(e) {
|
167
167
|
for (var t = 1; t < arguments.length; t++) {
|
168
168
|
var r = arguments[t] != null ? arguments[t] : {};
|
169
|
-
t % 2 ?
|
170
|
-
|
171
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
169
|
+
t % 2 ? Ce(Object(r), !0).forEach(function(a) {
|
170
|
+
vt(e, a, r[a]);
|
171
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ce(Object(r)).forEach(function(a) {
|
172
172
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(r, a));
|
173
173
|
});
|
174
174
|
}
|
175
175
|
return e;
|
176
176
|
}
|
177
|
-
function
|
177
|
+
function vt(e, t, r) {
|
178
178
|
return t in e ? Object.defineProperty(e, t, {
|
179
179
|
value: r,
|
180
180
|
enumerable: !0,
|
@@ -182,17 +182,17 @@ function $t(e, t, r) {
|
|
182
182
|
writable: !0
|
183
183
|
}) : e[t] = r, e;
|
184
184
|
}
|
185
|
-
function
|
185
|
+
function Te(e) {
|
186
186
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
187
187
|
return Object.keys(e).reduce((r, a) => (t.includes(a) || (r[a] = L(e[a])), r), {});
|
188
188
|
}
|
189
|
-
function
|
189
|
+
function ue(e) {
|
190
190
|
return typeof e == "function";
|
191
191
|
}
|
192
|
-
function
|
192
|
+
function Ct(e) {
|
193
193
|
return rt(e) || at(e);
|
194
194
|
}
|
195
|
-
function
|
195
|
+
function Re(e, t, r) {
|
196
196
|
let a = e;
|
197
197
|
const n = t.split(".");
|
198
198
|
for (let s = 0; s < n.length; s++) {
|
@@ -202,45 +202,45 @@ function Qe(e, t, r) {
|
|
202
202
|
}
|
203
203
|
return a;
|
204
204
|
}
|
205
|
-
function
|
206
|
-
return h(() => e.some((a) =>
|
205
|
+
function de(e, t, r) {
|
206
|
+
return h(() => e.some((a) => Re(t, a, {
|
207
207
|
[r]: !1
|
208
208
|
})[r]));
|
209
209
|
}
|
210
210
|
function xe(e, t, r) {
|
211
211
|
return h(() => e.reduce((a, n) => {
|
212
|
-
const s =
|
212
|
+
const s = Re(t, n, {
|
213
213
|
[r]: !1
|
214
214
|
})[r] || [];
|
215
215
|
return a.concat(s);
|
216
216
|
}, []));
|
217
217
|
}
|
218
|
-
function
|
218
|
+
function Ue(e, t, r, a) {
|
219
219
|
return e.call(a, L(t), L(r), a);
|
220
220
|
}
|
221
|
-
function
|
221
|
+
function Ve(e) {
|
222
222
|
return e.$valid !== void 0 ? !e.$valid : !e;
|
223
223
|
}
|
224
|
-
function
|
224
|
+
function Tt(e, t, r, a, n, s, o) {
|
225
225
|
let {
|
226
|
-
$lazy:
|
226
|
+
$lazy: i,
|
227
227
|
$rewardEarly: l
|
228
228
|
} = n, c = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : [], d = arguments.length > 8 ? arguments[8] : void 0, p = arguments.length > 9 ? arguments[9] : void 0, m = arguments.length > 10 ? arguments[10] : void 0;
|
229
229
|
const g = D(!!a.value), u = D(0);
|
230
230
|
r.value = !1;
|
231
231
|
const M = H([t, a].concat(c, m), () => {
|
232
|
-
if (
|
232
|
+
if (i && !a.value || l && !p.value && !r.value)
|
233
233
|
return;
|
234
234
|
let j;
|
235
235
|
try {
|
236
|
-
j =
|
237
|
-
} catch (
|
238
|
-
j = Promise.reject(
|
236
|
+
j = Ue(e, t, d, o);
|
237
|
+
} catch (f) {
|
238
|
+
j = Promise.reject(f);
|
239
239
|
}
|
240
|
-
u.value++, r.value = !!u.value, g.value = !1, Promise.resolve(j).then((
|
241
|
-
u.value--, r.value = !!u.value, s.value =
|
242
|
-
}).catch((
|
243
|
-
u.value--, r.value = !!u.value, s.value =
|
240
|
+
u.value++, r.value = !!u.value, g.value = !1, Promise.resolve(j).then((f) => {
|
241
|
+
u.value--, r.value = !!u.value, s.value = f, g.value = Ve(f);
|
242
|
+
}).catch((f) => {
|
243
|
+
u.value--, r.value = !!u.value, s.value = f, g.value = !0;
|
244
244
|
});
|
245
245
|
}, {
|
246
246
|
immediate: !0,
|
@@ -251,18 +251,18 @@ function Ct(e, t, r, a, n, s, i) {
|
|
251
251
|
$unwatch: M
|
252
252
|
};
|
253
253
|
}
|
254
|
-
function
|
254
|
+
function xt(e, t, r, a, n, s, o, i) {
|
255
255
|
let {
|
256
256
|
$lazy: l,
|
257
257
|
$rewardEarly: c
|
258
258
|
} = a;
|
259
259
|
const d = () => ({}), p = h(() => {
|
260
|
-
if (l && !r.value || c && !
|
260
|
+
if (l && !r.value || c && !i.value)
|
261
261
|
return !1;
|
262
262
|
let m = !0;
|
263
263
|
try {
|
264
|
-
const g =
|
265
|
-
n.value = g, m =
|
264
|
+
const g = Ue(e, t, o, s);
|
265
|
+
n.value = g, m = Ve(g);
|
266
266
|
} catch (g) {
|
267
267
|
n.value = g;
|
268
268
|
}
|
@@ -273,27 +273,27 @@ function Tt(e, t, r, a, n, s, i, o) {
|
|
273
273
|
$invalid: p
|
274
274
|
};
|
275
275
|
}
|
276
|
-
function
|
276
|
+
function It(e, t, r, a, n, s, o, i, l, c, d) {
|
277
277
|
const p = D(!1), m = e.$params || {}, g = D(null);
|
278
278
|
let u, M;
|
279
279
|
e.$async ? {
|
280
280
|
$invalid: u,
|
281
281
|
$unwatch: M
|
282
|
-
} =
|
282
|
+
} = Tt(e.$validator, t, p, r, a, g, n, e.$watchTargets, l, c, d) : {
|
283
283
|
$invalid: u,
|
284
284
|
$unwatch: M
|
285
|
-
} =
|
285
|
+
} = xt(e.$validator, t, r, a, g, n, l, c);
|
286
286
|
const j = e.$message;
|
287
287
|
return {
|
288
|
-
$message:
|
288
|
+
$message: ue(j) ? h(() => j(Te({
|
289
289
|
$pending: p,
|
290
290
|
$invalid: u,
|
291
|
-
$params:
|
291
|
+
$params: Te(m),
|
292
292
|
$model: t,
|
293
293
|
$response: g,
|
294
294
|
$validator: s,
|
295
|
-
$propertyPath:
|
296
|
-
$property:
|
295
|
+
$propertyPath: i,
|
296
|
+
$property: o
|
297
297
|
}))) : j || "",
|
298
298
|
$params: m,
|
299
299
|
$pending: p,
|
@@ -302,39 +302,39 @@ function vt(e, t, r, a, n, s, i, o, l, c, d) {
|
|
302
302
|
$unwatch: M
|
303
303
|
};
|
304
304
|
}
|
305
|
-
function
|
305
|
+
function St() {
|
306
306
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
307
307
|
const t = L(e), r = Object.keys(t), a = {}, n = {}, s = {};
|
308
|
-
let
|
309
|
-
return r.forEach((
|
310
|
-
const l = t[
|
308
|
+
let o = null;
|
309
|
+
return r.forEach((i) => {
|
310
|
+
const l = t[i];
|
311
311
|
switch (!0) {
|
312
|
-
case
|
313
|
-
a[
|
312
|
+
case ue(l.$validator):
|
313
|
+
a[i] = l;
|
314
314
|
break;
|
315
|
-
case
|
316
|
-
a[
|
315
|
+
case ue(l):
|
316
|
+
a[i] = {
|
317
317
|
$validator: l
|
318
318
|
};
|
319
319
|
break;
|
320
|
-
case
|
321
|
-
|
320
|
+
case i === "$validationGroups":
|
321
|
+
o = l;
|
322
322
|
break;
|
323
|
-
case
|
324
|
-
s[
|
323
|
+
case i.startsWith("$"):
|
324
|
+
s[i] = l;
|
325
325
|
break;
|
326
326
|
default:
|
327
|
-
n[
|
327
|
+
n[i] = l;
|
328
328
|
}
|
329
329
|
}), {
|
330
330
|
rules: a,
|
331
331
|
nestedValidators: n,
|
332
332
|
config: s,
|
333
|
-
validationGroups:
|
333
|
+
validationGroups: o
|
334
334
|
};
|
335
335
|
}
|
336
|
-
const
|
337
|
-
function
|
336
|
+
const zt = "__root";
|
337
|
+
function Et(e, t, r, a, n, s, o, i, l) {
|
338
338
|
const c = Object.keys(e), d = a.get(n, e), p = D(!1), m = D(!1), g = D(0);
|
339
339
|
if (d) {
|
340
340
|
if (!d.$partial)
|
@@ -354,8 +354,8 @@ function St(e, t, r, a, n, s, i, o, l) {
|
|
354
354
|
}
|
355
355
|
};
|
356
356
|
return c.length ? (c.forEach((M) => {
|
357
|
-
u[M] =
|
358
|
-
}), u.$externalResults = h(() =>
|
357
|
+
u[M] = It(e[M], t, u.$dirty, s, o, M, r, n, l, m, g);
|
358
|
+
}), u.$externalResults = h(() => i.value ? [].concat(i.value).map((M, j) => ({
|
359
359
|
$propertyPath: n,
|
360
360
|
$property: r,
|
361
361
|
$validator: "$externalResults",
|
@@ -385,9 +385,9 @@ function St(e, t, r, a, n, s, i, o, l) {
|
|
385
385
|
m.value = !0, g.value = Date.now();
|
386
386
|
}, a.set(n, e, u), u) : (d && a.set(n, e, u), u);
|
387
387
|
}
|
388
|
-
function
|
389
|
-
const
|
390
|
-
return
|
388
|
+
function Ot(e, t, r, a, n, s, o) {
|
389
|
+
const i = Object.keys(e);
|
390
|
+
return i.length ? i.reduce((l, c) => (l[c] = je({
|
391
391
|
validations: e[c],
|
392
392
|
state: t,
|
393
393
|
key: c,
|
@@ -395,10 +395,10 @@ function zt(e, t, r, a, n, s, i) {
|
|
395
395
|
resultsCache: a,
|
396
396
|
globalConfig: n,
|
397
397
|
instance: s,
|
398
|
-
externalResults:
|
398
|
+
externalResults: o
|
399
399
|
}), l), {}) : {};
|
400
400
|
}
|
401
|
-
function
|
401
|
+
function bt(e, t, r) {
|
402
402
|
const a = h(() => [t, r].filter((u) => u).reduce((u, M) => u.concat(Object.values(L(M))), [])), n = h({
|
403
403
|
get() {
|
404
404
|
return e.$dirty.value || (a.value.length ? a.value.every((u) => u.$dirty) : !1);
|
@@ -407,12 +407,12 @@ function Et(e, t, r) {
|
|
407
407
|
e.$dirty.value = u;
|
408
408
|
}
|
409
409
|
}), s = h(() => {
|
410
|
-
const u = L(e.$silentErrors) || [], M = a.value.filter((j) => (L(j).$silentErrors || []).length).reduce((j,
|
410
|
+
const u = L(e.$silentErrors) || [], M = a.value.filter((j) => (L(j).$silentErrors || []).length).reduce((j, f) => j.concat(...f.$silentErrors), []);
|
411
411
|
return u.concat(M);
|
412
|
-
}),
|
413
|
-
const u = L(e.$errors) || [], M = a.value.filter((j) => (L(j).$errors || []).length).reduce((j,
|
412
|
+
}), o = h(() => {
|
413
|
+
const u = L(e.$errors) || [], M = a.value.filter((j) => (L(j).$errors || []).length).reduce((j, f) => j.concat(...f.$errors), []);
|
414
414
|
return u.concat(M);
|
415
|
-
}),
|
415
|
+
}), i = h(() => a.value.some((u) => u.$invalid) || L(e.$invalid) || !1), l = h(() => a.value.some((u) => L(u.$pending)) || L(e.$pending) || !1), c = h(() => a.value.some((u) => u.$dirty) || a.value.some((u) => u.$anyDirty) || n.value), d = h(() => n.value ? l.value || i.value : !1), p = () => {
|
416
416
|
e.$touch(), a.value.forEach((u) => {
|
417
417
|
u.$touch();
|
418
418
|
});
|
@@ -427,8 +427,8 @@ function Et(e, t, r) {
|
|
427
427
|
};
|
428
428
|
return a.value.length && a.value.every((u) => u.$dirty) && p(), {
|
429
429
|
$dirty: n,
|
430
|
-
$errors:
|
431
|
-
$invalid:
|
430
|
+
$errors: o,
|
431
|
+
$invalid: i,
|
432
432
|
$anyDirty: c,
|
433
433
|
$error: d,
|
434
434
|
$pending: l,
|
@@ -438,15 +438,15 @@ function Et(e, t, r) {
|
|
438
438
|
$commit: m
|
439
439
|
};
|
440
440
|
}
|
441
|
-
function
|
441
|
+
function je(e) {
|
442
442
|
let {
|
443
443
|
validations: t,
|
444
444
|
state: r,
|
445
445
|
key: a,
|
446
446
|
parentKey: n,
|
447
447
|
childResults: s,
|
448
|
-
resultsCache:
|
449
|
-
globalConfig:
|
448
|
+
resultsCache: o,
|
449
|
+
globalConfig: i = {},
|
450
450
|
instance: l,
|
451
451
|
externalResults: c
|
452
452
|
} = e;
|
@@ -455,87 +455,87 @@ function ge(e) {
|
|
455
455
|
nestedValidators: m,
|
456
456
|
config: g,
|
457
457
|
validationGroups: u
|
458
|
-
} =
|
459
|
-
const
|
460
|
-
return
|
461
|
-
}) : r,
|
462
|
-
const
|
463
|
-
return a ?
|
464
|
-
}),
|
465
|
-
u && Object.entries(u).forEach((
|
466
|
-
let [R,
|
458
|
+
} = St(t), M = Y(Y({}, i), g), j = a ? h(() => {
|
459
|
+
const N = L(r);
|
460
|
+
return N ? L(N[a]) : void 0;
|
461
|
+
}) : r, f = Y({}, L(c) || {}), O = h(() => {
|
462
|
+
const N = L(c);
|
463
|
+
return a ? N ? L(N[a]) : void 0 : N;
|
464
|
+
}), Z = Et(p, j, a, o, d, M, l, O, r), S = Ot(m, j, d, o, M, l, O), Q = {};
|
465
|
+
u && Object.entries(u).forEach((N) => {
|
466
|
+
let [R, A] = N;
|
467
467
|
Q[R] = {
|
468
|
-
$invalid:
|
469
|
-
$error:
|
470
|
-
$pending:
|
471
|
-
$errors: xe(
|
472
|
-
$silentErrors: xe(
|
468
|
+
$invalid: de(A, S, "$invalid"),
|
469
|
+
$error: de(A, S, "$error"),
|
470
|
+
$pending: de(A, S, "$pending"),
|
471
|
+
$errors: xe(A, S, "$errors"),
|
472
|
+
$silentErrors: xe(A, S, "$silentErrors")
|
473
473
|
};
|
474
474
|
});
|
475
475
|
const {
|
476
|
-
$dirty:
|
476
|
+
$dirty: _,
|
477
477
|
$errors: ee,
|
478
|
-
$invalid:
|
478
|
+
$invalid: ce,
|
479
479
|
$anyDirty: We,
|
480
|
-
$error:
|
481
|
-
$pending:
|
482
|
-
$touch:
|
483
|
-
$reset:
|
484
|
-
$silentErrors:
|
485
|
-
$commit:
|
486
|
-
} =
|
480
|
+
$error: Ze,
|
481
|
+
$pending: Le,
|
482
|
+
$touch: Me,
|
483
|
+
$reset: He,
|
484
|
+
$silentErrors: Je,
|
485
|
+
$commit: Ne
|
486
|
+
} = bt(Z, S, s), Xe = a ? h({
|
487
487
|
get: () => L(j),
|
488
|
-
set: (
|
489
|
-
|
490
|
-
const R = L(r),
|
491
|
-
|
488
|
+
set: (N) => {
|
489
|
+
_.value = !0;
|
490
|
+
const R = L(r), A = L(c);
|
491
|
+
A && (A[a] = f[a]), ge(R[a]) ? R[a].value = N : R[a] = N;
|
492
492
|
}
|
493
493
|
}) : null;
|
494
494
|
a && M.$autoDirty && H(j, () => {
|
495
|
-
|
496
|
-
const
|
497
|
-
|
495
|
+
_.value || Me();
|
496
|
+
const N = L(c);
|
497
|
+
N && (N[a] = f[a]);
|
498
498
|
}, {
|
499
499
|
flush: "sync"
|
500
500
|
});
|
501
|
-
async function
|
502
|
-
return
|
503
|
-
if (!
|
504
|
-
return
|
505
|
-
const R = H(
|
506
|
-
|
501
|
+
async function Ke() {
|
502
|
+
return Me(), M.$rewardEarly && (Ne(), await ae()), await ae(), new Promise((N) => {
|
503
|
+
if (!Le.value)
|
504
|
+
return N(!ce.value);
|
505
|
+
const R = H(Le, () => {
|
506
|
+
N(!ce.value), R();
|
507
507
|
});
|
508
508
|
});
|
509
509
|
}
|
510
|
-
function
|
511
|
-
return (s.value || {})[
|
510
|
+
function qe(N) {
|
511
|
+
return (s.value || {})[N];
|
512
512
|
}
|
513
|
-
function
|
514
|
-
|
515
|
-
delete c[
|
516
|
-
}) : Object.assign(c,
|
513
|
+
function et() {
|
514
|
+
ge(c) ? c.value = f : Object.keys(f).length === 0 ? Object.keys(c).forEach((N) => {
|
515
|
+
delete c[N];
|
516
|
+
}) : Object.assign(c, f);
|
517
517
|
}
|
518
|
-
return z(
|
519
|
-
$model:
|
520
|
-
$dirty:
|
521
|
-
$error:
|
518
|
+
return z(Y(Y(Y({}, Z), {}, {
|
519
|
+
$model: Xe,
|
520
|
+
$dirty: _,
|
521
|
+
$error: Ze,
|
522
522
|
$errors: ee,
|
523
|
-
$invalid:
|
523
|
+
$invalid: ce,
|
524
524
|
$anyDirty: We,
|
525
|
-
$pending:
|
526
|
-
$touch:
|
527
|
-
$reset:
|
528
|
-
$path: d ||
|
529
|
-
$silentErrors:
|
530
|
-
$validate:
|
531
|
-
$commit:
|
525
|
+
$pending: Le,
|
526
|
+
$touch: Me,
|
527
|
+
$reset: He,
|
528
|
+
$path: d || zt,
|
529
|
+
$silentErrors: Je,
|
530
|
+
$validate: Ke,
|
531
|
+
$commit: Ne
|
532
532
|
}, s && {
|
533
|
-
$getResultsForChild:
|
534
|
-
$clearExternalResults:
|
533
|
+
$getResultsForChild: qe,
|
534
|
+
$clearExternalResults: et,
|
535
535
|
$validationGroups: Q
|
536
|
-
}),
|
536
|
+
}), S));
|
537
537
|
}
|
538
|
-
class
|
538
|
+
class _t {
|
539
539
|
constructor() {
|
540
540
|
this.storage = /* @__PURE__ */ new Map();
|
541
541
|
}
|
@@ -547,7 +547,7 @@ class Ot {
|
|
547
547
|
}
|
548
548
|
checkRulesValidity(t, r, a) {
|
549
549
|
const n = Object.keys(a), s = Object.keys(r);
|
550
|
-
return s.length !== n.length || !s.every((
|
550
|
+
return s.length !== n.length || !s.every((i) => n.includes(i)) ? !1 : s.every((i) => r[i].$params ? Object.keys(r[i].$params).every((l) => L(a[i].$params[l]) === L(r[i].$params[l])) : !0);
|
551
551
|
}
|
552
552
|
get(t, r) {
|
553
553
|
const a = this.storage.get(t);
|
@@ -556,11 +556,11 @@ class Ot {
|
|
556
556
|
const {
|
557
557
|
rules: n,
|
558
558
|
result: s
|
559
|
-
} = a,
|
560
|
-
return
|
559
|
+
} = a, o = this.checkRulesValidity(t, r, n), i = s.$unwatch ? s.$unwatch : () => ({});
|
560
|
+
return o ? s : {
|
561
561
|
$dirty: s.$dirty,
|
562
562
|
$partial: !0,
|
563
|
-
$unwatch:
|
563
|
+
$unwatch: i
|
564
564
|
};
|
565
565
|
}
|
566
566
|
}
|
@@ -568,13 +568,13 @@ const te = {
|
|
568
568
|
COLLECT_ALL: !0,
|
569
569
|
COLLECT_NONE: !1
|
570
570
|
}, Ie = Symbol("vuelidate#injectChildResults"), Se = Symbol("vuelidate#removeChildResults");
|
571
|
-
function
|
571
|
+
function At(e) {
|
572
572
|
let {
|
573
573
|
$scope: t,
|
574
574
|
instance: r
|
575
575
|
} = e;
|
576
576
|
const a = {}, n = D([]), s = h(() => n.value.reduce((d, p) => (d[p] = L(a[p]), d), {}));
|
577
|
-
function
|
577
|
+
function o(d, p) {
|
578
578
|
let {
|
579
579
|
$registerAs: m,
|
580
580
|
$scope: g,
|
@@ -582,11 +582,11 @@ function bt(e) {
|
|
582
582
|
} = p;
|
583
583
|
u || t === te.COLLECT_NONE || g === te.COLLECT_NONE || t !== te.COLLECT_ALL && t !== g || (a[m] = d, n.value.push(m));
|
584
584
|
}
|
585
|
-
r.__vuelidateInjectInstances = [].concat(r.__vuelidateInjectInstances || [],
|
586
|
-
function
|
585
|
+
r.__vuelidateInjectInstances = [].concat(r.__vuelidateInjectInstances || [], o);
|
586
|
+
function i(d) {
|
587
587
|
n.value = n.value.filter((p) => p !== d), delete a[d];
|
588
588
|
}
|
589
|
-
r.__vuelidateRemoveInstances = [].concat(r.__vuelidateRemoveInstances || [],
|
589
|
+
r.__vuelidateRemoveInstances = [].concat(r.__vuelidateRemoveInstances || [], i);
|
590
590
|
const l = re(Ie, []);
|
591
591
|
De(Ie, r.__vuelidateInjectInstances);
|
592
592
|
const c = re(Se, []);
|
@@ -596,32 +596,32 @@ function bt(e) {
|
|
596
596
|
removeValidationResultsFromParent: c
|
597
597
|
};
|
598
598
|
}
|
599
|
-
function
|
599
|
+
function Ge(e) {
|
600
600
|
return new Proxy(e, {
|
601
601
|
get(t, r) {
|
602
|
-
return typeof t[r] == "object" ?
|
602
|
+
return typeof t[r] == "object" ? Ge(t[r]) : h(() => t[r]);
|
603
603
|
}
|
604
604
|
});
|
605
605
|
}
|
606
606
|
let ze = 0;
|
607
|
-
function
|
607
|
+
function Yt(e, t) {
|
608
608
|
var r;
|
609
609
|
let a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
610
610
|
arguments.length === 1 && (a = e, e = void 0, t = void 0);
|
611
611
|
let {
|
612
612
|
$registerAs: n,
|
613
613
|
$scope: s = te.COLLECT_ALL,
|
614
|
-
$stopPropagation:
|
615
|
-
$externalResults:
|
614
|
+
$stopPropagation: o,
|
615
|
+
$externalResults: i,
|
616
616
|
currentVueInstance: l
|
617
617
|
} = a;
|
618
618
|
const c = l || ((r = tt()) === null || r === void 0 ? void 0 : r.proxy), d = c ? c.$options : {};
|
619
619
|
n || (ze += 1, n = `_vuelidate_${ze}`);
|
620
|
-
const p = D({}), m = new
|
620
|
+
const p = D({}), m = new _t(), {
|
621
621
|
childResults: g,
|
622
622
|
sendValidationResultsToParent: u,
|
623
623
|
removeValidationResultsFromParent: M
|
624
|
-
} = c ?
|
624
|
+
} = c ? At({
|
625
625
|
$scope: s,
|
626
626
|
instance: c
|
627
627
|
}) : {
|
@@ -629,32 +629,32 @@ function _t(e, t) {
|
|
629
629
|
};
|
630
630
|
if (!e && d.validations) {
|
631
631
|
const j = d.validations;
|
632
|
-
t = D({}),
|
633
|
-
t.value = c, H(() =>
|
634
|
-
p.value =
|
635
|
-
validations:
|
632
|
+
t = D({}), Qe(() => {
|
633
|
+
t.value = c, H(() => ue(j) ? j.call(t.value, new Ge(t.value)) : j, (f) => {
|
634
|
+
p.value = je({
|
635
|
+
validations: f,
|
636
636
|
state: t,
|
637
637
|
childResults: g,
|
638
638
|
resultsCache: m,
|
639
639
|
globalConfig: a,
|
640
640
|
instance: c,
|
641
|
-
externalResults:
|
641
|
+
externalResults: i || c.vuelidateExternalResults
|
642
642
|
});
|
643
643
|
}, {
|
644
644
|
immediate: !0
|
645
645
|
});
|
646
646
|
}), a = d.validationsConfig || a;
|
647
647
|
} else {
|
648
|
-
const j =
|
649
|
-
H(j, (
|
650
|
-
p.value =
|
651
|
-
validations:
|
648
|
+
const j = ge(e) || Ct(e) ? e : z(e || {});
|
649
|
+
H(j, (f) => {
|
650
|
+
p.value = je({
|
651
|
+
validations: f,
|
652
652
|
state: t,
|
653
653
|
childResults: g,
|
654
654
|
resultsCache: m,
|
655
655
|
globalConfig: a,
|
656
656
|
instance: c ?? {},
|
657
|
-
externalResults:
|
657
|
+
externalResults: i
|
658
658
|
});
|
659
659
|
}, {
|
660
660
|
immediate: !0
|
@@ -663,11 +663,11 @@ function _t(e, t) {
|
|
663
663
|
return c && (u.forEach((j) => j(p, {
|
664
664
|
$registerAs: n,
|
665
665
|
$scope: s,
|
666
|
-
$stopPropagation:
|
667
|
-
})), me(() => M.forEach((j) => j(n)))), h(() =>
|
666
|
+
$stopPropagation: o
|
667
|
+
})), me(() => M.forEach((j) => j(n)))), h(() => Y(Y({}, L(p.value)), g.value));
|
668
668
|
}
|
669
|
-
var
|
670
|
-
const
|
669
|
+
var b = /* @__PURE__ */ ((e) => (e.CHECKBOX = "checkbox", e.TEXT = "text", e.PASSWORD = "password", e))(b || {});
|
670
|
+
const Pt = ["id", "type", "name", "placeholder", "value"], kt = /* @__PURE__ */ v({
|
671
671
|
__name: "InputText",
|
672
672
|
props: {
|
673
673
|
type: {},
|
@@ -685,7 +685,7 @@ const At = ["id", "type", "name", "placeholder", "value"], Yt = /* @__PURE__ */
|
|
685
685
|
}, n = (s) => {
|
686
686
|
r("input", s);
|
687
687
|
};
|
688
|
-
return (s,
|
688
|
+
return (s, o) => (y(), $("input", J({
|
689
689
|
id: s.id,
|
690
690
|
type: s.type,
|
691
691
|
name: s.name,
|
@@ -694,9 +694,9 @@ const At = ["id", "type", "name", "placeholder", "value"], Yt = /* @__PURE__ */
|
|
694
694
|
}, s.$attrs, {
|
695
695
|
onChange: a,
|
696
696
|
onInput: n
|
697
|
-
}), null, 16,
|
697
|
+
}), null, 16, Pt));
|
698
698
|
}
|
699
|
-
}),
|
699
|
+
}), Qt = ["id", "name", "checked", "value"], Rt = /* @__PURE__ */ v({
|
700
700
|
__name: "InputCheckbox",
|
701
701
|
props: {
|
702
702
|
defaultChecked: { type: Boolean },
|
@@ -713,16 +713,16 @@ const At = ["id", "type", "name", "placeholder", "value"], Yt = /* @__PURE__ */
|
|
713
713
|
const r = t, a = (n) => {
|
714
714
|
r("change", n);
|
715
715
|
};
|
716
|
-
return (n, s) => (y(),
|
716
|
+
return (n, s) => (y(), $("input", J({
|
717
717
|
id: n.id,
|
718
718
|
name: n.name,
|
719
719
|
checked: n.value === "true",
|
720
720
|
value: n.value,
|
721
721
|
class: "pdap-input-checkbox",
|
722
722
|
type: "checkbox"
|
723
|
-
}, n.$attrs, { onChange: a }), null, 16,
|
723
|
+
}, n.$attrs, { onChange: a }), null, 16, Qt));
|
724
724
|
}
|
725
|
-
}),
|
725
|
+
}), Ut = ["id"], Vt = ["for"], Gt = /* @__PURE__ */ v({
|
726
726
|
__name: "PdapInput",
|
727
727
|
props: {
|
728
728
|
type: {},
|
@@ -738,27 +738,27 @@ const At = ["id", "type", "name", "placeholder", "value"], Yt = /* @__PURE__ */
|
|
738
738
|
const t = e, r = h(() => `pdap-${t.name}-input-error`);
|
739
739
|
return (a, n) => {
|
740
740
|
var s;
|
741
|
-
return y(),
|
742
|
-
class:
|
741
|
+
return y(), $("div", {
|
742
|
+
class: U({
|
743
743
|
"pdap-input": !0,
|
744
744
|
[`pdap-input-${a.type}`]: !0,
|
745
|
-
[`pdap-input-${a.type}-checked`]: a.type === L(
|
745
|
+
[`pdap-input-${a.type}-checked`]: a.type === L(b).CHECKBOX && a.value === "true",
|
746
746
|
"pdap-input-error": Number((s = a.error) == null ? void 0 : s.length) >= 1
|
747
747
|
})
|
748
748
|
}, [
|
749
|
-
a.type === L(
|
749
|
+
a.type === L(b).CHECKBOX ? (y(), x(Rt, J({
|
750
750
|
key: 0,
|
751
751
|
class: "pdap-input-checkbox"
|
752
|
-
}, { ...a.$attrs, ...t }), null, 16)) : (y(),
|
753
|
-
a.error ? (y(),
|
752
|
+
}, { ...a.$attrs, ...t }), null, 16)) : (y(), x(kt, nt(J({ key: 1 }, { ...a.$attrs, ...a.$props })), null, 16)),
|
753
|
+
a.error ? (y(), $("div", {
|
754
754
|
key: 2,
|
755
755
|
id: r.value,
|
756
756
|
class: "pdap-input-error-message"
|
757
|
-
},
|
758
|
-
|
757
|
+
}, E(a.error), 9, Ut)) : B("", !0),
|
758
|
+
w("label", {
|
759
759
|
class: "pdap-input-label",
|
760
760
|
for: a.id
|
761
|
-
},
|
761
|
+
}, E(a.label), 9, Vt)
|
762
762
|
], 2);
|
763
763
|
};
|
764
764
|
}
|
@@ -773,18 +773,18 @@ function Ee(e, t) {
|
|
773
773
|
}
|
774
774
|
return r;
|
775
775
|
}
|
776
|
-
function
|
776
|
+
function F(e) {
|
777
777
|
for (var t = 1; t < arguments.length; t++) {
|
778
778
|
var r = arguments[t] != null ? arguments[t] : {};
|
779
779
|
t % 2 ? Ee(Object(r), !0).forEach(function(a) {
|
780
|
-
|
780
|
+
Bt(e, a, r[a]);
|
781
781
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ee(Object(r)).forEach(function(a) {
|
782
782
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(r, a));
|
783
783
|
});
|
784
784
|
}
|
785
785
|
return e;
|
786
786
|
}
|
787
|
-
function
|
787
|
+
function Bt(e, t, r) {
|
788
788
|
return t in e ? Object.defineProperty(e, t, {
|
789
789
|
value: r,
|
790
790
|
enumerable: !0,
|
@@ -795,75 +795,75 @@ function Vt(e, t, r) {
|
|
795
795
|
function X(e) {
|
796
796
|
return typeof e == "function";
|
797
797
|
}
|
798
|
-
function
|
798
|
+
function oe(e) {
|
799
799
|
return e !== null && typeof e == "object" && !Array.isArray(e);
|
800
800
|
}
|
801
|
-
function
|
802
|
-
return X(e.$validator) ?
|
801
|
+
function le(e) {
|
802
|
+
return X(e.$validator) ? F({}, e) : {
|
803
803
|
$validator: e
|
804
804
|
};
|
805
805
|
}
|
806
|
-
function
|
807
|
-
return
|
806
|
+
function Ft(e) {
|
807
|
+
return oe(e) && X(e.then);
|
808
808
|
}
|
809
809
|
function P(e) {
|
810
810
|
return typeof e == "object" ? e.$valid : e;
|
811
811
|
}
|
812
|
-
function
|
812
|
+
function V(e) {
|
813
813
|
return e.$validator || e;
|
814
814
|
}
|
815
|
-
function
|
816
|
-
if (!
|
815
|
+
function fe(e, t) {
|
816
|
+
if (!oe(e))
|
817
817
|
throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof e}`);
|
818
|
-
if (!
|
818
|
+
if (!oe(t) && !X(t))
|
819
819
|
throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");
|
820
|
-
const r =
|
821
|
-
return r.$params =
|
820
|
+
const r = le(t);
|
821
|
+
return r.$params = F(F({}, r.$params || {}), e), r;
|
822
822
|
}
|
823
823
|
function K(e, t) {
|
824
824
|
if (!X(e) && typeof L(e) != "string")
|
825
825
|
throw new Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof e}`);
|
826
|
-
if (!
|
826
|
+
if (!oe(t) && !X(t))
|
827
827
|
throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");
|
828
|
-
const r =
|
828
|
+
const r = le(t);
|
829
829
|
return r.$message = e, r;
|
830
830
|
}
|
831
|
-
function
|
831
|
+
function Wt(e) {
|
832
832
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
833
|
-
const r =
|
834
|
-
return
|
833
|
+
const r = le(e);
|
834
|
+
return F(F({}, r), {}, {
|
835
835
|
$async: !0,
|
836
836
|
$watchTargets: t
|
837
837
|
});
|
838
838
|
}
|
839
|
-
function
|
839
|
+
function Zt(e) {
|
840
840
|
return {
|
841
841
|
$validator(t) {
|
842
842
|
for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
843
843
|
a[n - 1] = arguments[n];
|
844
|
-
return L(t).reduce((s,
|
845
|
-
const l = Object.entries(
|
844
|
+
return L(t).reduce((s, o, i) => {
|
845
|
+
const l = Object.entries(o).reduce((c, d) => {
|
846
846
|
let [p, m] = d;
|
847
847
|
const g = e[p] || {}, u = Object.entries(g).reduce((M, j) => {
|
848
|
-
let [
|
849
|
-
const
|
850
|
-
if (M.$data[
|
851
|
-
let
|
852
|
-
const ee =
|
853
|
-
typeof
|
848
|
+
let [f, O] = j;
|
849
|
+
const S = V(O).call(this, m, o, i, ...a), Q = P(S);
|
850
|
+
if (M.$data[f] = S, M.$data.$invalid = !Q || !!M.$data.$invalid, M.$data.$error = M.$data.$invalid, !Q) {
|
851
|
+
let _ = O.$message || "";
|
852
|
+
const ee = O.$params || {};
|
853
|
+
typeof _ == "function" && (_ = _({
|
854
854
|
$pending: !1,
|
855
855
|
$invalid: !Q,
|
856
856
|
$params: ee,
|
857
857
|
$model: m,
|
858
|
-
$response:
|
858
|
+
$response: S
|
859
859
|
})), M.$errors.push({
|
860
860
|
$property: p,
|
861
|
-
$message:
|
861
|
+
$message: _,
|
862
862
|
$params: ee,
|
863
|
-
$response:
|
863
|
+
$response: S,
|
864
864
|
$model: m,
|
865
865
|
$pending: !1,
|
866
|
-
$validator:
|
866
|
+
$validator: f
|
867
867
|
});
|
868
868
|
}
|
869
869
|
return {
|
@@ -905,7 +905,7 @@ function Wt(e) {
|
|
905
905
|
}
|
906
906
|
};
|
907
907
|
}
|
908
|
-
const
|
908
|
+
const I = (e) => {
|
909
909
|
if (e = L(e), Array.isArray(e))
|
910
910
|
return !!e.length;
|
911
911
|
if (e == null)
|
@@ -920,50 +920,50 @@ const T = (e) => {
|
|
920
920
|
return !1;
|
921
921
|
}
|
922
922
|
return !!String(e).length;
|
923
|
-
},
|
923
|
+
}, we = (e) => (e = L(e), Array.isArray(e) ? e.length : typeof e == "object" ? Object.keys(e).length : String(e).length);
|
924
924
|
function k() {
|
925
925
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
926
926
|
t[r] = arguments[r];
|
927
|
-
return (a) => (a = L(a), !
|
927
|
+
return (a) => (a = L(a), !I(a) || t.every((n) => (n.lastIndex = 0, n.test(a))));
|
928
928
|
}
|
929
929
|
var W = /* @__PURE__ */ Object.freeze({
|
930
930
|
__proto__: null,
|
931
|
-
forEach:
|
932
|
-
len:
|
933
|
-
normalizeValidatorObject:
|
931
|
+
forEach: Zt,
|
932
|
+
len: we,
|
933
|
+
normalizeValidatorObject: le,
|
934
934
|
regex: k,
|
935
|
-
req:
|
935
|
+
req: I,
|
936
936
|
unwrap: L,
|
937
|
-
unwrapNormalizedValidator:
|
937
|
+
unwrapNormalizedValidator: V,
|
938
938
|
unwrapValidatorResponse: P,
|
939
|
-
withAsync:
|
939
|
+
withAsync: Wt,
|
940
940
|
withMessage: K,
|
941
|
-
withParams:
|
942
|
-
}),
|
943
|
-
$validator:
|
941
|
+
withParams: fe
|
942
|
+
}), Ht = k(/^[a-zA-Z]*$/), Jt = {
|
943
|
+
$validator: Ht,
|
944
944
|
$message: "The value is not alphabetical",
|
945
945
|
$params: {
|
946
946
|
type: "alpha"
|
947
947
|
}
|
948
|
-
},
|
949
|
-
$validator:
|
948
|
+
}, Xt = k(/^[a-zA-Z0-9]*$/), Kt = {
|
949
|
+
$validator: Xt,
|
950
950
|
$message: "The value must be alpha-numeric",
|
951
951
|
$params: {
|
952
952
|
type: "alphaNum"
|
953
953
|
}
|
954
|
-
},
|
955
|
-
$validator:
|
954
|
+
}, qt = k(/^\d*(\.\d+)?$/), er = {
|
955
|
+
$validator: qt,
|
956
956
|
$message: "Value must be numeric",
|
957
957
|
$params: {
|
958
958
|
type: "numeric"
|
959
959
|
}
|
960
960
|
};
|
961
|
-
function
|
962
|
-
return (r) => !
|
961
|
+
function tr(e, t) {
|
962
|
+
return (r) => !I(r) || (!/\s/.test(r) || r instanceof Date) && +L(e) <= +r && +L(t) >= +r;
|
963
963
|
}
|
964
|
-
function
|
964
|
+
function rr(e, t) {
|
965
965
|
return {
|
966
|
-
$validator:
|
966
|
+
$validator: tr(e, t),
|
967
967
|
$message: (r) => {
|
968
968
|
let {
|
969
969
|
$params: a
|
@@ -977,62 +977,62 @@ function er(e, t) {
|
|
977
977
|
}
|
978
978
|
};
|
979
979
|
}
|
980
|
-
const
|
981
|
-
var
|
982
|
-
$validator:
|
980
|
+
const ar = /^(?:[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;
|
981
|
+
var nr = k(ar), he = {
|
982
|
+
$validator: nr,
|
983
983
|
$message: "Value is not a valid email address",
|
984
984
|
$params: {
|
985
985
|
type: "email"
|
986
986
|
}
|
987
987
|
};
|
988
|
-
function
|
989
|
-
if (!
|
988
|
+
function sr(e) {
|
989
|
+
if (!I(e))
|
990
990
|
return !0;
|
991
991
|
if (typeof e != "string")
|
992
992
|
return !1;
|
993
993
|
const t = e.split(".");
|
994
|
-
return t.length === 4 && t.every(
|
994
|
+
return t.length === 4 && t.every(ur);
|
995
995
|
}
|
996
|
-
const
|
996
|
+
const ur = (e) => {
|
997
997
|
if (e.length > 3 || e.length === 0 || e[0] === "0" && e !== "0" || !e.match(/^\d+$/))
|
998
998
|
return !1;
|
999
999
|
const t = +e | 0;
|
1000
1000
|
return t >= 0 && t <= 255;
|
1001
1001
|
};
|
1002
|
-
var
|
1003
|
-
$validator:
|
1002
|
+
var or = {
|
1003
|
+
$validator: sr,
|
1004
1004
|
$message: "The value is not a valid IP address",
|
1005
1005
|
$params: {
|
1006
1006
|
type: "ipAddress"
|
1007
1007
|
}
|
1008
1008
|
};
|
1009
|
-
function
|
1009
|
+
function ir() {
|
1010
1010
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ":";
|
1011
1011
|
return (t) => {
|
1012
|
-
if (e = L(e), !
|
1012
|
+
if (e = L(e), !I(t))
|
1013
1013
|
return !0;
|
1014
1014
|
if (typeof t != "string")
|
1015
1015
|
return !1;
|
1016
1016
|
const r = typeof e == "string" && e !== "" ? t.split(e) : t.length === 12 || t.length === 16 ? t.match(/.{2}/g) : null;
|
1017
|
-
return r !== null && (r.length === 6 || r.length === 8) && r.every(
|
1017
|
+
return r !== null && (r.length === 6 || r.length === 8) && r.every(lr);
|
1018
1018
|
};
|
1019
1019
|
}
|
1020
|
-
const
|
1021
|
-
function
|
1020
|
+
const lr = (e) => e.toLowerCase().match(/^[0-9a-f]{2}$/);
|
1021
|
+
function cr(e) {
|
1022
1022
|
return {
|
1023
|
-
$validator:
|
1023
|
+
$validator: ir(e),
|
1024
1024
|
$message: "The value is not a valid MAC Address",
|
1025
1025
|
$params: {
|
1026
1026
|
type: "macAddress"
|
1027
1027
|
}
|
1028
1028
|
};
|
1029
1029
|
}
|
1030
|
-
function
|
1031
|
-
return (t) => !
|
1030
|
+
function Lr(e) {
|
1031
|
+
return (t) => !I(t) || we(t) <= L(e);
|
1032
1032
|
}
|
1033
|
-
function
|
1033
|
+
function Mr(e) {
|
1034
1034
|
return {
|
1035
|
-
$validator:
|
1035
|
+
$validator: Lr(e),
|
1036
1036
|
$message: (t) => {
|
1037
1037
|
let {
|
1038
1038
|
$params: r
|
@@ -1045,12 +1045,12 @@ function cr(e) {
|
|
1045
1045
|
}
|
1046
1046
|
};
|
1047
1047
|
}
|
1048
|
-
function
|
1049
|
-
return (t) => !
|
1048
|
+
function dr(e) {
|
1049
|
+
return (t) => !I(t) || we(t) >= L(e);
|
1050
1050
|
}
|
1051
|
-
function
|
1051
|
+
function gr(e) {
|
1052
1052
|
return {
|
1053
|
-
$validator:
|
1053
|
+
$validator: dr(e),
|
1054
1054
|
$message: (t) => {
|
1055
1055
|
let {
|
1056
1056
|
$params: r
|
@@ -1063,18 +1063,18 @@ function Mr(e) {
|
|
1063
1063
|
}
|
1064
1064
|
};
|
1065
1065
|
}
|
1066
|
-
function
|
1067
|
-
return typeof e == "string" && (e = e.trim()),
|
1066
|
+
function jr(e) {
|
1067
|
+
return typeof e == "string" && (e = e.trim()), I(e);
|
1068
1068
|
}
|
1069
|
-
var
|
1070
|
-
$validator:
|
1069
|
+
var $e = {
|
1070
|
+
$validator: jr,
|
1071
1071
|
$message: "Value is required",
|
1072
1072
|
$params: {
|
1073
1073
|
type: "required"
|
1074
1074
|
}
|
1075
1075
|
};
|
1076
|
-
const Oe = (e, t) => e ?
|
1077
|
-
function
|
1076
|
+
const Oe = (e, t) => e ? I(typeof t == "string" ? t.trim() : t) : !0;
|
1077
|
+
function pr(e) {
|
1078
1078
|
return function(t, r) {
|
1079
1079
|
if (typeof e != "function")
|
1080
1080
|
return Oe(L(e), t);
|
@@ -1082,9 +1082,9 @@ function gr(e) {
|
|
1082
1082
|
return Oe(a, t);
|
1083
1083
|
};
|
1084
1084
|
}
|
1085
|
-
function
|
1085
|
+
function mr(e) {
|
1086
1086
|
return {
|
1087
|
-
$validator:
|
1087
|
+
$validator: pr(e),
|
1088
1088
|
$message: "The value is required",
|
1089
1089
|
$params: {
|
1090
1090
|
type: "requiredIf",
|
@@ -1092,8 +1092,8 @@ function jr(e) {
|
|
1092
1092
|
}
|
1093
1093
|
};
|
1094
1094
|
}
|
1095
|
-
const be = (e, t) => e ? !0 :
|
1096
|
-
function
|
1095
|
+
const be = (e, t) => e ? !0 : I(typeof t == "string" ? t.trim() : t);
|
1096
|
+
function yr(e) {
|
1097
1097
|
return function(t, r) {
|
1098
1098
|
if (typeof e != "function")
|
1099
1099
|
return be(L(e), t);
|
@@ -1101,9 +1101,9 @@ function pr(e) {
|
|
1101
1101
|
return be(a, t);
|
1102
1102
|
};
|
1103
1103
|
}
|
1104
|
-
function
|
1104
|
+
function fr(e) {
|
1105
1105
|
return {
|
1106
|
-
$validator:
|
1106
|
+
$validator: yr(e),
|
1107
1107
|
$message: "The value is required",
|
1108
1108
|
$params: {
|
1109
1109
|
type: "requiredUnless",
|
@@ -1111,13 +1111,13 @@ function mr(e) {
|
|
1111
1111
|
}
|
1112
1112
|
};
|
1113
1113
|
}
|
1114
|
-
function
|
1114
|
+
function wr(e) {
|
1115
1115
|
return (t) => L(t) === L(e);
|
1116
1116
|
}
|
1117
|
-
function
|
1117
|
+
function hr(e) {
|
1118
1118
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "other";
|
1119
1119
|
return {
|
1120
|
-
$validator:
|
1120
|
+
$validator: wr(e),
|
1121
1121
|
$message: (r) => `The value must be equal to the ${t} value`,
|
1122
1122
|
$params: {
|
1123
1123
|
equalTo: e,
|
@@ -1126,103 +1126,103 @@ function wr(e) {
|
|
1126
1126
|
}
|
1127
1127
|
};
|
1128
1128
|
}
|
1129
|
-
const
|
1130
|
-
var
|
1131
|
-
$validator:
|
1129
|
+
const $r = /^(?:(?:(?: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;
|
1130
|
+
var Nr = k($r), Dr = {
|
1131
|
+
$validator: Nr,
|
1132
1132
|
$message: "The value is not a valid URL address",
|
1133
1133
|
$params: {
|
1134
1134
|
type: "url"
|
1135
1135
|
}
|
1136
1136
|
};
|
1137
|
-
function
|
1137
|
+
function vr(e) {
|
1138
1138
|
return function() {
|
1139
1139
|
for (var t = arguments.length, r = new Array(t), a = 0; a < t; a++)
|
1140
1140
|
r[a] = arguments[a];
|
1141
|
-
return e.reduce((n, s) => P(n) ? n :
|
1141
|
+
return e.reduce((n, s) => P(n) ? n : V(s).apply(this, r), !1);
|
1142
1142
|
};
|
1143
1143
|
}
|
1144
|
-
function
|
1144
|
+
function Cr(e) {
|
1145
1145
|
return function() {
|
1146
1146
|
for (var t = arguments.length, r = new Array(t), a = 0; a < t; a++)
|
1147
1147
|
r[a] = arguments[a];
|
1148
1148
|
return e.reduce(async (n, s) => {
|
1149
|
-
const
|
1150
|
-
return P(
|
1149
|
+
const o = await n;
|
1150
|
+
return P(o) ? o : V(s).apply(this, r);
|
1151
1151
|
}, Promise.resolve(!1));
|
1152
1152
|
};
|
1153
1153
|
}
|
1154
|
-
function
|
1154
|
+
function Tr() {
|
1155
1155
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
1156
1156
|
t[r] = arguments[r];
|
1157
|
-
const a = t.some((
|
1157
|
+
const a = t.some((o) => o.$async), n = t.reduce((o, i) => i.$watchTargets ? o.concat(i.$watchTargets) : o, []);
|
1158
1158
|
let s = () => !1;
|
1159
|
-
return t.length && (s = a ?
|
1159
|
+
return t.length && (s = a ? Cr(t) : vr(t)), {
|
1160
1160
|
$async: a,
|
1161
1161
|
$validator: s,
|
1162
1162
|
$watchTargets: n
|
1163
1163
|
};
|
1164
1164
|
}
|
1165
|
-
function
|
1166
|
-
return
|
1165
|
+
function xr() {
|
1166
|
+
return fe({
|
1167
1167
|
type: "or"
|
1168
|
-
}, K("The value does not match any of the provided validators",
|
1168
|
+
}, K("The value does not match any of the provided validators", Tr(...arguments)));
|
1169
1169
|
}
|
1170
|
-
function
|
1170
|
+
function Ir(e) {
|
1171
1171
|
return function() {
|
1172
1172
|
for (var t = arguments.length, r = new Array(t), a = 0; a < t; a++)
|
1173
1173
|
r[a] = arguments[a];
|
1174
|
-
return e.reduce((n, s) => P(n) ?
|
1174
|
+
return e.reduce((n, s) => P(n) ? V(s).apply(this, r) : n, !0);
|
1175
1175
|
};
|
1176
1176
|
}
|
1177
|
-
function
|
1177
|
+
function Sr(e) {
|
1178
1178
|
return function() {
|
1179
1179
|
for (var t = arguments.length, r = new Array(t), a = 0; a < t; a++)
|
1180
1180
|
r[a] = arguments[a];
|
1181
1181
|
return e.reduce(async (n, s) => {
|
1182
|
-
const
|
1183
|
-
return P(
|
1182
|
+
const o = await n;
|
1183
|
+
return P(o) ? V(s).apply(this, r) : o;
|
1184
1184
|
}, Promise.resolve(!0));
|
1185
1185
|
};
|
1186
1186
|
}
|
1187
|
-
function
|
1187
|
+
function zr() {
|
1188
1188
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
1189
1189
|
t[r] = arguments[r];
|
1190
|
-
const a = t.some((
|
1190
|
+
const a = t.some((o) => o.$async), n = t.reduce((o, i) => i.$watchTargets ? o.concat(i.$watchTargets) : o, []);
|
1191
1191
|
let s = () => !1;
|
1192
|
-
return t.length && (s = a ?
|
1192
|
+
return t.length && (s = a ? Sr(t) : Ir(t)), {
|
1193
1193
|
$async: a,
|
1194
1194
|
$validator: s,
|
1195
1195
|
$watchTargets: n
|
1196
1196
|
};
|
1197
1197
|
}
|
1198
|
-
function
|
1199
|
-
return
|
1198
|
+
function Er() {
|
1199
|
+
return fe({
|
1200
1200
|
type: "and"
|
1201
|
-
}, K("The value does not match all of the provided validators",
|
1201
|
+
}, K("The value does not match all of the provided validators", zr(...arguments)));
|
1202
1202
|
}
|
1203
|
-
function
|
1203
|
+
function Or(e) {
|
1204
1204
|
return function(t, r) {
|
1205
|
-
if (!
|
1205
|
+
if (!I(t))
|
1206
1206
|
return !0;
|
1207
|
-
const a =
|
1208
|
-
return
|
1207
|
+
const a = V(e).call(this, t, r);
|
1208
|
+
return Ft(a) ? a.then((n) => !P(n)) : !P(a);
|
1209
1209
|
};
|
1210
1210
|
}
|
1211
|
-
function
|
1211
|
+
function br(e) {
|
1212
1212
|
return {
|
1213
|
-
$validator:
|
1213
|
+
$validator: Or(e),
|
1214
1214
|
$message: "The value does not match the provided validator",
|
1215
1215
|
$params: {
|
1216
1216
|
type: "not"
|
1217
1217
|
}
|
1218
1218
|
};
|
1219
1219
|
}
|
1220
|
-
function
|
1221
|
-
return (t) => !
|
1220
|
+
function _r(e) {
|
1221
|
+
return (t) => !I(t) || (!/\s/.test(t) || t instanceof Date) && +t >= +L(e);
|
1222
1222
|
}
|
1223
|
-
function
|
1223
|
+
function Ar(e) {
|
1224
1224
|
return {
|
1225
|
-
$validator:
|
1225
|
+
$validator: _r(e),
|
1226
1226
|
$message: (t) => {
|
1227
1227
|
let {
|
1228
1228
|
$params: r
|
@@ -1235,11 +1235,11 @@ function br(e) {
|
|
1235
1235
|
}
|
1236
1236
|
};
|
1237
1237
|
}
|
1238
|
-
function
|
1239
|
-
return (t) => !
|
1238
|
+
function Yr(e) {
|
1239
|
+
return (t) => !I(t) || (!/\s/.test(t) || t instanceof Date) && +t <= +L(e);
|
1240
1240
|
}
|
1241
|
-
var
|
1242
|
-
$validator:
|
1241
|
+
var Pr = (e) => ({
|
1242
|
+
$validator: Yr(e),
|
1243
1243
|
$message: (t) => {
|
1244
1244
|
let {
|
1245
1245
|
$params: r
|
@@ -1250,20 +1250,20 @@ var Ar = (e) => ({
|
|
1250
1250
|
max: e,
|
1251
1251
|
type: "maxValue"
|
1252
1252
|
}
|
1253
|
-
}),
|
1254
|
-
$validator:
|
1253
|
+
}), kr = k(/(^[0-9]*$)|(^-[0-9]+$)/), Qr = {
|
1254
|
+
$validator: kr,
|
1255
1255
|
$message: "Value is not an integer",
|
1256
1256
|
$params: {
|
1257
1257
|
type: "integer"
|
1258
1258
|
}
|
1259
|
-
},
|
1260
|
-
$validator:
|
1259
|
+
}, Rr = k(/^[-]?\d*(\.\d+)?$/), Ur = {
|
1260
|
+
$validator: Rr,
|
1261
1261
|
$message: "Value must be decimal",
|
1262
1262
|
$params: {
|
1263
1263
|
type: "decimal"
|
1264
1264
|
}
|
1265
1265
|
};
|
1266
|
-
function
|
1266
|
+
function Vr(e) {
|
1267
1267
|
let {
|
1268
1268
|
t,
|
1269
1269
|
messagePath: r = (n) => {
|
@@ -1276,12 +1276,12 @@ function Rr(e) {
|
|
1276
1276
|
} = e;
|
1277
1277
|
return function(s) {
|
1278
1278
|
let {
|
1279
|
-
withArguments:
|
1280
|
-
messagePath:
|
1279
|
+
withArguments: o = !1,
|
1280
|
+
messagePath: i = r,
|
1281
1281
|
messageParams: l = a
|
1282
1282
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
1283
1283
|
function c(d) {
|
1284
|
-
return t(
|
1284
|
+
return t(i(d), l(F({
|
1285
1285
|
model: d.$model,
|
1286
1286
|
property: d.$property,
|
1287
1287
|
pending: d.$pending,
|
@@ -1291,36 +1291,36 @@ function Rr(e) {
|
|
1291
1291
|
propertyPath: d.$propertyPath
|
1292
1292
|
}, d.$params)));
|
1293
1293
|
}
|
1294
|
-
return
|
1294
|
+
return o && typeof s == "function" ? function() {
|
1295
1295
|
return K(c, s(...arguments));
|
1296
1296
|
} : K(c, s);
|
1297
1297
|
};
|
1298
1298
|
}
|
1299
|
-
const
|
1299
|
+
const Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1300
1300
|
__proto__: null,
|
1301
|
-
alpha:
|
1302
|
-
alphaNum:
|
1303
|
-
and:
|
1304
|
-
between:
|
1305
|
-
createI18nMessage:
|
1306
|
-
decimal:
|
1301
|
+
alpha: Jt,
|
1302
|
+
alphaNum: Kt,
|
1303
|
+
and: Er,
|
1304
|
+
between: rr,
|
1305
|
+
createI18nMessage: Vr,
|
1306
|
+
decimal: Ur,
|
1307
1307
|
email: he,
|
1308
1308
|
helpers: W,
|
1309
|
-
integer:
|
1310
|
-
ipAddress:
|
1311
|
-
macAddress:
|
1312
|
-
maxLength:
|
1313
|
-
maxValue:
|
1314
|
-
minLength:
|
1315
|
-
minValue:
|
1316
|
-
not:
|
1317
|
-
numeric:
|
1318
|
-
or:
|
1319
|
-
required:
|
1320
|
-
requiredIf:
|
1321
|
-
requiredUnless:
|
1322
|
-
sameAs:
|
1323
|
-
url:
|
1309
|
+
integer: Qr,
|
1310
|
+
ipAddress: or,
|
1311
|
+
macAddress: cr,
|
1312
|
+
maxLength: Mr,
|
1313
|
+
maxValue: Pr,
|
1314
|
+
minLength: gr,
|
1315
|
+
minValue: Ar,
|
1316
|
+
not: br,
|
1317
|
+
numeric: er,
|
1318
|
+
or: xr,
|
1319
|
+
required: $e,
|
1320
|
+
requiredIf: mr,
|
1321
|
+
requiredUnless: fr,
|
1322
|
+
sameAs: hr,
|
1323
|
+
url: Dr
|
1324
1324
|
}, Symbol.toStringTag, { value: "Module" })), Fe = W.regex(
|
1325
1325
|
/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$ %^&*-]).{8,}$/
|
1326
1326
|
);
|
@@ -1336,67 +1336,67 @@ function Ye(e) {
|
|
1336
1336
|
function Pe(e) {
|
1337
1337
|
return e === "password";
|
1338
1338
|
}
|
1339
|
-
function
|
1339
|
+
function Gr(e, t) {
|
1340
1340
|
return {
|
1341
|
-
[e]:
|
1341
|
+
[e]: Be[e](t)
|
1342
1342
|
};
|
1343
1343
|
}
|
1344
|
-
function
|
1344
|
+
function Br(e, t, r) {
|
1345
1345
|
return {
|
1346
|
-
[e]: W.withMessage(r,
|
1346
|
+
[e]: W.withMessage(r, Be[e](t))
|
1347
1347
|
};
|
1348
1348
|
}
|
1349
|
-
function
|
1350
|
-
return { required:
|
1349
|
+
function Fr() {
|
1350
|
+
return { required: $e };
|
1351
1351
|
}
|
1352
|
-
function
|
1352
|
+
function Wr(e) {
|
1353
1353
|
return {
|
1354
|
-
required: W.withMessage(e,
|
1354
|
+
required: W.withMessage(e, $e)
|
1355
1355
|
};
|
1356
1356
|
}
|
1357
|
-
function
|
1357
|
+
function Zr() {
|
1358
1358
|
return { email: he };
|
1359
1359
|
}
|
1360
|
-
function
|
1360
|
+
function Hr(e) {
|
1361
1361
|
return {
|
1362
1362
|
email: W.withMessage(e, he)
|
1363
1363
|
};
|
1364
1364
|
}
|
1365
|
-
function
|
1365
|
+
function Jr() {
|
1366
1366
|
return { password: Fe };
|
1367
1367
|
}
|
1368
|
-
function
|
1368
|
+
function Xr(e) {
|
1369
1369
|
return {
|
1370
1370
|
password: W.withMessage(e, Fe)
|
1371
1371
|
};
|
1372
1372
|
}
|
1373
|
-
function
|
1373
|
+
function Kr(e, t) {
|
1374
1374
|
if (_e(e) && typeof t.message == "string" && typeof t.value == "number")
|
1375
|
-
return
|
1375
|
+
return Br(
|
1376
1376
|
e,
|
1377
1377
|
t.value,
|
1378
1378
|
t.message
|
1379
1379
|
);
|
1380
1380
|
if (_e(e) && typeof t.message > "u" && typeof t.value == "number")
|
1381
|
-
return
|
1381
|
+
return Gr(e, t.value);
|
1382
1382
|
if (Ye(e) && typeof t.message == "string")
|
1383
|
-
return
|
1383
|
+
return Hr(t.message);
|
1384
1384
|
if (Ye(e) && typeof t.message > "u")
|
1385
|
-
return
|
1385
|
+
return Zr();
|
1386
1386
|
if (Pe(e) && typeof t.message == "string")
|
1387
|
-
return
|
1387
|
+
return Xr(t.message);
|
1388
1388
|
if (Pe(e) && typeof t.message > "u")
|
1389
|
-
return
|
1389
|
+
return Jr();
|
1390
1390
|
if (Ae(e) && typeof t.message == "string")
|
1391
|
-
return
|
1391
|
+
return Wr(t.message);
|
1392
1392
|
if (Ae(e) && typeof t.message > "u")
|
1393
|
-
return
|
1393
|
+
return Fr();
|
1394
1394
|
throw new Error("No valid rule detected");
|
1395
1395
|
}
|
1396
|
-
const
|
1396
|
+
const qr = ["id", "name"], ea = {
|
1397
1397
|
key: 0,
|
1398
1398
|
class: "pdap-form-error-message"
|
1399
|
-
},
|
1399
|
+
}, ta = /* @__PURE__ */ v({
|
1400
1400
|
__name: "PdapForm",
|
1401
1401
|
props: {
|
1402
1402
|
error: { default: null },
|
@@ -1414,19 +1414,19 @@ const Xr = ["id", "name"], Kr = {
|
|
1414
1414
|
), s = D(
|
1415
1415
|
n.value.reduce((m, g) => {
|
1416
1416
|
switch (g.type) {
|
1417
|
-
case
|
1417
|
+
case b.CHECKBOX:
|
1418
1418
|
return { ...m, [g.name]: String(g.defaultChecked) };
|
1419
|
-
case
|
1420
|
-
case
|
1419
|
+
case b.TEXT:
|
1420
|
+
case b.PASSWORD:
|
1421
1421
|
default:
|
1422
1422
|
return { ...m, [g.name]: g.value };
|
1423
1423
|
}
|
1424
1424
|
}, {})
|
1425
|
-
),
|
1425
|
+
), o = r.schema.reduce((m, g) => {
|
1426
1426
|
const u = Object.entries(g.validators ?? {}).reduce(
|
1427
|
-
(M, [j,
|
1427
|
+
(M, [j, f]) => ({
|
1428
1428
|
...M,
|
1429
|
-
...
|
1429
|
+
...Kr(j, f)
|
1430
1430
|
}),
|
1431
1431
|
{}
|
1432
1432
|
);
|
@@ -1436,49 +1436,49 @@ const Xr = ["id", "name"], Kr = {
|
|
1436
1436
|
...u
|
1437
1437
|
}
|
1438
1438
|
};
|
1439
|
-
}, {}),
|
1439
|
+
}, {}), i = Yt(o, s, { $autoDirty: !1, $lazy: !0 }), l = D(r.error);
|
1440
1440
|
function c(m, g) {
|
1441
|
-
const u = g.target, M = u.type ===
|
1441
|
+
const u = g.target, M = u.type === b.CHECKBOX && typeof u.checked == "boolean" ? u.checked.toString() : u.value;
|
1442
1442
|
s.value[m] = M, d();
|
1443
1443
|
}
|
1444
|
-
|
1445
|
-
r.error ? l.value = r.error : l.value &&
|
1446
|
-
}),
|
1444
|
+
ve(() => {
|
1445
|
+
r.error ? l.value = r.error : l.value && i.value.$errors.length === 0 ? l.value = null : !l.value && i.value.$errors.length > 0 && (l.value = "Please update this form to correct the errors");
|
1446
|
+
}), ve(() => {
|
1447
1447
|
});
|
1448
1448
|
function d() {
|
1449
1449
|
a("change", { ...s.value });
|
1450
1450
|
}
|
1451
1451
|
async function p(m) {
|
1452
|
-
if (await
|
1453
|
-
a("submit", { ...s.value }),
|
1452
|
+
if (await i.value.$validate()) {
|
1453
|
+
a("submit", { ...s.value }), i.value.$reset(), m.target.reset(), s.value = Object.entries(s).reduce((M, [j]) => ({ ...M, [j]: "" }), {});
|
1454
1454
|
return;
|
1455
1455
|
}
|
1456
1456
|
}
|
1457
|
-
return (m, g) => (y(),
|
1457
|
+
return (m, g) => (y(), $("form", {
|
1458
1458
|
id: m.id,
|
1459
1459
|
name: m.name,
|
1460
1460
|
class: "pdap-form",
|
1461
1461
|
onChange: d,
|
1462
1462
|
onSubmit: g[0] || (g[0] = st((u) => p(u), ["prevent"]))
|
1463
1463
|
}, [
|
1464
|
-
typeof l.value == "string" ? (y(),
|
1465
|
-
(y(!0),
|
1466
|
-
var M, j,
|
1467
|
-
return y(),
|
1464
|
+
typeof l.value == "string" ? (y(), $("div", ea, E(l.value), 1)) : B("", !0),
|
1465
|
+
(y(!0), $(G, null, ie(n.value, (u) => {
|
1466
|
+
var M, j, f, O;
|
1467
|
+
return y(), x(Gt, J(u, {
|
1468
1468
|
key: u.name,
|
1469
|
-
error: (M = L(
|
1469
|
+
error: (M = L(i)[u.name]) != null && M.$error ? (O = (f = (j = L(i)[u.name]) == null ? void 0 : j.$errors) == null ? void 0 : f[0]) == null ? void 0 : O.$message : "",
|
1470
1470
|
value: s.value[u.name],
|
1471
|
-
onChange: (
|
1471
|
+
onChange: (Z) => c(u.name, Z)
|
1472
1472
|
}), null, 16, ["error", "value", "onChange"]);
|
1473
1473
|
}), 128)),
|
1474
1474
|
q(m.$slots, "default")
|
1475
|
-
], 40,
|
1475
|
+
], 40, qr));
|
1476
1476
|
}
|
1477
1477
|
});
|
1478
|
-
const
|
1478
|
+
const ra = {
|
1479
1479
|
name: "GridContainer"
|
1480
|
-
},
|
1481
|
-
...
|
1480
|
+
}, xa = /* @__PURE__ */ v({
|
1481
|
+
...ra,
|
1482
1482
|
props: {
|
1483
1483
|
columns: { default: "auto" },
|
1484
1484
|
component: { default: "div" },
|
@@ -1496,20 +1496,20 @@ const ea = {
|
|
1496
1496
|
},
|
1497
1497
|
...t.templateColumns && { gridTemplateColumns: t.templateColumns }
|
1498
1498
|
});
|
1499
|
-
return (
|
1500
|
-
class:
|
1499
|
+
return (o, i) => (y(), x(pe(o.component), {
|
1500
|
+
class: U(r),
|
1501
1501
|
style: ye(s)
|
1502
1502
|
}, {
|
1503
|
-
default:
|
1504
|
-
q(
|
1503
|
+
default: T(() => [
|
1504
|
+
q(o.$slots, "default")
|
1505
1505
|
]),
|
1506
1506
|
_: 3
|
1507
1507
|
}, 8, ["class", "style"]));
|
1508
1508
|
}
|
1509
|
-
}),
|
1509
|
+
}), aa = {
|
1510
1510
|
name: "GridItem"
|
1511
|
-
},
|
1512
|
-
...
|
1511
|
+
}, Ia = /* @__PURE__ */ v({
|
1512
|
+
...aa,
|
1513
1513
|
props: {
|
1514
1514
|
component: { default: "div" },
|
1515
1515
|
spanColumn: { default: 1 },
|
@@ -1525,25 +1525,25 @@ const ea = {
|
|
1525
1525
|
gridRow: `span ${t.spanRow} / span ${t.spanRow}`
|
1526
1526
|
}
|
1527
1527
|
});
|
1528
|
-
return (n, s) => (y(),
|
1529
|
-
class:
|
1528
|
+
return (n, s) => (y(), x(pe(n.component), {
|
1529
|
+
class: U(r),
|
1530
1530
|
style: ye(a)
|
1531
1531
|
}, {
|
1532
|
-
default:
|
1532
|
+
default: T(() => [
|
1533
1533
|
q(n.$slots, "default")
|
1534
1534
|
]),
|
1535
1535
|
_: 3
|
1536
1536
|
}, 8, ["class", "style"]));
|
1537
1537
|
}
|
1538
1538
|
});
|
1539
|
-
const
|
1539
|
+
const na = /* @__PURE__ */ w("svg", {
|
1540
1540
|
xmlns: "http://www.w3.org/2000/svg",
|
1541
1541
|
viewBox: "0 0 448 512"
|
1542
1542
|
}, [
|
1543
|
-
/* @__PURE__ */
|
1544
|
-
], -1),
|
1545
|
-
|
1546
|
-
],
|
1543
|
+
/* @__PURE__ */ w("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" })
|
1544
|
+
], -1), sa = [
|
1545
|
+
na
|
1546
|
+
], ua = ["aria-expanded"], oa = ["href"], ia = /* @__PURE__ */ v({
|
1547
1547
|
__name: "PdapNav",
|
1548
1548
|
props: {
|
1549
1549
|
topPosition: {}
|
@@ -1561,7 +1561,7 @@ const ra = /* @__PURE__ */ f("svg", {
|
|
1561
1561
|
}), a = z({
|
1562
1562
|
"pdap-nav": !0
|
1563
1563
|
});
|
1564
|
-
|
1564
|
+
Qe(() => {
|
1565
1565
|
n(), window.addEventListener("resize", n);
|
1566
1566
|
}), me(() => {
|
1567
1567
|
window.removeEventListener("resize", n);
|
@@ -1570,36 +1570,36 @@ const ra = /* @__PURE__ */ f("svg", {
|
|
1570
1570
|
window.innerWidth <= 1024 ? r.isMobile = !0 : r.isMobile = !1, await ae();
|
1571
1571
|
}
|
1572
1572
|
async function s() {
|
1573
|
-
var
|
1574
|
-
const
|
1575
|
-
!r.isExpanded && r.isMobile ? (r.isExpanded = !0,
|
1573
|
+
var i, l;
|
1574
|
+
const o = document.querySelector("body");
|
1575
|
+
!r.isExpanded && r.isMobile ? (r.isExpanded = !0, o != null && o.classList.contains("lock-scroll") || (i = document.querySelector("body")) == null || i.classList.add("lock-scroll")) : r.isExpanded && r.isMobile && (r.isExpanded = !1, (l = document.querySelector("body")) == null || l.classList.remove("lock-scroll")), await ae();
|
1576
1576
|
}
|
1577
|
-
return (
|
1578
|
-
|
1577
|
+
return (o, i) => (y(), $(G, null, [
|
1578
|
+
w("div", {
|
1579
1579
|
"aria-controls": "nav",
|
1580
1580
|
class: "pdap-nav-open-button",
|
1581
1581
|
role: "button",
|
1582
1582
|
onClick: s
|
1583
|
-
},
|
1584
|
-
|
1583
|
+
}, sa),
|
1584
|
+
w("nav", {
|
1585
1585
|
id: "nav",
|
1586
1586
|
"aria-expanded": r.isMobile && r.isExpanded || !r.isMobile,
|
1587
|
-
class:
|
1588
|
-
style: ye(r.isMobile ? { top: `${
|
1587
|
+
class: U(a),
|
1588
|
+
style: ye(r.isMobile ? { top: `${o.topPosition}px` } : {})
|
1589
1589
|
}, [
|
1590
|
-
(y(!0),
|
1590
|
+
(y(!0), $(G, null, ie(L(t), (l) => (y(), $("li", {
|
1591
1591
|
key: l.text,
|
1592
1592
|
class: "pdap-nav-link-container"
|
1593
1593
|
}, [
|
1594
|
-
l.href ? (y(),
|
1594
|
+
l.href ? (y(), $("a", {
|
1595
1595
|
key: 0,
|
1596
1596
|
class: "pdap-nav-link",
|
1597
1597
|
href: l.href,
|
1598
1598
|
target: "_blank",
|
1599
1599
|
referrerpolicy: "no-referrer",
|
1600
1600
|
onClick: s
|
1601
|
-
},
|
1602
|
-
l.path ? (y(),
|
1601
|
+
}, E(l.text), 9, oa)) : B("", !0),
|
1602
|
+
l.path ? (y(), x(L(se), {
|
1603
1603
|
key: 1,
|
1604
1604
|
"active-class": "pdap-nav-link-current",
|
1605
1605
|
"exact-active-class": "pdap-nav-link-current-exact",
|
@@ -1607,20 +1607,20 @@ const ra = /* @__PURE__ */ f("svg", {
|
|
1607
1607
|
to: l.path,
|
1608
1608
|
onClick: s
|
1609
1609
|
}, {
|
1610
|
-
default:
|
1611
|
-
|
1610
|
+
default: T(() => [
|
1611
|
+
C(E(l.text), 1)
|
1612
1612
|
]),
|
1613
1613
|
_: 2
|
1614
|
-
}, 1032, ["to"])) :
|
1614
|
+
}, 1032, ["to"])) : B("", !0)
|
1615
1615
|
]))), 128))
|
1616
|
-
], 14,
|
1616
|
+
], 14, ua)
|
1617
1617
|
], 64));
|
1618
1618
|
}
|
1619
1619
|
});
|
1620
|
-
const
|
1620
|
+
const la = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI0LjAuMCwgU1ZHIEV4cG9ydCBQ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gtMy45LDQuMWg4LjEKCUM0NTYuOSw4Mi44LDQ1NS4zLDgxLjIsNDUzLDgxLjJ6Ii8+CjxwYXRoIGQ9Ik00ODEuNiwxMDEuNWMtNy44LDAtMTMuNS01LjYtMTMuNS0xMi45YzAtNy4xLDUuNy0xMy4xLDEzLjUtMTMuMWMzLjktMC4yLDcuNiwxLjUsMTAsNC42bC01LjEsNC43Yy0xLjItMS40LTMtMi4zLTQuOS0yLjMKCWMtMy4xLDAtNS4zLDIuNi01LjMsNi4xYzAsMywyLjEsNS45LDUuMyw1LjljMi4zLDAsMy41LTAuOSw0LjktMi41bDUuOSw0LjJDNDg5LjQsOTkuOSw0ODYuNCwxMDEuNSw0ODEuNiwxMDEuNXoiLz4KPHBhdGggZD0iTTUwMy45LDEwMC44Yy01LDAtOC4yLTMuOC04LjItOXYtOWgtMy4xdi02LjZoMy4xVjY1LjloOC45djEwLjJoNC4ydjYuNmgtNC4ydjcuNGMwLDEuOSwxLDMuMiwyLjcsMy4yaDIuMnY3LjRoLTUuNlYxMDAuOHoKCSIvPgo8cG9seWdvbiBwb2ludHM9IjkxLjcsMjAuMiA3Ni4yLDIwLjIgODguNCw4IDgzLjEsMi43IDcxLjUsMTQuMyA3MS41LDAgNjQsMCA2NCwxNC4zIDUyLjMsMi43IDQ3LDggNTkuMiwyMC4yIDQzLjcsMjAuMiA0My43LDI3LjggCgk1OC4xLDI3LjggNDcsMzguOCA1Mi4zLDQ0LjEgNjQsMzIuNSA2NCw0OCA3MS41LDQ4IDcxLjUsMzIuNSA4My4xLDQ0LjEgODguNCwzOC44IDc3LjQsMjcuOCA5MS43LDI3LjggIi8+Cjwvc3ZnPgo=", ca = ["href"], La = ["src"], Ma = ["src"], Sa = /* @__PURE__ */ v({
|
1621
1621
|
__name: "PdapHeader",
|
1622
1622
|
props: {
|
1623
|
-
logoImageSrc: { default:
|
1623
|
+
logoImageSrc: { default: la },
|
1624
1624
|
logoImageAnchorPath: { default: "/" }
|
1625
1625
|
},
|
1626
1626
|
setup(e) {
|
@@ -1633,59 +1633,59 @@ const oa = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idX
|
|
1633
1633
|
function s() {
|
1634
1634
|
a.value && (r.value = a.value.offsetHeight);
|
1635
1635
|
}
|
1636
|
-
return (
|
1636
|
+
return (o, i) => (y(), $("header", {
|
1637
1637
|
ref_key: "el",
|
1638
1638
|
ref: a,
|
1639
1639
|
class: "pdap-header"
|
1640
1640
|
}, [
|
1641
|
-
L(n) ? (y(),
|
1641
|
+
L(n) ? (y(), x(L(se), {
|
1642
1642
|
key: 1,
|
1643
|
-
to:
|
1643
|
+
to: o.logoImageAnchorPath,
|
1644
1644
|
class: "logo"
|
1645
1645
|
}, {
|
1646
|
-
default:
|
1647
|
-
|
1648
|
-
src:
|
1646
|
+
default: T(() => [
|
1647
|
+
w("img", {
|
1648
|
+
src: o.logoImageSrc,
|
1649
1649
|
loading: "lazy",
|
1650
1650
|
width: "250",
|
1651
1651
|
alt: "Police Data Accessibility Project Logo"
|
1652
|
-
}, null, 8,
|
1652
|
+
}, null, 8, Ma)
|
1653
1653
|
]),
|
1654
1654
|
_: 1
|
1655
|
-
}, 8, ["to"])) : (y(),
|
1655
|
+
}, 8, ["to"])) : (y(), $("a", {
|
1656
1656
|
key: 0,
|
1657
|
-
href:
|
1657
|
+
href: o.logoImageAnchorPath,
|
1658
1658
|
class: "logo"
|
1659
1659
|
}, [
|
1660
|
-
|
1661
|
-
src:
|
1660
|
+
w("img", {
|
1661
|
+
src: o.logoImageSrc,
|
1662
1662
|
loading: "lazy",
|
1663
1663
|
width: "250",
|
1664
1664
|
alt: "Police Data Accessibility Project Logo"
|
1665
|
-
}, null, 8,
|
1666
|
-
], 8,
|
1667
|
-
|
1665
|
+
}, null, 8, La)
|
1666
|
+
], 8, ca)),
|
1667
|
+
ne(ia, { "top-position": r.value }, null, 8, ["top-position"])
|
1668
1668
|
], 512));
|
1669
1669
|
}
|
1670
1670
|
});
|
1671
|
-
const
|
1672
|
-
/* @__PURE__ */
|
1673
|
-
/* @__PURE__ */
|
1674
|
-
/* @__PURE__ */
|
1675
|
-
/* @__PURE__ */
|
1671
|
+
const da = /* @__PURE__ */ w("div", { class: "pdap-flex-container" }, [
|
1672
|
+
/* @__PURE__ */ w("h2", { class: "mt-0" }, "Search our database"),
|
1673
|
+
/* @__PURE__ */ w("p", { class: "pb-4 md:pb-8" }, [
|
1674
|
+
/* @__PURE__ */ C(" If you are looking for something specific, we may already be tracking it. "),
|
1675
|
+
/* @__PURE__ */ w("a", { href: "https://pdap.io/data" }, "Learn more about the data here.")
|
1676
1676
|
])
|
1677
|
-
], -1),
|
1677
|
+
], -1), ga = { class: "pdap-quick-search-form h-full max-h-[75-vh] justify-start p-0" }, ja = { class: "max-w-[unset] text-med" }, pa = ["href"], ma = ["href"], za = /* @__PURE__ */ v({
|
1678
1678
|
__name: "QuickSearchForm",
|
1679
1679
|
props: {
|
1680
1680
|
baseUrlForRedirect: { default: "https://data-sources.pdap.io" }
|
1681
1681
|
},
|
1682
1682
|
setup(e) {
|
1683
|
-
const t =
|
1683
|
+
const t = it(), r = e, a = [
|
1684
1684
|
{
|
1685
1685
|
id: "search-term",
|
1686
1686
|
name: "searchTerm",
|
1687
1687
|
label: "What are you looking for?",
|
1688
|
-
type:
|
1688
|
+
type: b.TEXT,
|
1689
1689
|
placeholder: "Enter a keyword, or 'all'",
|
1690
1690
|
value: ""
|
1691
1691
|
},
|
@@ -1693,15 +1693,15 @@ const La = /* @__PURE__ */ f("div", { class: "pdap-flex-container" }, [
|
|
1693
1693
|
id: "location",
|
1694
1694
|
name: "location",
|
1695
1695
|
label: "From where?",
|
1696
|
-
type:
|
1696
|
+
type: b.TEXT,
|
1697
1697
|
placeholder: "Enter a place, or 'all'",
|
1698
1698
|
value: ""
|
1699
1699
|
}
|
1700
1700
|
], n = D(void 0), s = t.getRoutes().some((l) => l.path.includes("/search/"));
|
1701
|
-
function
|
1701
|
+
function o(l) {
|
1702
1702
|
n.value && Object.values(l).some(Boolean) && (n.value = void 0);
|
1703
1703
|
}
|
1704
|
-
function
|
1704
|
+
function i(l) {
|
1705
1705
|
if (Object.values(l).every((p) => !p)) {
|
1706
1706
|
n.value = "Either a search term or a location is required.";
|
1707
1707
|
return;
|
@@ -1711,83 +1711,135 @@ const La = /* @__PURE__ */ f("div", { class: "pdap-flex-container" }, [
|
|
1711
1711
|
`${r.baseUrlForRedirect}/search/${d}/${c}`
|
1712
1712
|
);
|
1713
1713
|
}
|
1714
|
-
return (l, c) => (y(),
|
1715
|
-
|
1716
|
-
|
1717
|
-
|
1714
|
+
return (l, c) => (y(), $(G, null, [
|
1715
|
+
da,
|
1716
|
+
w("div", ga, [
|
1717
|
+
ne(ta, {
|
1718
1718
|
id: "quick-search-form",
|
1719
1719
|
class: "flex flex-wrap gap-x-4",
|
1720
1720
|
error: n.value,
|
1721
1721
|
schema: a,
|
1722
1722
|
name: "quickSearchForm",
|
1723
|
-
onChange:
|
1724
|
-
onSubmit:
|
1723
|
+
onChange: o,
|
1724
|
+
onSubmit: i
|
1725
1725
|
}, {
|
1726
|
-
default:
|
1727
|
-
|
1726
|
+
default: T(() => [
|
1727
|
+
ne(ct, {
|
1728
1728
|
type: "submit",
|
1729
1729
|
class: "flex-grow-0 flex-shrink-0 basis-full max-w-[unset] mt-4"
|
1730
1730
|
}, {
|
1731
|
-
default:
|
1732
|
-
|
1731
|
+
default: T(() => [
|
1732
|
+
C("Search Data Sources")
|
1733
1733
|
]),
|
1734
1734
|
_: 1
|
1735
1735
|
})
|
1736
1736
|
]),
|
1737
1737
|
_: 1
|
1738
1738
|
}, 8, ["error"]),
|
1739
|
-
|
1740
|
-
|
1741
|
-
L(s) ? (y(),
|
1739
|
+
w("p", ja, [
|
1740
|
+
C(" For example, you could search for "),
|
1741
|
+
L(s) ? (y(), x(L(se), {
|
1742
1742
|
key: 0,
|
1743
1743
|
to: "/search/stops/pittsburgh"
|
1744
1744
|
}, {
|
1745
|
-
default:
|
1746
|
-
|
1745
|
+
default: T(() => [
|
1746
|
+
C(" stops in Pittsburgh ")
|
1747
1747
|
]),
|
1748
1748
|
_: 1
|
1749
|
-
})) : (y(),
|
1749
|
+
})) : (y(), $("a", {
|
1750
1750
|
key: 1,
|
1751
1751
|
target: "_blank",
|
1752
1752
|
rel: "noreferrer",
|
1753
1753
|
href: `${r.baseUrlForRedirect}/search/stops/pittsburgh`
|
1754
|
-
}, " stops in Pittsburgh ", 8,
|
1755
|
-
|
1756
|
-
L(s) ? (y(),
|
1754
|
+
}, " stops in Pittsburgh ", 8, pa)),
|
1755
|
+
C(" or "),
|
1756
|
+
L(s) ? (y(), x(L(se), {
|
1757
1757
|
key: 2,
|
1758
1758
|
to: "/search/complaints/all"
|
1759
1759
|
}, {
|
1760
|
-
default:
|
1761
|
-
|
1760
|
+
default: T(() => [
|
1761
|
+
C(" complaints everywhere ")
|
1762
1762
|
]),
|
1763
1763
|
_: 1
|
1764
|
-
})) : (y(),
|
1764
|
+
})) : (y(), $("a", {
|
1765
1765
|
key: 3,
|
1766
1766
|
target: "_blank",
|
1767
1767
|
rel: "noreferrer",
|
1768
1768
|
href: `${r.baseUrlForRedirect}/search/complaints/all`
|
1769
|
-
}, " complaints everywhere ", 8,
|
1770
|
-
|
1769
|
+
}, " complaints everywhere ", 8, ma)),
|
1770
|
+
C(" . ")
|
1771
1771
|
])
|
1772
1772
|
])
|
1773
1773
|
], 64));
|
1774
1774
|
}
|
1775
1775
|
});
|
1776
|
-
const
|
1776
|
+
const ya = ["alt", "src"], Ea = /* @__PURE__ */ v({
|
1777
1777
|
__name: "TileIcon",
|
1778
1778
|
props: {
|
1779
1779
|
imgAltText: {},
|
1780
1780
|
imgSrc: {}
|
1781
1781
|
},
|
1782
1782
|
setup(e) {
|
1783
|
-
return (t, r) => (y(),
|
1783
|
+
return (t, r) => (y(), $("img", {
|
1784
1784
|
class: "pdap-tile-icon",
|
1785
1785
|
alt: t.imgAltText,
|
1786
1786
|
src: t.imgSrc
|
1787
|
-
}, null, 8,
|
1787
|
+
}, null, 8, ya));
|
1788
|
+
}
|
1789
|
+
});
|
1790
|
+
function fa(e) {
|
1791
|
+
const t = [];
|
1792
|
+
for (const r of e.matched) {
|
1793
|
+
const { name: a, path: n, meta: s } = r, o = s.breadcrumbText ?? a;
|
1794
|
+
o && t.push({
|
1795
|
+
text: o,
|
1796
|
+
path: n,
|
1797
|
+
active: !1
|
1798
|
+
});
|
1799
|
+
}
|
1800
|
+
return t.length > 0 && (t[t.length - 1].active = !0), t;
|
1801
|
+
}
|
1802
|
+
const wa = { "aria-label": "Breadcrumb" }, ha = { key: 1 }, $a = /* @__PURE__ */ v({
|
1803
|
+
__name: "PdapBreadcrumbs",
|
1804
|
+
setup(e) {
|
1805
|
+
const t = lt(), r = h(() => fa(t));
|
1806
|
+
return (a, n) => {
|
1807
|
+
const s = ke("router-link");
|
1808
|
+
return y(), $("nav", wa, [
|
1809
|
+
ne(ot, {
|
1810
|
+
class: "pdap-breadcrumbs",
|
1811
|
+
name: "pdap-breadcrumbs",
|
1812
|
+
tag: "ul"
|
1813
|
+
}, {
|
1814
|
+
default: T(() => [
|
1815
|
+
(y(!0), $(G, null, ie(r.value, (o) => (y(), $("li", {
|
1816
|
+
key: o.text,
|
1817
|
+
class: U({ "is-active": o.active })
|
1818
|
+
}, [
|
1819
|
+
o.active ? (y(), $("span", ha, E(o.text), 1)) : (y(), x(s, {
|
1820
|
+
key: 0,
|
1821
|
+
to: o.path
|
1822
|
+
}, {
|
1823
|
+
default: T(() => [
|
1824
|
+
C(E(o.text), 1)
|
1825
|
+
]),
|
1826
|
+
_: 2
|
1827
|
+
}, 1032, ["to"]))
|
1828
|
+
], 2))), 128))
|
1829
|
+
]),
|
1830
|
+
_: 1
|
1831
|
+
})
|
1832
|
+
]);
|
1833
|
+
};
|
1788
1834
|
}
|
1789
1835
|
});
|
1790
|
-
const
|
1836
|
+
const Na = (e, t) => {
|
1837
|
+
const r = e.__vccOpts || e;
|
1838
|
+
for (const [a, n] of t)
|
1839
|
+
r[a] = n;
|
1840
|
+
return r;
|
1841
|
+
}, Oa = /* @__PURE__ */ Na($a, [["__scopeId", "data-v-91ca33c0"]]);
|
1842
|
+
const ba = {
|
1791
1843
|
content: ["./src/**/*.vue", "./src/**/*.css"],
|
1792
1844
|
theme: {
|
1793
1845
|
// Nested within "extend" - extends tailwind theme defaults, only overrides properties named here
|
@@ -1866,17 +1918,18 @@ const Ta = {
|
|
1866
1918
|
}
|
1867
1919
|
};
|
1868
1920
|
export {
|
1869
|
-
|
1870
|
-
|
1871
|
-
|
1872
|
-
|
1873
|
-
|
1874
|
-
|
1875
|
-
|
1876
|
-
|
1877
|
-
|
1878
|
-
|
1879
|
-
|
1880
|
-
|
1881
|
-
|
1921
|
+
Oa as Breadcrumbs,
|
1922
|
+
ct as Button,
|
1923
|
+
Ca as FlexContainer,
|
1924
|
+
Ta as Footer,
|
1925
|
+
ta as Form,
|
1926
|
+
xa as GridContainer,
|
1927
|
+
Ia as GridItem,
|
1928
|
+
Sa as Header,
|
1929
|
+
Gt as Input,
|
1930
|
+
ia as Nav,
|
1931
|
+
b as PdapInputTypes,
|
1932
|
+
za as QuickSearchForm,
|
1933
|
+
Ea as TileIcon,
|
1934
|
+
ba as tailwindConfig
|
1882
1935
|
};
|