pdap-design-system 2.1.2 → 2.1.4
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +28 -18
- package/bin/pdap-design-system-cli.js +1 -0
- package/dist/index.cjs +3 -3
- package/dist/index.js +713 -681
- package/dist/styles.css +1 -1
- package/package.json +9 -4
- package/docs/CONTRIBUTING.md +0 -65
package/dist/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { defineComponent as j, reactive as C, openBlock as v, createElementBlock as
|
2
|
-
import { RouterLink as
|
3
|
-
const
|
1
|
+
import { defineComponent as j, reactive as C, openBlock as v, createElementBlock as x, normalizeClass as X, renderSlot as Z, createBlock as S, resolveDynamicComponent as fe, withCtx as R, inject as ee, resolveComponent as Ve, createVNode as q, createElementVNode as b, Fragment as W, renderList as ge, unref as d, toDisplayString as N, createCommentVNode as B, createTextVNode as k, getCurrentInstance as Ze, ref as P, onBeforeMount as ke, watch as U, isRef as ce, onBeforeUnmount as $e, computed as _, isReactive as Je, isReadonly as Ye, provide as xe, nextTick as te, mergeProps as de, watchEffect as Pe, withModifiers as et, normalizeStyle as he, onMounted as tt } from "vue";
|
2
|
+
import { RouterLink as ze, useRouter as rt } from "vue-router";
|
3
|
+
const at = /* @__PURE__ */ j({
|
4
4
|
__name: "PdapButton",
|
5
5
|
props: {
|
6
6
|
intent: { default: "primary" },
|
@@ -12,14 +12,14 @@ const nt = /* @__PURE__ */ j({
|
|
12
12
|
[`pdap-button-${t.intent}`]: !!t.intent,
|
13
13
|
"pdap-button-loading": t.isLoading
|
14
14
|
});
|
15
|
-
return (
|
16
|
-
class:
|
15
|
+
return (a, n) => (v(), x("button", {
|
16
|
+
class: X(r)
|
17
17
|
}, [
|
18
|
-
|
18
|
+
Z(a.$slots, "default")
|
19
19
|
], 2));
|
20
20
|
}
|
21
21
|
});
|
22
|
-
const
|
22
|
+
const pe = /* @__PURE__ */ j({
|
23
23
|
__name: "FlexContainer",
|
24
24
|
props: {
|
25
25
|
alignment: { default: "start" },
|
@@ -30,40 +30,45 @@ const ke = /* @__PURE__ */ j({
|
|
30
30
|
"pdap-flex-container": !0,
|
31
31
|
[`pdap-flex-container-${e.alignment}`]: !0
|
32
32
|
});
|
33
|
-
return (
|
34
|
-
class:
|
33
|
+
return (a, n) => (v(), S(fe(a.component), {
|
34
|
+
class: X(r)
|
35
35
|
}, {
|
36
|
-
default:
|
37
|
-
|
36
|
+
default: R(() => [
|
37
|
+
Z(a.$slots, "default")
|
38
38
|
]),
|
39
39
|
_: 3
|
40
40
|
}, 8, ["class"]));
|
41
41
|
}
|
42
42
|
});
|
43
|
-
const
|
44
|
-
/* @__PURE__ */
|
45
|
-
/* @__PURE__ */
|
46
|
-
], -1), lt = /* @__PURE__ */
|
47
|
-
/* @__PURE__ */
|
48
|
-
/* @__PURE__ */
|
43
|
+
const nt = { class: "pdap-footer" }, st = { class: "pdap-footer-social-links" }, ot = ["href"], it = /* @__PURE__ */ b("p", { class: "pdap-footer-copyright" }, [
|
44
|
+
/* @__PURE__ */ k(" © 2023 Police Data Accessibility Project"),
|
45
|
+
/* @__PURE__ */ b("br")
|
46
|
+
], -1), lt = /* @__PURE__ */ b("p", { class: "pdap-footer-copyright" }, [
|
47
|
+
/* @__PURE__ */ k(" PDAP is a non-profit. EIN: 85-4207132. "),
|
48
|
+
/* @__PURE__ */ b("a", {
|
49
49
|
href: "https://docs.pdap.io/meta/policy/pdap-privacy-policy",
|
50
|
-
alt: "Privacy Policy"
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
50
|
+
alt: "Privacy Policy",
|
51
|
+
target: "_blank"
|
52
|
+
}, [
|
53
|
+
/* @__PURE__ */ b("br"),
|
54
|
+
/* @__PURE__ */ k(" Privacy Policy "),
|
55
|
+
/* @__PURE__ */ b("i", { class: "fa fa-external-link" })
|
56
|
+
]),
|
57
|
+
/* @__PURE__ */ b("br"),
|
58
|
+
/* @__PURE__ */ b("a", { href: "mailto:contact@pdap.io" }, "contact@pdap.io")
|
59
|
+
], -1), ut = { class: "pdap-footer-widget-links" }, ct = /* @__PURE__ */ b("a", {
|
55
60
|
href: "https://www.guidestar.org/profile/85-4207132",
|
56
61
|
target: "_blank"
|
57
62
|
}, [
|
58
|
-
/* @__PURE__ */
|
59
|
-
], -1), dt = ["href"], pt = ["src"], mt = ["src"],
|
63
|
+
/* @__PURE__ */ b("img", { src: "https://widgets.guidestar.org/gximage2?o=9973356&l=v4" })
|
64
|
+
], -1), dt = ["href"], pt = ["src"], mt = ["src"], ea = /* @__PURE__ */ j({
|
60
65
|
__name: "PdapFooter",
|
61
66
|
props: {
|
62
67
|
logoImageSrc: { default: "node_modules/pdap-design-system/dist/images/acronym.svg" },
|
63
68
|
logoImageAnchorPath: { default: "/" }
|
64
69
|
},
|
65
70
|
setup(e) {
|
66
|
-
const t = e, r =
|
71
|
+
const t = e, r = ee("footerLinks", [
|
67
72
|
{
|
68
73
|
href: "https://github.com/orgs/Police-Data-Accessibility-Project",
|
69
74
|
text: "Github"
|
@@ -80,63 +85,63 @@ const at = { class: "pdap-footer" }, st = { class: "pdap-footer-social-links" },
|
|
80
85
|
path: "/jobs",
|
81
86
|
text: "Jobs"
|
82
87
|
}
|
83
|
-
]),
|
84
|
-
return (
|
85
|
-
const
|
86
|
-
return v(),
|
87
|
-
|
88
|
-
default:
|
89
|
-
|
90
|
-
(v(!0),
|
91
|
-
key:
|
88
|
+
]), a = t.logoImageAnchorPath.startsWith("/");
|
89
|
+
return (n, s) => {
|
90
|
+
const u = Ve("router-link");
|
91
|
+
return v(), x("footer", nt, [
|
92
|
+
q(pe, { alignment: "center" }, {
|
93
|
+
default: R(() => [
|
94
|
+
b("ul", st, [
|
95
|
+
(v(!0), x(W, null, ge(d(r), (l) => (v(), x("li", {
|
96
|
+
key: l.text,
|
92
97
|
class: "pdap-footer-link-container"
|
93
98
|
}, [
|
94
|
-
|
99
|
+
l.href ? (v(), x("a", {
|
95
100
|
key: 0,
|
96
101
|
class: "pdap-footer-social-link",
|
97
|
-
href:
|
102
|
+
href: l.href,
|
98
103
|
target: "_blank",
|
99
104
|
referrerpolicy: "no-referrer"
|
100
|
-
},
|
101
|
-
|
105
|
+
}, N(l.text), 9, ot)) : B("", !0),
|
106
|
+
l.path ? (v(), S(u, {
|
102
107
|
key: 1,
|
103
108
|
"active-class": "pdap-footer-social-link-current",
|
104
109
|
"exact-active-class": "pdap-footer-social-link-current-exact",
|
105
110
|
class: "pdap-footer-social-link",
|
106
|
-
to:
|
111
|
+
to: l.path
|
107
112
|
}, {
|
108
|
-
default:
|
109
|
-
|
113
|
+
default: R(() => [
|
114
|
+
k(N(l.text), 1)
|
110
115
|
]),
|
111
116
|
_: 2
|
112
|
-
}, 1032, ["to"])) :
|
117
|
+
}, 1032, ["to"])) : B("", !0)
|
113
118
|
]))), 128))
|
114
119
|
]),
|
115
120
|
it,
|
116
121
|
lt,
|
117
|
-
|
122
|
+
b("div", ut, [
|
118
123
|
ct,
|
119
|
-
d(
|
124
|
+
d(a) ? (v(), S(u, {
|
120
125
|
key: 1,
|
121
|
-
to:
|
126
|
+
to: n.logoImageAnchorPath,
|
122
127
|
class: "pdap-footer-logo"
|
123
128
|
}, {
|
124
|
-
default:
|
125
|
-
|
126
|
-
src:
|
129
|
+
default: R(() => [
|
130
|
+
b("img", {
|
131
|
+
src: n.logoImageSrc,
|
127
132
|
loading: "lazy",
|
128
133
|
width: "250",
|
129
134
|
alt: "Police Data Accessibility Project Logo"
|
130
135
|
}, null, 8, mt)
|
131
136
|
]),
|
132
137
|
_: 1
|
133
|
-
}, 8, ["to"])) : (v(),
|
138
|
+
}, 8, ["to"])) : (v(), x("a", {
|
134
139
|
key: 0,
|
135
|
-
href:
|
140
|
+
href: n.logoImageAnchorPath,
|
136
141
|
class: "pdap-footer-logo"
|
137
142
|
}, [
|
138
|
-
|
139
|
-
src:
|
143
|
+
b("img", {
|
144
|
+
src: n.logoImageSrc,
|
140
145
|
loading: "lazy",
|
141
146
|
width: "250",
|
142
147
|
alt: "Police Data Accessibility Project Logo"
|
@@ -150,23 +155,23 @@ const at = { class: "pdap-footer" }, st = { class: "pdap-footer-social-links" },
|
|
150
155
|
};
|
151
156
|
}
|
152
157
|
});
|
153
|
-
function
|
158
|
+
function Re(e, t) {
|
154
159
|
var r = Object.keys(e);
|
155
160
|
if (Object.getOwnPropertySymbols) {
|
156
|
-
var
|
157
|
-
t && (
|
158
|
-
return Object.getOwnPropertyDescriptor(e,
|
159
|
-
})), r.push.apply(r,
|
161
|
+
var a = Object.getOwnPropertySymbols(e);
|
162
|
+
t && (a = a.filter(function(n) {
|
163
|
+
return Object.getOwnPropertyDescriptor(e, n).enumerable;
|
164
|
+
})), r.push.apply(r, a);
|
160
165
|
}
|
161
166
|
return r;
|
162
167
|
}
|
163
|
-
function
|
168
|
+
function V(e) {
|
164
169
|
for (var t = 1; t < arguments.length; t++) {
|
165
170
|
var r = arguments[t] != null ? arguments[t] : {};
|
166
|
-
t % 2 ?
|
167
|
-
ft(e,
|
168
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
169
|
-
Object.defineProperty(e,
|
171
|
+
t % 2 ? Re(Object(r), !0).forEach(function(a) {
|
172
|
+
ft(e, a, r[a]);
|
173
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Re(Object(r)).forEach(function(a) {
|
174
|
+
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(r, a));
|
170
175
|
});
|
171
176
|
}
|
172
177
|
return e;
|
@@ -179,9 +184,9 @@ function ft(e, t, r) {
|
|
179
184
|
writable: !0
|
180
185
|
}) : e[t] = r, e;
|
181
186
|
}
|
182
|
-
function
|
187
|
+
function Oe(e) {
|
183
188
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
184
|
-
return Object.keys(e).reduce((r,
|
189
|
+
return Object.keys(e).reduce((r, a) => (t.includes(a) || (r[a] = d(e[a])), r), {});
|
185
190
|
}
|
186
191
|
function re(e) {
|
187
192
|
return typeof e == "function";
|
@@ -189,479 +194,479 @@ function re(e) {
|
|
189
194
|
function gt(e) {
|
190
195
|
return Je(e) || Ye(e);
|
191
196
|
}
|
192
|
-
function
|
193
|
-
let
|
194
|
-
const
|
195
|
-
for (let s = 0; s <
|
196
|
-
if (!n[
|
197
|
+
function Me(e, t, r) {
|
198
|
+
let a = e;
|
199
|
+
const n = t.split(".");
|
200
|
+
for (let s = 0; s < n.length; s++) {
|
201
|
+
if (!a[n[s]])
|
197
202
|
return r;
|
198
|
-
|
203
|
+
a = a[n[s]];
|
199
204
|
}
|
200
|
-
return
|
205
|
+
return a;
|
201
206
|
}
|
202
207
|
function ue(e, t, r) {
|
203
|
-
return _(() => e.some((
|
208
|
+
return _(() => e.some((a) => Me(t, a, {
|
204
209
|
[r]: !1
|
205
210
|
})[r]));
|
206
211
|
}
|
207
|
-
function
|
208
|
-
return _(() => e.reduce((
|
209
|
-
const s =
|
212
|
+
function Ee(e, t, r) {
|
213
|
+
return _(() => e.reduce((a, n) => {
|
214
|
+
const s = Me(t, n, {
|
210
215
|
[r]: !1
|
211
216
|
})[r] || [];
|
212
|
-
return
|
217
|
+
return a.concat(s);
|
213
218
|
}, []));
|
214
219
|
}
|
215
|
-
function
|
216
|
-
return e.call(
|
220
|
+
function De(e, t, r, a) {
|
221
|
+
return e.call(a, d(t), d(r), a);
|
217
222
|
}
|
218
|
-
function
|
223
|
+
function Fe(e) {
|
219
224
|
return e.$valid !== void 0 ? !e.$valid : !e;
|
220
225
|
}
|
221
|
-
function $t(e, t, r,
|
226
|
+
function $t(e, t, r, a, n, s, u) {
|
222
227
|
let {
|
223
|
-
$lazy:
|
224
|
-
$rewardEarly:
|
225
|
-
} =
|
226
|
-
const
|
228
|
+
$lazy: l,
|
229
|
+
$rewardEarly: o
|
230
|
+
} = n, c = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : [], g = arguments.length > 8 ? arguments[8] : void 0, m = arguments.length > 9 ? arguments[9] : void 0, h = arguments.length > 10 ? arguments[10] : void 0;
|
231
|
+
const $ = P(!!a.value), i = P(0);
|
227
232
|
r.value = !1;
|
228
|
-
const
|
229
|
-
if (
|
233
|
+
const p = U([t, a].concat(c, h), () => {
|
234
|
+
if (l && !a.value || o && !m.value && !r.value)
|
230
235
|
return;
|
231
|
-
let
|
236
|
+
let f;
|
232
237
|
try {
|
233
|
-
|
238
|
+
f = De(e, t, g, u);
|
234
239
|
} catch (y) {
|
235
|
-
|
240
|
+
f = Promise.reject(y);
|
236
241
|
}
|
237
|
-
|
238
|
-
|
242
|
+
i.value++, r.value = !!i.value, $.value = !1, Promise.resolve(f).then((y) => {
|
243
|
+
i.value--, r.value = !!i.value, s.value = y, $.value = Fe(y);
|
239
244
|
}).catch((y) => {
|
240
|
-
|
245
|
+
i.value--, r.value = !!i.value, s.value = y, $.value = !0;
|
241
246
|
});
|
242
247
|
}, {
|
243
248
|
immediate: !0,
|
244
249
|
deep: typeof t == "object"
|
245
250
|
});
|
246
251
|
return {
|
247
|
-
$invalid:
|
248
|
-
$unwatch:
|
252
|
+
$invalid: $,
|
253
|
+
$unwatch: p
|
249
254
|
};
|
250
255
|
}
|
251
|
-
function ht(e, t, r,
|
256
|
+
function ht(e, t, r, a, n, s, u, l) {
|
252
257
|
let {
|
253
|
-
$lazy:
|
258
|
+
$lazy: o,
|
254
259
|
$rewardEarly: c
|
255
|
-
} =
|
256
|
-
const
|
257
|
-
if (
|
260
|
+
} = a;
|
261
|
+
const g = () => ({}), m = _(() => {
|
262
|
+
if (o && !r.value || c && !l.value)
|
258
263
|
return !1;
|
259
|
-
let
|
264
|
+
let h = !0;
|
260
265
|
try {
|
261
|
-
const
|
262
|
-
|
263
|
-
} catch (
|
264
|
-
|
266
|
+
const $ = De(e, t, u, s);
|
267
|
+
n.value = $, h = Fe($);
|
268
|
+
} catch ($) {
|
269
|
+
n.value = $;
|
265
270
|
}
|
266
|
-
return
|
271
|
+
return h;
|
267
272
|
});
|
268
273
|
return {
|
269
|
-
$unwatch:
|
270
|
-
$invalid:
|
274
|
+
$unwatch: g,
|
275
|
+
$invalid: m
|
271
276
|
};
|
272
277
|
}
|
273
|
-
function vt(e, t, r,
|
274
|
-
const
|
275
|
-
let
|
278
|
+
function vt(e, t, r, a, n, s, u, l, o, c, g) {
|
279
|
+
const m = P(!1), h = e.$params || {}, $ = P(null);
|
280
|
+
let i, p;
|
276
281
|
e.$async ? {
|
277
|
-
$invalid:
|
278
|
-
$unwatch:
|
279
|
-
} = $t(e.$validator, t,
|
280
|
-
$invalid:
|
281
|
-
$unwatch:
|
282
|
-
} = ht(e.$validator, t, r,
|
283
|
-
const
|
282
|
+
$invalid: i,
|
283
|
+
$unwatch: p
|
284
|
+
} = $t(e.$validator, t, m, r, a, $, n, e.$watchTargets, o, c, g) : {
|
285
|
+
$invalid: i,
|
286
|
+
$unwatch: p
|
287
|
+
} = ht(e.$validator, t, r, a, $, n, o, c);
|
288
|
+
const f = e.$message;
|
284
289
|
return {
|
285
|
-
$message: re(
|
286
|
-
$pending:
|
287
|
-
$invalid:
|
288
|
-
$params:
|
290
|
+
$message: re(f) ? _(() => f(Oe({
|
291
|
+
$pending: m,
|
292
|
+
$invalid: i,
|
293
|
+
$params: Oe(h),
|
289
294
|
$model: t,
|
290
|
-
$response:
|
295
|
+
$response: $,
|
291
296
|
$validator: s,
|
292
|
-
$propertyPath:
|
293
|
-
$property:
|
294
|
-
}))) :
|
295
|
-
$params:
|
296
|
-
$pending:
|
297
|
-
$invalid:
|
298
|
-
$response:
|
299
|
-
$unwatch:
|
297
|
+
$propertyPath: l,
|
298
|
+
$property: u
|
299
|
+
}))) : f || "",
|
300
|
+
$params: h,
|
301
|
+
$pending: m,
|
302
|
+
$invalid: i,
|
303
|
+
$response: $,
|
304
|
+
$unwatch: p
|
300
305
|
};
|
301
306
|
}
|
302
307
|
function yt() {
|
303
308
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
304
|
-
const t = d(e), r = Object.keys(t),
|
305
|
-
let
|
306
|
-
return r.forEach((
|
307
|
-
const
|
309
|
+
const t = d(e), r = Object.keys(t), a = {}, n = {}, s = {};
|
310
|
+
let u = null;
|
311
|
+
return r.forEach((l) => {
|
312
|
+
const o = t[l];
|
308
313
|
switch (!0) {
|
309
|
-
case re(
|
310
|
-
|
314
|
+
case re(o.$validator):
|
315
|
+
a[l] = o;
|
311
316
|
break;
|
312
|
-
case re(
|
313
|
-
|
314
|
-
$validator:
|
317
|
+
case re(o):
|
318
|
+
a[l] = {
|
319
|
+
$validator: o
|
315
320
|
};
|
316
321
|
break;
|
317
|
-
case
|
318
|
-
|
322
|
+
case l === "$validationGroups":
|
323
|
+
u = o;
|
319
324
|
break;
|
320
|
-
case
|
321
|
-
s[
|
325
|
+
case l.startsWith("$"):
|
326
|
+
s[l] = o;
|
322
327
|
break;
|
323
328
|
default:
|
324
|
-
|
329
|
+
n[l] = o;
|
325
330
|
}
|
326
331
|
}), {
|
327
|
-
rules:
|
328
|
-
nestedValidators:
|
332
|
+
rules: a,
|
333
|
+
nestedValidators: n,
|
329
334
|
config: s,
|
330
|
-
validationGroups:
|
335
|
+
validationGroups: u
|
331
336
|
};
|
332
337
|
}
|
333
338
|
const _t = "__root";
|
334
|
-
function bt(e, t, r,
|
335
|
-
const c = Object.keys(e),
|
336
|
-
if (
|
337
|
-
if (!
|
338
|
-
return
|
339
|
-
|
339
|
+
function bt(e, t, r, a, n, s, u, l, o) {
|
340
|
+
const c = Object.keys(e), g = a.get(n, e), m = P(!1), h = P(!1), $ = P(0);
|
341
|
+
if (g) {
|
342
|
+
if (!g.$partial)
|
343
|
+
return g;
|
344
|
+
g.$unwatch(), m.value = g.$dirty.value;
|
340
345
|
}
|
341
|
-
const
|
342
|
-
$dirty:
|
343
|
-
$path:
|
346
|
+
const i = {
|
347
|
+
$dirty: m,
|
348
|
+
$path: n,
|
344
349
|
$touch: () => {
|
345
|
-
|
350
|
+
m.value || (m.value = !0);
|
346
351
|
},
|
347
352
|
$reset: () => {
|
348
|
-
|
353
|
+
m.value && (m.value = !1);
|
349
354
|
},
|
350
355
|
$commit: () => {
|
351
356
|
}
|
352
357
|
};
|
353
|
-
return c.length ? (c.forEach((
|
354
|
-
|
355
|
-
}),
|
356
|
-
$propertyPath:
|
358
|
+
return c.length ? (c.forEach((p) => {
|
359
|
+
i[p] = vt(e[p], t, i.$dirty, s, u, p, r, n, o, h, $);
|
360
|
+
}), i.$externalResults = _(() => l.value ? [].concat(l.value).map((p, f) => ({
|
361
|
+
$propertyPath: n,
|
357
362
|
$property: r,
|
358
363
|
$validator: "$externalResults",
|
359
|
-
$uid: `${
|
360
|
-
$message:
|
364
|
+
$uid: `${n}-externalResult-${f}`,
|
365
|
+
$message: p,
|
361
366
|
$params: {},
|
362
367
|
$response: null,
|
363
368
|
$pending: !1
|
364
|
-
})) : []),
|
365
|
-
const
|
366
|
-
return
|
367
|
-
}),
|
368
|
-
const
|
369
|
+
})) : []), i.$invalid = _(() => {
|
370
|
+
const p = c.some((f) => d(i[f].$invalid));
|
371
|
+
return h.value = p, !!i.$externalResults.value.length || p;
|
372
|
+
}), i.$pending = _(() => c.some((p) => d(i[p].$pending))), i.$error = _(() => i.$dirty.value ? i.$pending.value || i.$invalid.value : !1), i.$silentErrors = _(() => c.filter((p) => d(i[p].$invalid)).map((p) => {
|
373
|
+
const f = i[p];
|
369
374
|
return C({
|
370
|
-
$propertyPath:
|
375
|
+
$propertyPath: n,
|
371
376
|
$property: r,
|
372
|
-
$validator:
|
373
|
-
$uid: `${
|
374
|
-
$message:
|
375
|
-
$params:
|
376
|
-
$response:
|
377
|
-
$pending:
|
377
|
+
$validator: p,
|
378
|
+
$uid: `${n}-${p}`,
|
379
|
+
$message: f.$message,
|
380
|
+
$params: f.$params,
|
381
|
+
$response: f.$response,
|
382
|
+
$pending: f.$pending
|
378
383
|
});
|
379
|
-
}).concat(
|
380
|
-
|
381
|
-
}),
|
382
|
-
|
383
|
-
},
|
384
|
-
}
|
385
|
-
function wt(e, t, r,
|
386
|
-
const
|
387
|
-
return
|
384
|
+
}).concat(i.$externalResults.value)), i.$errors = _(() => i.$dirty.value ? i.$silentErrors.value : []), i.$unwatch = () => c.forEach((p) => {
|
385
|
+
i[p].$unwatch();
|
386
|
+
}), i.$commit = () => {
|
387
|
+
h.value = !0, $.value = Date.now();
|
388
|
+
}, a.set(n, e, i), i) : (g && a.set(n, e, i), i);
|
389
|
+
}
|
390
|
+
function wt(e, t, r, a, n, s, u) {
|
391
|
+
const l = Object.keys(e);
|
392
|
+
return l.length ? l.reduce((o, c) => (o[c] = me({
|
388
393
|
validations: e[c],
|
389
394
|
state: t,
|
390
395
|
key: c,
|
391
396
|
parentKey: r,
|
392
|
-
resultsCache:
|
393
|
-
globalConfig:
|
397
|
+
resultsCache: a,
|
398
|
+
globalConfig: n,
|
394
399
|
instance: s,
|
395
|
-
externalResults:
|
396
|
-
}),
|
400
|
+
externalResults: u
|
401
|
+
}), o), {}) : {};
|
397
402
|
}
|
398
403
|
function xt(e, t, r) {
|
399
|
-
const
|
404
|
+
const a = _(() => [t, r].filter((i) => i).reduce((i, p) => i.concat(Object.values(d(p))), [])), n = _({
|
400
405
|
get() {
|
401
|
-
return e.$dirty.value || (
|
406
|
+
return e.$dirty.value || (a.value.length ? a.value.every((i) => i.$dirty) : !1);
|
402
407
|
},
|
403
|
-
set(
|
404
|
-
e.$dirty.value =
|
408
|
+
set(i) {
|
409
|
+
e.$dirty.value = i;
|
405
410
|
}
|
406
411
|
}), s = _(() => {
|
407
|
-
const
|
408
|
-
return
|
409
|
-
}),
|
410
|
-
const
|
411
|
-
return
|
412
|
-
}),
|
413
|
-
e.$touch(),
|
414
|
-
|
415
|
-
});
|
416
|
-
}, $ = () => {
|
417
|
-
e.$commit(), n.value.forEach((o) => {
|
418
|
-
o.$commit();
|
412
|
+
const i = d(e.$silentErrors) || [], p = a.value.filter((f) => (d(f).$silentErrors || []).length).reduce((f, y) => f.concat(...y.$silentErrors), []);
|
413
|
+
return i.concat(p);
|
414
|
+
}), u = _(() => {
|
415
|
+
const i = d(e.$errors) || [], p = a.value.filter((f) => (d(f).$errors || []).length).reduce((f, y) => f.concat(...y.$errors), []);
|
416
|
+
return i.concat(p);
|
417
|
+
}), l = _(() => a.value.some((i) => i.$invalid) || d(e.$invalid) || !1), o = _(() => a.value.some((i) => d(i.$pending)) || d(e.$pending) || !1), c = _(() => a.value.some((i) => i.$dirty) || a.value.some((i) => i.$anyDirty) || n.value), g = _(() => n.value ? o.value || l.value : !1), m = () => {
|
418
|
+
e.$touch(), a.value.forEach((i) => {
|
419
|
+
i.$touch();
|
419
420
|
});
|
420
421
|
}, h = () => {
|
421
|
-
e.$
|
422
|
-
|
422
|
+
e.$commit(), a.value.forEach((i) => {
|
423
|
+
i.$commit();
|
424
|
+
});
|
425
|
+
}, $ = () => {
|
426
|
+
e.$reset(), a.value.forEach((i) => {
|
427
|
+
i.$reset();
|
423
428
|
});
|
424
429
|
};
|
425
|
-
return
|
426
|
-
$dirty:
|
427
|
-
$errors:
|
428
|
-
$invalid:
|
430
|
+
return a.value.length && a.value.every((i) => i.$dirty) && m(), {
|
431
|
+
$dirty: n,
|
432
|
+
$errors: u,
|
433
|
+
$invalid: l,
|
429
434
|
$anyDirty: c,
|
430
|
-
$error:
|
431
|
-
$pending:
|
432
|
-
$touch:
|
433
|
-
$reset:
|
435
|
+
$error: g,
|
436
|
+
$pending: o,
|
437
|
+
$touch: m,
|
438
|
+
$reset: $,
|
434
439
|
$silentErrors: s,
|
435
|
-
$commit:
|
440
|
+
$commit: h
|
436
441
|
};
|
437
442
|
}
|
438
|
-
function
|
443
|
+
function me(e) {
|
439
444
|
let {
|
440
445
|
validations: t,
|
441
446
|
state: r,
|
442
|
-
key:
|
443
|
-
parentKey:
|
447
|
+
key: a,
|
448
|
+
parentKey: n,
|
444
449
|
childResults: s,
|
445
|
-
resultsCache:
|
446
|
-
globalConfig:
|
447
|
-
instance:
|
450
|
+
resultsCache: u,
|
451
|
+
globalConfig: l = {},
|
452
|
+
instance: o,
|
448
453
|
externalResults: c
|
449
454
|
} = e;
|
450
|
-
const
|
451
|
-
rules:
|
452
|
-
nestedValidators:
|
453
|
-
config:
|
454
|
-
validationGroups:
|
455
|
-
} = yt(t),
|
456
|
-
const
|
457
|
-
return
|
458
|
-
}) : r, y =
|
459
|
-
const
|
460
|
-
return
|
461
|
-
}), se = bt(f,
|
462
|
-
|
463
|
-
let [
|
464
|
-
|
465
|
-
$invalid: ue(
|
466
|
-
$error: ue(
|
467
|
-
$pending: ue(
|
468
|
-
$errors:
|
469
|
-
$silentErrors:
|
455
|
+
const g = n ? `${n}.${a}` : a, {
|
456
|
+
rules: m,
|
457
|
+
nestedValidators: h,
|
458
|
+
config: $,
|
459
|
+
validationGroups: i
|
460
|
+
} = yt(t), p = V(V({}, l), $), f = a ? _(() => {
|
461
|
+
const w = d(r);
|
462
|
+
return w ? d(w[a]) : void 0;
|
463
|
+
}) : r, y = V({}, d(c) || {}), A = _(() => {
|
464
|
+
const w = d(c);
|
465
|
+
return a ? w ? d(w[a]) : void 0 : w;
|
466
|
+
}), se = bt(m, f, a, u, g, p, o, A, r), E = wt(h, f, g, u, p, o, A), D = {};
|
467
|
+
i && Object.entries(i).forEach((w) => {
|
468
|
+
let [F, L] = w;
|
469
|
+
D[F] = {
|
470
|
+
$invalid: ue(L, E, "$invalid"),
|
471
|
+
$error: ue(L, E, "$error"),
|
472
|
+
$pending: ue(L, E, "$pending"),
|
473
|
+
$errors: Ee(L, E, "$errors"),
|
474
|
+
$silentErrors: Ee(L, E, "$silentErrors")
|
470
475
|
};
|
471
476
|
});
|
472
477
|
const {
|
473
|
-
$dirty:
|
474
|
-
$errors:
|
478
|
+
$dirty: I,
|
479
|
+
$errors: J,
|
475
480
|
$invalid: oe,
|
476
|
-
$anyDirty:
|
477
|
-
$error:
|
481
|
+
$anyDirty: Be,
|
482
|
+
$error: He,
|
478
483
|
$pending: ie,
|
479
484
|
$touch: le,
|
480
|
-
$reset:
|
481
|
-
$silentErrors:
|
482
|
-
$commit:
|
483
|
-
} = xt(se,
|
484
|
-
get: () => d(
|
485
|
-
set: (
|
486
|
-
|
487
|
-
const
|
488
|
-
|
485
|
+
$reset: Ge,
|
486
|
+
$silentErrors: Xe,
|
487
|
+
$commit: we
|
488
|
+
} = xt(se, E, s), We = a ? _({
|
489
|
+
get: () => d(f),
|
490
|
+
set: (w) => {
|
491
|
+
I.value = !0;
|
492
|
+
const F = d(r), L = d(c);
|
493
|
+
L && (L[a] = y[a]), ce(F[a]) ? F[a].value = w : F[a] = w;
|
489
494
|
}
|
490
495
|
}) : null;
|
491
|
-
|
492
|
-
|
493
|
-
const
|
494
|
-
|
496
|
+
a && p.$autoDirty && U(f, () => {
|
497
|
+
I.value || le();
|
498
|
+
const w = d(c);
|
499
|
+
w && (w[a] = y[a]);
|
495
500
|
}, {
|
496
501
|
flush: "sync"
|
497
502
|
});
|
498
|
-
async function
|
499
|
-
return le(),
|
503
|
+
async function Ue() {
|
504
|
+
return le(), p.$rewardEarly && (we(), await te()), await te(), new Promise((w) => {
|
500
505
|
if (!ie.value)
|
501
|
-
return
|
502
|
-
const
|
503
|
-
|
506
|
+
return w(!oe.value);
|
507
|
+
const F = U(ie, () => {
|
508
|
+
w(!oe.value), F();
|
504
509
|
});
|
505
510
|
});
|
506
511
|
}
|
507
|
-
function
|
508
|
-
return (s.value || {})[
|
512
|
+
function Ke(w) {
|
513
|
+
return (s.value || {})[w];
|
509
514
|
}
|
510
|
-
function
|
511
|
-
ce(c) ? c.value = y : Object.keys(y).length === 0 ? Object.keys(c).forEach((
|
512
|
-
delete c[
|
515
|
+
function Qe() {
|
516
|
+
ce(c) ? c.value = y : Object.keys(y).length === 0 ? Object.keys(c).forEach((w) => {
|
517
|
+
delete c[w];
|
513
518
|
}) : Object.assign(c, y);
|
514
519
|
}
|
515
|
-
return C(
|
516
|
-
$model:
|
517
|
-
$dirty:
|
518
|
-
$error:
|
519
|
-
$errors:
|
520
|
+
return C(V(V(V({}, se), {}, {
|
521
|
+
$model: We,
|
522
|
+
$dirty: I,
|
523
|
+
$error: He,
|
524
|
+
$errors: J,
|
520
525
|
$invalid: oe,
|
521
|
-
$anyDirty:
|
526
|
+
$anyDirty: Be,
|
522
527
|
$pending: ie,
|
523
528
|
$touch: le,
|
524
|
-
$reset:
|
525
|
-
$path:
|
526
|
-
$silentErrors:
|
527
|
-
$validate:
|
528
|
-
$commit:
|
529
|
+
$reset: Ge,
|
530
|
+
$path: g || _t,
|
531
|
+
$silentErrors: Xe,
|
532
|
+
$validate: Ue,
|
533
|
+
$commit: we
|
529
534
|
}, s && {
|
530
|
-
$getResultsForChild:
|
531
|
-
$clearExternalResults:
|
532
|
-
$validationGroups:
|
533
|
-
}),
|
535
|
+
$getResultsForChild: Ke,
|
536
|
+
$clearExternalResults: Qe,
|
537
|
+
$validationGroups: D
|
538
|
+
}), E));
|
534
539
|
}
|
535
540
|
class Pt {
|
536
541
|
constructor() {
|
537
542
|
this.storage = /* @__PURE__ */ new Map();
|
538
543
|
}
|
539
|
-
set(t, r,
|
544
|
+
set(t, r, a) {
|
540
545
|
this.storage.set(t, {
|
541
546
|
rules: r,
|
542
|
-
result:
|
547
|
+
result: a
|
543
548
|
});
|
544
549
|
}
|
545
|
-
checkRulesValidity(t, r,
|
546
|
-
const
|
547
|
-
return s.length !==
|
550
|
+
checkRulesValidity(t, r, a) {
|
551
|
+
const n = Object.keys(a), s = Object.keys(r);
|
552
|
+
return s.length !== n.length || !s.every((l) => n.includes(l)) ? !1 : s.every((l) => r[l].$params ? Object.keys(r[l].$params).every((o) => d(a[l].$params[o]) === d(r[l].$params[o])) : !0);
|
548
553
|
}
|
549
554
|
get(t, r) {
|
550
|
-
const
|
551
|
-
if (!
|
555
|
+
const a = this.storage.get(t);
|
556
|
+
if (!a)
|
552
557
|
return;
|
553
558
|
const {
|
554
|
-
rules:
|
559
|
+
rules: n,
|
555
560
|
result: s
|
556
|
-
} =
|
557
|
-
return
|
561
|
+
} = a, u = this.checkRulesValidity(t, r, n), l = s.$unwatch ? s.$unwatch : () => ({});
|
562
|
+
return u ? s : {
|
558
563
|
$dirty: s.$dirty,
|
559
564
|
$partial: !0,
|
560
|
-
$unwatch:
|
565
|
+
$unwatch: l
|
561
566
|
};
|
562
567
|
}
|
563
568
|
}
|
564
|
-
const
|
569
|
+
const Y = {
|
565
570
|
COLLECT_ALL: !0,
|
566
571
|
COLLECT_NONE: !1
|
567
|
-
},
|
572
|
+
}, Ce = Symbol("vuelidate#injectChildResults"), je = Symbol("vuelidate#removeChildResults");
|
568
573
|
function Rt(e) {
|
569
574
|
let {
|
570
575
|
$scope: t,
|
571
576
|
instance: r
|
572
577
|
} = e;
|
573
|
-
const
|
574
|
-
function
|
578
|
+
const a = {}, n = P([]), s = _(() => n.value.reduce((g, m) => (g[m] = d(a[m]), g), {}));
|
579
|
+
function u(g, m) {
|
575
580
|
let {
|
576
|
-
$registerAs:
|
577
|
-
$scope:
|
578
|
-
$stopPropagation:
|
579
|
-
} =
|
580
|
-
|
581
|
+
$registerAs: h,
|
582
|
+
$scope: $,
|
583
|
+
$stopPropagation: i
|
584
|
+
} = m;
|
585
|
+
i || t === Y.COLLECT_NONE || $ === Y.COLLECT_NONE || t !== Y.COLLECT_ALL && t !== $ || (a[h] = g, n.value.push(h));
|
581
586
|
}
|
582
|
-
r.__vuelidateInjectInstances = [].concat(r.__vuelidateInjectInstances || [],
|
583
|
-
function
|
584
|
-
|
587
|
+
r.__vuelidateInjectInstances = [].concat(r.__vuelidateInjectInstances || [], u);
|
588
|
+
function l(g) {
|
589
|
+
n.value = n.value.filter((m) => m !== g), delete a[g];
|
585
590
|
}
|
586
|
-
r.__vuelidateRemoveInstances = [].concat(r.__vuelidateRemoveInstances || [],
|
587
|
-
const
|
588
|
-
|
589
|
-
const c =
|
590
|
-
return
|
591
|
+
r.__vuelidateRemoveInstances = [].concat(r.__vuelidateRemoveInstances || [], l);
|
592
|
+
const o = ee(Ce, []);
|
593
|
+
xe(Ce, r.__vuelidateInjectInstances);
|
594
|
+
const c = ee(je, []);
|
595
|
+
return xe(je, r.__vuelidateRemoveInstances), {
|
591
596
|
childResults: s,
|
592
|
-
sendValidationResultsToParent:
|
597
|
+
sendValidationResultsToParent: o,
|
593
598
|
removeValidationResultsFromParent: c
|
594
599
|
};
|
595
600
|
}
|
596
|
-
function
|
601
|
+
function qe(e) {
|
597
602
|
return new Proxy(e, {
|
598
603
|
get(t, r) {
|
599
|
-
return typeof t[r] == "object" ?
|
604
|
+
return typeof t[r] == "object" ? qe(t[r]) : _(() => t[r]);
|
600
605
|
}
|
601
606
|
});
|
602
607
|
}
|
603
|
-
let
|
608
|
+
let Ae = 0;
|
604
609
|
function Ot(e, t) {
|
605
610
|
var r;
|
606
|
-
let
|
607
|
-
arguments.length === 1 && (
|
611
|
+
let a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
612
|
+
arguments.length === 1 && (a = e, e = void 0, t = void 0);
|
608
613
|
let {
|
609
|
-
$registerAs:
|
610
|
-
$scope: s =
|
611
|
-
$stopPropagation:
|
612
|
-
$externalResults:
|
613
|
-
currentVueInstance:
|
614
|
-
} =
|
615
|
-
const c =
|
616
|
-
|
617
|
-
const
|
618
|
-
childResults:
|
619
|
-
sendValidationResultsToParent:
|
620
|
-
removeValidationResultsFromParent:
|
614
|
+
$registerAs: n,
|
615
|
+
$scope: s = Y.COLLECT_ALL,
|
616
|
+
$stopPropagation: u,
|
617
|
+
$externalResults: l,
|
618
|
+
currentVueInstance: o
|
619
|
+
} = a;
|
620
|
+
const c = o || ((r = Ze()) === null || r === void 0 ? void 0 : r.proxy), g = c ? c.$options : {};
|
621
|
+
n || (Ae += 1, n = `_vuelidate_${Ae}`);
|
622
|
+
const m = P({}), h = new Pt(), {
|
623
|
+
childResults: $,
|
624
|
+
sendValidationResultsToParent: i,
|
625
|
+
removeValidationResultsFromParent: p
|
621
626
|
} = c ? Rt({
|
622
627
|
$scope: s,
|
623
628
|
instance: c
|
624
629
|
}) : {
|
625
630
|
childResults: P({})
|
626
631
|
};
|
627
|
-
if (!e &&
|
628
|
-
const
|
629
|
-
t = P({}),
|
630
|
-
t.value = c,
|
631
|
-
|
632
|
+
if (!e && g.validations) {
|
633
|
+
const f = g.validations;
|
634
|
+
t = P({}), ke(() => {
|
635
|
+
t.value = c, U(() => re(f) ? f.call(t.value, new qe(t.value)) : f, (y) => {
|
636
|
+
m.value = me({
|
632
637
|
validations: y,
|
633
638
|
state: t,
|
634
|
-
childResults:
|
635
|
-
resultsCache:
|
636
|
-
globalConfig:
|
639
|
+
childResults: $,
|
640
|
+
resultsCache: h,
|
641
|
+
globalConfig: a,
|
637
642
|
instance: c,
|
638
|
-
externalResults:
|
643
|
+
externalResults: l || c.vuelidateExternalResults
|
639
644
|
});
|
640
645
|
}, {
|
641
646
|
immediate: !0
|
642
647
|
});
|
643
|
-
}),
|
648
|
+
}), a = g.validationsConfig || a;
|
644
649
|
} else {
|
645
|
-
const
|
646
|
-
|
647
|
-
|
650
|
+
const f = ce(e) || gt(e) ? e : C(e || {});
|
651
|
+
U(f, (y) => {
|
652
|
+
m.value = me({
|
648
653
|
validations: y,
|
649
654
|
state: t,
|
650
|
-
childResults:
|
651
|
-
resultsCache:
|
652
|
-
globalConfig:
|
655
|
+
childResults: $,
|
656
|
+
resultsCache: h,
|
657
|
+
globalConfig: a,
|
653
658
|
instance: c ?? {},
|
654
|
-
externalResults:
|
659
|
+
externalResults: l
|
655
660
|
});
|
656
661
|
}, {
|
657
662
|
immediate: !0
|
658
663
|
});
|
659
664
|
}
|
660
|
-
return c && (
|
661
|
-
$registerAs:
|
665
|
+
return c && (i.forEach((f) => f(m, {
|
666
|
+
$registerAs: n,
|
662
667
|
$scope: s,
|
663
|
-
$stopPropagation:
|
664
|
-
})),
|
668
|
+
$stopPropagation: u
|
669
|
+
})), $e(() => p.forEach((f) => f(n)))), _(() => V(V({}, d(m.value)), $.value));
|
665
670
|
}
|
666
671
|
var T = /* @__PURE__ */ ((e) => (e.CHECKBOX = "checkbox", e.TEXT = "text", e))(T || {});
|
667
672
|
const Et = ["id", "name", "placeholder", "value"], Ct = ["id", "name", "checked", "value"], jt = ["id"], At = ["for"], Tt = /* @__PURE__ */ j({
|
@@ -678,68 +683,68 @@ const Et = ["id", "name", "placeholder", "value"], Ct = ["id", "name", "checked"
|
|
678
683
|
},
|
679
684
|
emits: ["change", "input"],
|
680
685
|
setup(e, { emit: t }) {
|
681
|
-
const r = e,
|
682
|
-
|
683
|
-
}, s = (
|
684
|
-
|
685
|
-
},
|
686
|
-
return (
|
687
|
-
var
|
688
|
-
return v(),
|
689
|
-
class:
|
686
|
+
const r = e, a = t, n = () => {
|
687
|
+
u.value = !u.value, a("change", u.value.toString());
|
688
|
+
}, s = (o) => {
|
689
|
+
a("input", o.target.value);
|
690
|
+
}, u = P(r.defaultChecked), l = _(() => `pdap-${r.name}-input-error`);
|
691
|
+
return (o, c) => {
|
692
|
+
var g;
|
693
|
+
return v(), S(d(Dr), {
|
694
|
+
class: X({
|
690
695
|
"pdap-input": !0,
|
691
|
-
"pdap-input-error": Number((
|
696
|
+
"pdap-input-error": Number((g = o.error) == null ? void 0 : g.length) >= 1
|
692
697
|
})
|
693
698
|
}, {
|
694
|
-
default:
|
695
|
-
|
699
|
+
default: R(() => [
|
700
|
+
o.type === d(T).TEXT ? (v(), x("input", de({
|
696
701
|
key: 0,
|
697
|
-
id:
|
702
|
+
id: o.id,
|
698
703
|
type: "text",
|
699
|
-
name:
|
700
|
-
placeholder:
|
701
|
-
value:
|
702
|
-
},
|
704
|
+
name: o.name,
|
705
|
+
placeholder: o.placeholder,
|
706
|
+
value: o.value
|
707
|
+
}, o.$attrs, { onInput: s }), null, 16, Et)) : o.type === d(T).CHECKBOX ? (v(), x("input", de({
|
703
708
|
key: 1,
|
704
|
-
id:
|
709
|
+
id: o.id,
|
705
710
|
class: "pdap-input-checkbox",
|
706
|
-
name:
|
707
|
-
checked:
|
711
|
+
name: o.name,
|
712
|
+
checked: u.value,
|
708
713
|
type: "checkbox",
|
709
|
-
value:
|
710
|
-
},
|
711
|
-
|
714
|
+
value: o.value
|
715
|
+
}, o.$attrs, { onChange: n }), null, 16, Ct)) : B("", !0),
|
716
|
+
o.error ? (v(), x("div", {
|
712
717
|
key: 2,
|
713
|
-
id:
|
718
|
+
id: l.value,
|
714
719
|
class: "pdap-input-error-message"
|
715
|
-
},
|
716
|
-
|
720
|
+
}, N(o.error), 9, jt)) : B("", !0),
|
721
|
+
b("label", {
|
717
722
|
class: "pdap-input-label",
|
718
|
-
for:
|
719
|
-
},
|
723
|
+
for: o.id
|
724
|
+
}, N(o.label), 9, At)
|
720
725
|
]),
|
721
726
|
_: 1
|
722
727
|
}, 8, ["class"]);
|
723
728
|
};
|
724
729
|
}
|
725
730
|
});
|
726
|
-
function
|
731
|
+
function Te(e, t) {
|
727
732
|
var r = Object.keys(e);
|
728
733
|
if (Object.getOwnPropertySymbols) {
|
729
|
-
var
|
730
|
-
t && (
|
731
|
-
return Object.getOwnPropertyDescriptor(e,
|
732
|
-
})), r.push.apply(r,
|
734
|
+
var a = Object.getOwnPropertySymbols(e);
|
735
|
+
t && (a = a.filter(function(n) {
|
736
|
+
return Object.getOwnPropertyDescriptor(e, n).enumerable;
|
737
|
+
})), r.push.apply(r, a);
|
733
738
|
}
|
734
739
|
return r;
|
735
740
|
}
|
736
|
-
function
|
741
|
+
function G(e) {
|
737
742
|
for (var t = 1; t < arguments.length; t++) {
|
738
743
|
var r = arguments[t] != null ? arguments[t] : {};
|
739
|
-
t % 2 ?
|
740
|
-
St(e,
|
741
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
742
|
-
Object.defineProperty(e,
|
744
|
+
t % 2 ? Te(Object(r), !0).forEach(function(a) {
|
745
|
+
St(e, a, r[a]);
|
746
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Te(Object(r)).forEach(function(a) {
|
747
|
+
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(r, a));
|
743
748
|
});
|
744
749
|
}
|
745
750
|
return e;
|
@@ -752,46 +757,46 @@ function St(e, t, r) {
|
|
752
757
|
writable: !0
|
753
758
|
}) : e[t] = r, e;
|
754
759
|
}
|
755
|
-
function
|
760
|
+
function K(e) {
|
756
761
|
return typeof e == "function";
|
757
762
|
}
|
758
|
-
function
|
763
|
+
function ae(e) {
|
759
764
|
return e !== null && typeof e == "object" && !Array.isArray(e);
|
760
765
|
}
|
761
|
-
function
|
762
|
-
return
|
766
|
+
function ne(e) {
|
767
|
+
return K(e.$validator) ? G({}, e) : {
|
763
768
|
$validator: e
|
764
769
|
};
|
765
770
|
}
|
766
771
|
function It(e) {
|
767
|
-
return
|
772
|
+
return ae(e) && K(e.then);
|
768
773
|
}
|
769
|
-
function
|
774
|
+
function z(e) {
|
770
775
|
return typeof e == "object" ? e.$valid : e;
|
771
776
|
}
|
772
|
-
function
|
777
|
+
function H(e) {
|
773
778
|
return e.$validator || e;
|
774
779
|
}
|
775
|
-
function
|
776
|
-
if (!
|
780
|
+
function ve(e, t) {
|
781
|
+
if (!ae(e))
|
777
782
|
throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof e}`);
|
778
|
-
if (!
|
783
|
+
if (!ae(t) && !K(t))
|
779
784
|
throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");
|
780
|
-
const r =
|
781
|
-
return r.$params =
|
785
|
+
const r = ne(t);
|
786
|
+
return r.$params = G(G({}, r.$params || {}), e), r;
|
782
787
|
}
|
783
|
-
function
|
784
|
-
if (!
|
788
|
+
function Q(e, t) {
|
789
|
+
if (!K(e) && typeof d(e) != "string")
|
785
790
|
throw new Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof e}`);
|
786
|
-
if (!
|
791
|
+
if (!ae(t) && !K(t))
|
787
792
|
throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");
|
788
|
-
const r =
|
793
|
+
const r = ne(t);
|
789
794
|
return r.$message = e, r;
|
790
795
|
}
|
791
796
|
function Lt(e) {
|
792
797
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
793
|
-
const r =
|
794
|
-
return
|
798
|
+
const r = ne(e);
|
799
|
+
return G(G({}, r), {}, {
|
795
800
|
$async: !0,
|
796
801
|
$watchTargets: t
|
797
802
|
});
|
@@ -799,45 +804,45 @@ function Lt(e) {
|
|
799
804
|
function Vt(e) {
|
800
805
|
return {
|
801
806
|
$validator(t) {
|
802
|
-
for (var r = arguments.length,
|
803
|
-
n
|
804
|
-
return d(t).reduce((s,
|
805
|
-
const
|
806
|
-
let [
|
807
|
-
const
|
808
|
-
let [y,
|
809
|
-
const
|
810
|
-
if (
|
811
|
-
let
|
812
|
-
const
|
813
|
-
typeof
|
807
|
+
for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
808
|
+
a[n - 1] = arguments[n];
|
809
|
+
return d(t).reduce((s, u, l) => {
|
810
|
+
const o = Object.entries(u).reduce((c, g) => {
|
811
|
+
let [m, h] = g;
|
812
|
+
const $ = e[m] || {}, i = Object.entries($).reduce((p, f) => {
|
813
|
+
let [y, A] = f;
|
814
|
+
const E = H(A).call(this, h, u, l, ...a), D = z(E);
|
815
|
+
if (p.$data[y] = E, p.$data.$invalid = !D || !!p.$data.$invalid, p.$data.$error = p.$data.$invalid, !D) {
|
816
|
+
let I = A.$message || "";
|
817
|
+
const J = A.$params || {};
|
818
|
+
typeof I == "function" && (I = I({
|
814
819
|
$pending: !1,
|
815
|
-
$invalid: !
|
816
|
-
$params:
|
817
|
-
$model:
|
818
|
-
$response:
|
819
|
-
})),
|
820
|
-
$property:
|
821
|
-
$message:
|
822
|
-
$params:
|
823
|
-
$response:
|
824
|
-
$model:
|
820
|
+
$invalid: !D,
|
821
|
+
$params: J,
|
822
|
+
$model: h,
|
823
|
+
$response: E
|
824
|
+
})), p.$errors.push({
|
825
|
+
$property: m,
|
826
|
+
$message: I,
|
827
|
+
$params: J,
|
828
|
+
$response: E,
|
829
|
+
$model: h,
|
825
830
|
$pending: !1,
|
826
831
|
$validator: y
|
827
832
|
});
|
828
833
|
}
|
829
834
|
return {
|
830
|
-
$valid:
|
831
|
-
$data:
|
832
|
-
$errors:
|
835
|
+
$valid: p.$valid && D,
|
836
|
+
$data: p.$data,
|
837
|
+
$errors: p.$errors
|
833
838
|
};
|
834
839
|
}, {
|
835
840
|
$valid: !0,
|
836
841
|
$data: {},
|
837
842
|
$errors: []
|
838
843
|
});
|
839
|
-
return c.$data[
|
840
|
-
$valid: c.$valid &&
|
844
|
+
return c.$data[m] = i.$data, c.$errors[m] = i.$errors, {
|
845
|
+
$valid: c.$valid && i.$valid,
|
841
846
|
$data: c.$data,
|
842
847
|
$errors: c.$errors
|
843
848
|
};
|
@@ -847,9 +852,9 @@ function Vt(e) {
|
|
847
852
|
$errors: {}
|
848
853
|
});
|
849
854
|
return {
|
850
|
-
$valid: s.$valid &&
|
851
|
-
$data: s.$data.concat(
|
852
|
-
$errors: s.$errors.concat(
|
855
|
+
$valid: s.$valid && o.$valid,
|
856
|
+
$data: s.$data.concat(o.$data),
|
857
|
+
$errors: s.$errors.concat(o.$errors)
|
853
858
|
};
|
854
859
|
}, {
|
855
860
|
$valid: !0,
|
@@ -861,11 +866,11 @@ function Vt(e) {
|
|
861
866
|
let {
|
862
867
|
$response: r
|
863
868
|
} = t;
|
864
|
-
return r ? r.$errors.map((
|
869
|
+
return r ? r.$errors.map((a) => Object.values(a).map((n) => n.map((s) => s.$message)).reduce((n, s) => n.concat(s), [])) : [];
|
865
870
|
}
|
866
871
|
};
|
867
872
|
}
|
868
|
-
const
|
873
|
+
const O = (e) => {
|
869
874
|
if (e = d(e), Array.isArray(e))
|
870
875
|
return !!e.length;
|
871
876
|
if (e == null)
|
@@ -880,38 +885,38 @@ const R = (e) => {
|
|
880
885
|
return !1;
|
881
886
|
}
|
882
887
|
return !!String(e).length;
|
883
|
-
},
|
884
|
-
function
|
888
|
+
}, ye = (e) => (e = d(e), Array.isArray(e) ? e.length : typeof e == "object" ? Object.keys(e).length : String(e).length);
|
889
|
+
function M() {
|
885
890
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
886
891
|
t[r] = arguments[r];
|
887
|
-
return (
|
892
|
+
return (a) => (a = d(a), !O(a) || t.every((n) => (n.lastIndex = 0, n.test(a))));
|
888
893
|
}
|
889
|
-
var
|
894
|
+
var _e = /* @__PURE__ */ Object.freeze({
|
890
895
|
__proto__: null,
|
891
896
|
forEach: Vt,
|
892
|
-
len:
|
893
|
-
normalizeValidatorObject:
|
894
|
-
regex:
|
895
|
-
req:
|
897
|
+
len: ye,
|
898
|
+
normalizeValidatorObject: ne,
|
899
|
+
regex: M,
|
900
|
+
req: O,
|
896
901
|
unwrap: d,
|
897
|
-
unwrapNormalizedValidator:
|
898
|
-
unwrapValidatorResponse:
|
902
|
+
unwrapNormalizedValidator: H,
|
903
|
+
unwrapValidatorResponse: z,
|
899
904
|
withAsync: Lt,
|
900
|
-
withMessage:
|
901
|
-
withParams:
|
902
|
-
}), kt =
|
905
|
+
withMessage: Q,
|
906
|
+
withParams: ve
|
907
|
+
}), kt = M(/^[a-zA-Z]*$/), zt = {
|
903
908
|
$validator: kt,
|
904
909
|
$message: "The value is not alphabetical",
|
905
910
|
$params: {
|
906
911
|
type: "alpha"
|
907
912
|
}
|
908
|
-
}, Mt =
|
913
|
+
}, Mt = M(/^[a-zA-Z0-9]*$/), Dt = {
|
909
914
|
$validator: Mt,
|
910
915
|
$message: "The value must be alpha-numeric",
|
911
916
|
$params: {
|
912
917
|
type: "alphaNum"
|
913
918
|
}
|
914
|
-
}, Ft =
|
919
|
+
}, Ft = M(/^\d*(\.\d+)?$/), qt = {
|
915
920
|
$validator: Ft,
|
916
921
|
$message: "Value must be numeric",
|
917
922
|
$params: {
|
@@ -919,16 +924,16 @@ var ye = /* @__PURE__ */ Object.freeze({
|
|
919
924
|
}
|
920
925
|
};
|
921
926
|
function Nt(e, t) {
|
922
|
-
return (r) => !
|
927
|
+
return (r) => !O(r) || (!/\s/.test(r) || r instanceof Date) && +d(e) <= +r && +d(t) >= +r;
|
923
928
|
}
|
924
929
|
function Bt(e, t) {
|
925
930
|
return {
|
926
931
|
$validator: Nt(e, t),
|
927
932
|
$message: (r) => {
|
928
933
|
let {
|
929
|
-
$params:
|
934
|
+
$params: a
|
930
935
|
} = r;
|
931
|
-
return `The value must be between ${
|
936
|
+
return `The value must be between ${a.min} and ${a.max}`;
|
932
937
|
},
|
933
938
|
$params: {
|
934
939
|
min: e,
|
@@ -938,7 +943,7 @@ function Bt(e, t) {
|
|
938
943
|
};
|
939
944
|
}
|
940
945
|
const Ht = /^(?:[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;
|
941
|
-
var Gt =
|
946
|
+
var Gt = M(Ht), Xt = {
|
942
947
|
$validator: Gt,
|
943
948
|
$message: "Value is not a valid email address",
|
944
949
|
$params: {
|
@@ -946,7 +951,7 @@ var Gt = k(Ht), Xt = {
|
|
946
951
|
}
|
947
952
|
};
|
948
953
|
function Wt(e) {
|
949
|
-
if (!
|
954
|
+
if (!O(e))
|
950
955
|
return !0;
|
951
956
|
if (typeof e != "string")
|
952
957
|
return !1;
|
@@ -969,7 +974,7 @@ var Kt = {
|
|
969
974
|
function Qt() {
|
970
975
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ":";
|
971
976
|
return (t) => {
|
972
|
-
if (e = d(e), !
|
977
|
+
if (e = d(e), !O(t))
|
973
978
|
return !0;
|
974
979
|
if (typeof t != "string")
|
975
980
|
return !1;
|
@@ -988,7 +993,7 @@ function Jt(e) {
|
|
988
993
|
};
|
989
994
|
}
|
990
995
|
function Yt(e) {
|
991
|
-
return (t) => !
|
996
|
+
return (t) => !O(t) || ye(t) <= d(e);
|
992
997
|
}
|
993
998
|
function er(e) {
|
994
999
|
return {
|
@@ -1006,7 +1011,7 @@ function er(e) {
|
|
1006
1011
|
};
|
1007
1012
|
}
|
1008
1013
|
function tr(e) {
|
1009
|
-
return (t) => !
|
1014
|
+
return (t) => !O(t) || ye(t) >= d(e);
|
1010
1015
|
}
|
1011
1016
|
function rr(e) {
|
1012
1017
|
return {
|
@@ -1023,28 +1028,28 @@ function rr(e) {
|
|
1023
1028
|
}
|
1024
1029
|
};
|
1025
1030
|
}
|
1026
|
-
function
|
1027
|
-
return typeof e == "string" && (e = e.trim()),
|
1031
|
+
function ar(e) {
|
1032
|
+
return typeof e == "string" && (e = e.trim()), O(e);
|
1028
1033
|
}
|
1029
|
-
var
|
1030
|
-
$validator:
|
1034
|
+
var be = {
|
1035
|
+
$validator: ar,
|
1031
1036
|
$message: "Value is required",
|
1032
1037
|
$params: {
|
1033
1038
|
type: "required"
|
1034
1039
|
}
|
1035
1040
|
};
|
1036
|
-
const
|
1037
|
-
function
|
1041
|
+
const Se = (e, t) => e ? O(typeof t == "string" ? t.trim() : t) : !0;
|
1042
|
+
function nr(e) {
|
1038
1043
|
return function(t, r) {
|
1039
1044
|
if (typeof e != "function")
|
1040
|
-
return
|
1041
|
-
const
|
1042
|
-
return
|
1045
|
+
return Se(d(e), t);
|
1046
|
+
const a = e.call(this, t, r);
|
1047
|
+
return Se(a, t);
|
1043
1048
|
};
|
1044
1049
|
}
|
1045
1050
|
function sr(e) {
|
1046
1051
|
return {
|
1047
|
-
$validator:
|
1052
|
+
$validator: nr(e),
|
1048
1053
|
$message: "The value is required",
|
1049
1054
|
$params: {
|
1050
1055
|
type: "requiredIf",
|
@@ -1052,13 +1057,13 @@ function sr(e) {
|
|
1052
1057
|
}
|
1053
1058
|
};
|
1054
1059
|
}
|
1055
|
-
const
|
1060
|
+
const Ie = (e, t) => e ? !0 : O(typeof t == "string" ? t.trim() : t);
|
1056
1061
|
function or(e) {
|
1057
1062
|
return function(t, r) {
|
1058
1063
|
if (typeof e != "function")
|
1059
|
-
return
|
1060
|
-
const
|
1061
|
-
return
|
1064
|
+
return Ie(d(e), t);
|
1065
|
+
const a = e.call(this, t, r);
|
1066
|
+
return Ie(a, t);
|
1062
1067
|
};
|
1063
1068
|
}
|
1064
1069
|
function ir(e) {
|
@@ -1087,7 +1092,7 @@ function ur(e) {
|
|
1087
1092
|
};
|
1088
1093
|
}
|
1089
1094
|
const cr = /^(?:(?:(?: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;
|
1090
|
-
var dr =
|
1095
|
+
var dr = M(cr), pr = {
|
1091
1096
|
$validator: dr,
|
1092
1097
|
$message: "The value is not a valid URL address",
|
1093
1098
|
$params: {
|
@@ -1096,76 +1101,76 @@ var dr = k(cr), pr = {
|
|
1096
1101
|
};
|
1097
1102
|
function mr(e) {
|
1098
1103
|
return function() {
|
1099
|
-
for (var t = arguments.length, r = new Array(t),
|
1100
|
-
r[
|
1101
|
-
return e.reduce((
|
1104
|
+
for (var t = arguments.length, r = new Array(t), a = 0; a < t; a++)
|
1105
|
+
r[a] = arguments[a];
|
1106
|
+
return e.reduce((n, s) => z(n) ? n : H(s).apply(this, r), !1);
|
1102
1107
|
};
|
1103
1108
|
}
|
1104
1109
|
function fr(e) {
|
1105
1110
|
return function() {
|
1106
|
-
for (var t = arguments.length, r = new Array(t),
|
1107
|
-
r[
|
1108
|
-
return e.reduce(async (
|
1109
|
-
const
|
1110
|
-
return
|
1111
|
+
for (var t = arguments.length, r = new Array(t), a = 0; a < t; a++)
|
1112
|
+
r[a] = arguments[a];
|
1113
|
+
return e.reduce(async (n, s) => {
|
1114
|
+
const u = await n;
|
1115
|
+
return z(u) ? u : H(s).apply(this, r);
|
1111
1116
|
}, Promise.resolve(!1));
|
1112
1117
|
};
|
1113
1118
|
}
|
1114
1119
|
function gr() {
|
1115
1120
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
1116
1121
|
t[r] = arguments[r];
|
1117
|
-
const
|
1122
|
+
const a = t.some((u) => u.$async), n = t.reduce((u, l) => l.$watchTargets ? u.concat(l.$watchTargets) : u, []);
|
1118
1123
|
let s = () => !1;
|
1119
|
-
return t.length && (s =
|
1120
|
-
$async:
|
1124
|
+
return t.length && (s = a ? fr(t) : mr(t)), {
|
1125
|
+
$async: a,
|
1121
1126
|
$validator: s,
|
1122
|
-
$watchTargets:
|
1127
|
+
$watchTargets: n
|
1123
1128
|
};
|
1124
1129
|
}
|
1125
1130
|
function $r() {
|
1126
|
-
return
|
1131
|
+
return ve({
|
1127
1132
|
type: "or"
|
1128
|
-
},
|
1133
|
+
}, Q("The value does not match any of the provided validators", gr(...arguments)));
|
1129
1134
|
}
|
1130
1135
|
function hr(e) {
|
1131
1136
|
return function() {
|
1132
|
-
for (var t = arguments.length, r = new Array(t),
|
1133
|
-
r[
|
1134
|
-
return e.reduce((
|
1137
|
+
for (var t = arguments.length, r = new Array(t), a = 0; a < t; a++)
|
1138
|
+
r[a] = arguments[a];
|
1139
|
+
return e.reduce((n, s) => z(n) ? H(s).apply(this, r) : n, !0);
|
1135
1140
|
};
|
1136
1141
|
}
|
1137
1142
|
function vr(e) {
|
1138
1143
|
return function() {
|
1139
|
-
for (var t = arguments.length, r = new Array(t),
|
1140
|
-
r[
|
1141
|
-
return e.reduce(async (
|
1142
|
-
const
|
1143
|
-
return
|
1144
|
+
for (var t = arguments.length, r = new Array(t), a = 0; a < t; a++)
|
1145
|
+
r[a] = arguments[a];
|
1146
|
+
return e.reduce(async (n, s) => {
|
1147
|
+
const u = await n;
|
1148
|
+
return z(u) ? H(s).apply(this, r) : u;
|
1144
1149
|
}, Promise.resolve(!0));
|
1145
1150
|
};
|
1146
1151
|
}
|
1147
1152
|
function yr() {
|
1148
1153
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
1149
1154
|
t[r] = arguments[r];
|
1150
|
-
const
|
1155
|
+
const a = t.some((u) => u.$async), n = t.reduce((u, l) => l.$watchTargets ? u.concat(l.$watchTargets) : u, []);
|
1151
1156
|
let s = () => !1;
|
1152
|
-
return t.length && (s =
|
1153
|
-
$async:
|
1157
|
+
return t.length && (s = a ? vr(t) : hr(t)), {
|
1158
|
+
$async: a,
|
1154
1159
|
$validator: s,
|
1155
|
-
$watchTargets:
|
1160
|
+
$watchTargets: n
|
1156
1161
|
};
|
1157
1162
|
}
|
1158
1163
|
function _r() {
|
1159
|
-
return
|
1164
|
+
return ve({
|
1160
1165
|
type: "and"
|
1161
|
-
},
|
1166
|
+
}, Q("The value does not match all of the provided validators", yr(...arguments)));
|
1162
1167
|
}
|
1163
1168
|
function br(e) {
|
1164
1169
|
return function(t, r) {
|
1165
|
-
if (!
|
1170
|
+
if (!O(t))
|
1166
1171
|
return !0;
|
1167
|
-
const
|
1168
|
-
return It(
|
1172
|
+
const a = H(e).call(this, t, r);
|
1173
|
+
return It(a) ? a.then((n) => !z(n)) : !z(a);
|
1169
1174
|
};
|
1170
1175
|
}
|
1171
1176
|
function wr(e) {
|
@@ -1178,7 +1183,7 @@ function wr(e) {
|
|
1178
1183
|
};
|
1179
1184
|
}
|
1180
1185
|
function xr(e) {
|
1181
|
-
return (t) => !
|
1186
|
+
return (t) => !O(t) || (!/\s/.test(t) || t instanceof Date) && +t >= +d(e);
|
1182
1187
|
}
|
1183
1188
|
function Pr(e) {
|
1184
1189
|
return {
|
@@ -1196,7 +1201,7 @@ function Pr(e) {
|
|
1196
1201
|
};
|
1197
1202
|
}
|
1198
1203
|
function Rr(e) {
|
1199
|
-
return (t) => !
|
1204
|
+
return (t) => !O(t) || (!/\s/.test(t) || t instanceof Date) && +t <= +d(e);
|
1200
1205
|
}
|
1201
1206
|
var Or = (e) => ({
|
1202
1207
|
$validator: Rr(e),
|
@@ -1210,13 +1215,13 @@ var Or = (e) => ({
|
|
1210
1215
|
max: e,
|
1211
1216
|
type: "maxValue"
|
1212
1217
|
}
|
1213
|
-
}), Er =
|
1218
|
+
}), Er = M(/(^[0-9]*$)|(^-[0-9]+$)/), Cr = {
|
1214
1219
|
$validator: Er,
|
1215
1220
|
$message: "Value is not an integer",
|
1216
1221
|
$params: {
|
1217
1222
|
type: "integer"
|
1218
1223
|
}
|
1219
|
-
}, jr =
|
1224
|
+
}, jr = M(/^[-]?\d*(\.\d+)?$/), Ar = {
|
1220
1225
|
$validator: jr,
|
1221
1226
|
$message: "Value must be decimal",
|
1222
1227
|
$params: {
|
@@ -1226,37 +1231,37 @@ var Or = (e) => ({
|
|
1226
1231
|
function Tr(e) {
|
1227
1232
|
let {
|
1228
1233
|
t,
|
1229
|
-
messagePath: r = (
|
1234
|
+
messagePath: r = (n) => {
|
1230
1235
|
let {
|
1231
1236
|
$validator: s
|
1232
|
-
} =
|
1237
|
+
} = n;
|
1233
1238
|
return `validations.${s}`;
|
1234
1239
|
},
|
1235
|
-
messageParams:
|
1240
|
+
messageParams: a = (n) => n
|
1236
1241
|
} = e;
|
1237
1242
|
return function(s) {
|
1238
1243
|
let {
|
1239
|
-
withArguments:
|
1240
|
-
messagePath:
|
1241
|
-
messageParams:
|
1244
|
+
withArguments: u = !1,
|
1245
|
+
messagePath: l = r,
|
1246
|
+
messageParams: o = a
|
1242
1247
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
1243
|
-
function c(
|
1244
|
-
return t(
|
1245
|
-
model:
|
1246
|
-
property:
|
1247
|
-
pending:
|
1248
|
-
invalid:
|
1249
|
-
response:
|
1250
|
-
validator:
|
1251
|
-
propertyPath:
|
1252
|
-
},
|
1248
|
+
function c(g) {
|
1249
|
+
return t(l(g), o(G({
|
1250
|
+
model: g.$model,
|
1251
|
+
property: g.$property,
|
1252
|
+
pending: g.$pending,
|
1253
|
+
invalid: g.$invalid,
|
1254
|
+
response: g.$response,
|
1255
|
+
validator: g.$validator,
|
1256
|
+
propertyPath: g.$propertyPath
|
1257
|
+
}, g.$params)));
|
1253
1258
|
}
|
1254
|
-
return
|
1255
|
-
return
|
1256
|
-
} :
|
1259
|
+
return u && typeof s == "function" ? function() {
|
1260
|
+
return Q(c, s(...arguments));
|
1261
|
+
} : Q(c, s);
|
1257
1262
|
};
|
1258
1263
|
}
|
1259
|
-
const
|
1264
|
+
const Ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1260
1265
|
__proto__: null,
|
1261
1266
|
alpha: zt,
|
1262
1267
|
alphaNum: Dt,
|
@@ -1265,7 +1270,7 @@ const qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1265
1270
|
createI18nMessage: Tr,
|
1266
1271
|
decimal: Ar,
|
1267
1272
|
email: Xt,
|
1268
|
-
helpers:
|
1273
|
+
helpers: _e,
|
1269
1274
|
integer: Cr,
|
1270
1275
|
ipAddress: Kt,
|
1271
1276
|
macAddress: Jt,
|
@@ -1276,41 +1281,41 @@ const qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1276
1281
|
not: wr,
|
1277
1282
|
numeric: qt,
|
1278
1283
|
or: $r,
|
1279
|
-
required:
|
1284
|
+
required: be,
|
1280
1285
|
requiredIf: sr,
|
1281
1286
|
requiredUnless: ir,
|
1282
1287
|
sameAs: ur,
|
1283
1288
|
url: pr
|
1284
1289
|
}, Symbol.toStringTag, { value: "Module" }));
|
1285
|
-
function
|
1290
|
+
function Le(e) {
|
1286
1291
|
return ["maxLength", "minLength"].includes(e);
|
1287
1292
|
}
|
1288
1293
|
function Sr(e, t) {
|
1289
1294
|
return {
|
1290
|
-
[e]:
|
1295
|
+
[e]: Ne[e](t)
|
1291
1296
|
};
|
1292
1297
|
}
|
1293
1298
|
function Ir(e, t, r) {
|
1294
1299
|
return {
|
1295
|
-
[e]:
|
1300
|
+
[e]: _e.withMessage(r, Ne[e](t))
|
1296
1301
|
};
|
1297
1302
|
}
|
1298
1303
|
function Lr() {
|
1299
|
-
return { required:
|
1304
|
+
return { required: be };
|
1300
1305
|
}
|
1301
1306
|
function Vr(e) {
|
1302
1307
|
return {
|
1303
|
-
required:
|
1308
|
+
required: _e.withMessage(e, be)
|
1304
1309
|
};
|
1305
1310
|
}
|
1306
1311
|
function kr(e, t) {
|
1307
|
-
if (
|
1312
|
+
if (Le(e) && typeof t.message == "string" && typeof t.value == "number")
|
1308
1313
|
return Ir(
|
1309
1314
|
e,
|
1310
1315
|
t.value,
|
1311
1316
|
t.message
|
1312
1317
|
);
|
1313
|
-
if (
|
1318
|
+
if (Le(e) && typeof t.message > "u" && typeof t.value == "number")
|
1314
1319
|
return Sr(e, t.value);
|
1315
1320
|
if (e === "required" && typeof t.message == "string")
|
1316
1321
|
return Vr(t.message);
|
@@ -1331,70 +1336,75 @@ const zr = {
|
|
1331
1336
|
},
|
1332
1337
|
emits: ["submit"],
|
1333
1338
|
setup(e, { emit: t }) {
|
1334
|
-
const r = e,
|
1335
|
-
r.schema.
|
1336
|
-
|
1339
|
+
const r = e, a = t, n = P(
|
1340
|
+
r.schema.map((m) => {
|
1341
|
+
const h = { ...m };
|
1342
|
+
return delete h.validators, h;
|
1343
|
+
})
|
1344
|
+
), s = P(
|
1345
|
+
r.schema.reduce((m, h) => {
|
1346
|
+
switch (h.type) {
|
1337
1347
|
case T.CHECKBOX:
|
1338
|
-
return { ...
|
1348
|
+
return { ...m, [h.name]: String(h.defaultChecked) };
|
1339
1349
|
case T.TEXT:
|
1340
1350
|
default:
|
1341
|
-
return { ...
|
1351
|
+
return { ...m, [h.name]: h.value };
|
1342
1352
|
}
|
1343
1353
|
}, {})
|
1344
|
-
),
|
1345
|
-
const $ = Object.entries(
|
1346
|
-
(
|
1347
|
-
...
|
1348
|
-
...kr(
|
1354
|
+
), u = r.schema.reduce((m, h) => {
|
1355
|
+
const $ = Object.entries(h.validators ?? {}).reduce(
|
1356
|
+
(i, [p, f]) => ({
|
1357
|
+
...i,
|
1358
|
+
...kr(p, f)
|
1349
1359
|
}),
|
1350
1360
|
{}
|
1351
1361
|
);
|
1352
1362
|
return {
|
1353
|
-
...
|
1354
|
-
[
|
1363
|
+
...m,
|
1364
|
+
[h.name]: {
|
1355
1365
|
...$
|
1356
1366
|
}
|
1357
1367
|
};
|
1358
|
-
}, {}), l = Ot(
|
1359
|
-
function
|
1360
|
-
|
1368
|
+
}, {}), l = Ot(u, s, { $autoDirty: !1, $lazy: !0 }), o = P(r.error);
|
1369
|
+
function c(m, h) {
|
1370
|
+
s.value[m] = h;
|
1361
1371
|
}
|
1362
|
-
|
1363
|
-
r.error ?
|
1364
|
-
}),
|
1372
|
+
Pe(() => {
|
1373
|
+
r.error ? o.value = r.error : o.value && l.value.$errors.length === 0 ? o.value = null : !o.value && l.value.$errors.length > 0 && (o.value = "Please update this form to correct the errors");
|
1374
|
+
}), Pe(() => {
|
1365
1375
|
console.debug(`PdapForm ${r.name}
|
1366
1376
|
`, {
|
1367
|
-
errorMessage:
|
1377
|
+
errorMessage: o.value,
|
1368
1378
|
props: r,
|
1369
|
-
values:
|
1379
|
+
values: s,
|
1370
1380
|
vuelidate: {
|
1371
|
-
rules:
|
1381
|
+
rules: u,
|
1372
1382
|
v$: l
|
1373
1383
|
}
|
1374
1384
|
});
|
1375
1385
|
});
|
1376
|
-
async function
|
1386
|
+
async function g(m) {
|
1377
1387
|
if (await l.value.$validate()) {
|
1378
|
-
|
1388
|
+
a("submit", { ...s.value }), l.value.$reset(), m.target.reset(), s.value = Object.entries(s.value).reduce((i, [p, f]) => ({ ...i, [p]: ["true", "false"].includes(f) ? f : "" }), {});
|
1379
1389
|
return;
|
1380
1390
|
}
|
1381
1391
|
}
|
1382
|
-
return (
|
1392
|
+
return (m, h) => (v(), x("form", {
|
1383
1393
|
class: "pdap-form",
|
1384
|
-
onSubmit:
|
1394
|
+
onSubmit: h[0] || (h[0] = et(($) => g($), ["prevent"]))
|
1385
1395
|
}, [
|
1386
|
-
typeof
|
1387
|
-
(v(!0),
|
1388
|
-
var
|
1389
|
-
return v(),
|
1396
|
+
typeof o.value == "string" ? (v(), x("div", zr, N(o.value), 1)) : B("", !0),
|
1397
|
+
(v(!0), x(W, null, ge(n.value, ($) => {
|
1398
|
+
var i, p, f, y;
|
1399
|
+
return v(), S(Tt, de($, {
|
1390
1400
|
key: $.name,
|
1391
|
-
error: (
|
1392
|
-
value:
|
1393
|
-
onChange: (
|
1394
|
-
onInput: (
|
1401
|
+
error: (i = d(l)[$.name]) != null && i.$error ? (y = (f = (p = d(l)[$.name]) == null ? void 0 : p.$errors) == null ? void 0 : f[0]) == null ? void 0 : y.$message : "",
|
1402
|
+
value: s.value[$.name],
|
1403
|
+
onChange: (A) => $.type !== d(T).TEXT ? c($.name, A) : void 0,
|
1404
|
+
onInput: (A) => $.type === d(T).TEXT ? c($.name, A) : void 0
|
1395
1405
|
}), null, 16, ["error", "value", "onChange", "onInput"]);
|
1396
1406
|
}), 128)),
|
1397
|
-
|
1407
|
+
Z(m.$slots, "default")
|
1398
1408
|
], 32));
|
1399
1409
|
}
|
1400
1410
|
});
|
@@ -1411,24 +1421,24 @@ const Dr = /* @__PURE__ */ j({
|
|
1411
1421
|
const t = e, r = C({
|
1412
1422
|
"pdap-grid-container": !0,
|
1413
1423
|
[`pdap-grid-container-column-${t.columns}`]: t.columns !== "auto"
|
1414
|
-
}),
|
1415
|
-
...
|
1416
|
-
gridTemplateRows:
|
1424
|
+
}), a = t.templateRows || typeof t.rows == "number", n = t.templateRows ?? `repeat(${t.rows}, minmax(0, 1fr))`, s = C({
|
1425
|
+
...a && {
|
1426
|
+
gridTemplateRows: n
|
1417
1427
|
},
|
1418
1428
|
...t.templateColumns && { gridTemplateColumns: t.templateColumns }
|
1419
1429
|
});
|
1420
|
-
return (
|
1421
|
-
class:
|
1422
|
-
style:
|
1430
|
+
return (u, l) => (v(), S(fe(u.component), {
|
1431
|
+
class: X(r),
|
1432
|
+
style: he(s)
|
1423
1433
|
}, {
|
1424
|
-
default:
|
1425
|
-
|
1434
|
+
default: R(() => [
|
1435
|
+
Z(u.$slots, "default")
|
1426
1436
|
]),
|
1427
1437
|
_: 3
|
1428
1438
|
}, 8, ["class", "style"]));
|
1429
1439
|
}
|
1430
1440
|
});
|
1431
|
-
const
|
1441
|
+
const ta = /* @__PURE__ */ j({
|
1432
1442
|
__name: "GridItem",
|
1433
1443
|
props: {
|
1434
1444
|
component: { default: "div" },
|
@@ -1439,28 +1449,28 @@ const Yr = /* @__PURE__ */ j({
|
|
1439
1449
|
const t = e, r = C({
|
1440
1450
|
"pdap-grid-item": !0,
|
1441
1451
|
[`pdap-grid-item-span-column-${t.spanColumn}`]: t.spanColumn > 1
|
1442
|
-
}),
|
1452
|
+
}), a = C({
|
1443
1453
|
// Only add inline property if it is passed and exceeds the default
|
1444
1454
|
...t.spanRow > 1 && {
|
1445
1455
|
gridRow: `span ${t.spanRow} / span ${t.spanRow}`
|
1446
1456
|
}
|
1447
1457
|
});
|
1448
|
-
return (
|
1449
|
-
class:
|
1450
|
-
style:
|
1458
|
+
return (n, s) => (v(), S(fe(n.component), {
|
1459
|
+
class: X(r),
|
1460
|
+
style: he(a)
|
1451
1461
|
}, {
|
1452
|
-
default:
|
1453
|
-
|
1462
|
+
default: R(() => [
|
1463
|
+
Z(n.$slots, "default")
|
1454
1464
|
]),
|
1455
1465
|
_: 3
|
1456
1466
|
}, 8, ["class", "style"]));
|
1457
1467
|
}
|
1458
1468
|
});
|
1459
|
-
const Fr = /* @__PURE__ */
|
1469
|
+
const Fr = /* @__PURE__ */ b("svg", {
|
1460
1470
|
xmlns: "http://www.w3.org/2000/svg",
|
1461
1471
|
viewBox: "0 0 448 512"
|
1462
1472
|
}, [
|
1463
|
-
/* @__PURE__ */
|
1473
|
+
/* @__PURE__ */ b("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" })
|
1464
1474
|
], -1), qr = [
|
1465
1475
|
Fr
|
1466
1476
|
], Nr = ["aria-expanded"], Br = ["href"], Hr = /* @__PURE__ */ j({
|
@@ -1469,7 +1479,7 @@ const Fr = /* @__PURE__ */ x("svg", {
|
|
1469
1479
|
topPosition: {}
|
1470
1480
|
},
|
1471
1481
|
setup(e) {
|
1472
|
-
let t =
|
1482
|
+
let t = ee("navLinks");
|
1473
1483
|
typeof t > "u" && (t = [], console.error(
|
1474
1484
|
`Hey, PDAP developer
|
1475
1485
|
`,
|
@@ -1478,129 +1488,129 @@ const Fr = /* @__PURE__ */ x("svg", {
|
|
1478
1488
|
const r = C({
|
1479
1489
|
isExpanded: !1,
|
1480
1490
|
isMobile: !0
|
1481
|
-
}),
|
1491
|
+
}), a = C({
|
1482
1492
|
"pdap-nav": !0
|
1483
1493
|
});
|
1484
|
-
|
1485
|
-
|
1486
|
-
}),
|
1487
|
-
window.removeEventListener("resize",
|
1494
|
+
ke(() => {
|
1495
|
+
n(), window.addEventListener("resize", n);
|
1496
|
+
}), $e(() => {
|
1497
|
+
window.removeEventListener("resize", n);
|
1488
1498
|
});
|
1489
|
-
async function
|
1499
|
+
async function n() {
|
1490
1500
|
window.innerWidth <= 1024 ? r.isMobile = !0 : r.isMobile = !1, await te();
|
1491
1501
|
}
|
1492
1502
|
async function s() {
|
1493
|
-
var
|
1494
|
-
const
|
1495
|
-
!r.isExpanded && r.isMobile ? (r.isExpanded = !0,
|
1503
|
+
var l, o;
|
1504
|
+
const u = document.querySelector("body");
|
1505
|
+
!r.isExpanded && r.isMobile ? (r.isExpanded = !0, u != null && u.classList.contains("lock-scroll") || (l = document.querySelector("body")) == null || l.classList.add("lock-scroll")) : r.isExpanded && r.isMobile && (r.isExpanded = !1, (o = document.querySelector("body")) == null || o.classList.remove("lock-scroll")), await te();
|
1496
1506
|
}
|
1497
|
-
return (
|
1498
|
-
|
1507
|
+
return (u, l) => (v(), x(W, null, [
|
1508
|
+
b("div", {
|
1499
1509
|
"aria-controls": "nav",
|
1500
1510
|
class: "pdap-nav-open-button",
|
1501
1511
|
role: "button",
|
1502
1512
|
onClick: s
|
1503
1513
|
}, qr),
|
1504
|
-
|
1514
|
+
b("nav", {
|
1505
1515
|
id: "nav",
|
1506
1516
|
"aria-expanded": r.isMobile && r.isExpanded || !r.isMobile,
|
1507
|
-
class:
|
1508
|
-
style:
|
1517
|
+
class: X(a),
|
1518
|
+
style: he(r.isMobile ? { top: `${u.topPosition}px` } : {})
|
1509
1519
|
}, [
|
1510
|
-
(v(!0),
|
1511
|
-
key:
|
1520
|
+
(v(!0), x(W, null, ge(d(t), (o) => (v(), x("li", {
|
1521
|
+
key: o.text,
|
1512
1522
|
class: "pdap-nav-link-container"
|
1513
1523
|
}, [
|
1514
|
-
|
1524
|
+
o.href ? (v(), x("a", {
|
1515
1525
|
key: 0,
|
1516
1526
|
class: "pdap-nav-link",
|
1517
|
-
href:
|
1527
|
+
href: o.href,
|
1518
1528
|
target: "_blank",
|
1519
1529
|
referrerpolicy: "no-referrer",
|
1520
1530
|
onClick: s
|
1521
|
-
},
|
1522
|
-
|
1531
|
+
}, N(o.text), 9, Br)) : B("", !0),
|
1532
|
+
o.path ? (v(), S(d(ze), {
|
1523
1533
|
key: 1,
|
1524
1534
|
"active-class": "pdap-nav-link-current",
|
1525
1535
|
"exact-active-class": "pdap-nav-link-current-exact",
|
1526
1536
|
class: "pdap-nav-link",
|
1527
|
-
to:
|
1537
|
+
to: o.path,
|
1528
1538
|
onClick: s
|
1529
1539
|
}, {
|
1530
|
-
default:
|
1531
|
-
|
1540
|
+
default: R(() => [
|
1541
|
+
k(N(o.text), 1)
|
1532
1542
|
]),
|
1533
1543
|
_: 2
|
1534
|
-
}, 1032, ["to"])) :
|
1544
|
+
}, 1032, ["to"])) : B("", !0)
|
1535
1545
|
]))), 128))
|
1536
1546
|
], 14, Nr)
|
1537
1547
|
], 64));
|
1538
1548
|
}
|
1539
1549
|
});
|
1540
|
-
const Gr = ["href"], Xr = ["src"], Wr = ["src"],
|
1550
|
+
const Gr = ["href"], Xr = ["src"], Wr = ["src"], ra = /* @__PURE__ */ j({
|
1541
1551
|
__name: "PdapHeader",
|
1542
1552
|
props: {
|
1543
1553
|
logoImageSrc: { default: "node_modules/pdap-design-system/dist/images/lockup.svg" },
|
1544
1554
|
logoImageAnchorPath: { default: "/" }
|
1545
1555
|
},
|
1546
1556
|
setup(e) {
|
1547
|
-
const t = e, r = P(),
|
1557
|
+
const t = e, r = P(), a = P(null), n = t.logoImageAnchorPath.startsWith("/");
|
1548
1558
|
tt(() => {
|
1549
1559
|
s(), window.addEventListener("resize", s);
|
1550
|
-
}),
|
1560
|
+
}), $e(() => {
|
1551
1561
|
window.removeEventListener("resize", s);
|
1552
1562
|
});
|
1553
1563
|
function s() {
|
1554
|
-
|
1564
|
+
a.value && (r.value = a.value.offsetHeight);
|
1555
1565
|
}
|
1556
|
-
return (
|
1566
|
+
return (u, l) => (v(), x("header", {
|
1557
1567
|
ref_key: "el",
|
1558
|
-
ref:
|
1568
|
+
ref: a,
|
1559
1569
|
class: "pdap-header"
|
1560
1570
|
}, [
|
1561
|
-
d(
|
1571
|
+
d(n) ? (v(), S(d(ze), {
|
1562
1572
|
key: 1,
|
1563
|
-
to:
|
1573
|
+
to: u.logoImageAnchorPath,
|
1564
1574
|
class: "logo"
|
1565
1575
|
}, {
|
1566
|
-
default:
|
1567
|
-
|
1568
|
-
src:
|
1576
|
+
default: R(() => [
|
1577
|
+
b("img", {
|
1578
|
+
src: u.logoImageSrc,
|
1569
1579
|
loading: "lazy",
|
1570
1580
|
width: "250",
|
1571
1581
|
alt: "Police Data Accessibility Project Logo"
|
1572
1582
|
}, null, 8, Wr)
|
1573
1583
|
]),
|
1574
1584
|
_: 1
|
1575
|
-
}, 8, ["to"])) : (v(),
|
1585
|
+
}, 8, ["to"])) : (v(), x("a", {
|
1576
1586
|
key: 0,
|
1577
|
-
href:
|
1587
|
+
href: u.logoImageAnchorPath,
|
1578
1588
|
class: "logo"
|
1579
1589
|
}, [
|
1580
|
-
|
1581
|
-
src:
|
1590
|
+
b("img", {
|
1591
|
+
src: u.logoImageSrc,
|
1582
1592
|
loading: "lazy",
|
1583
1593
|
width: "250",
|
1584
1594
|
alt: "Police Data Accessibility Project Logo"
|
1585
1595
|
}, null, 8, Xr)
|
1586
1596
|
], 8, Gr)),
|
1587
|
-
|
1597
|
+
q(Hr, { "top-position": r.value }, null, 8, ["top-position"])
|
1588
1598
|
], 512));
|
1589
1599
|
}
|
1590
1600
|
});
|
1591
|
-
const
|
1601
|
+
const Ur = /* @__PURE__ */ b("h2", { class: "mt-0" }, "Search our database", -1), Kr = { class: "pb-4 md:pb-8" }, aa = /* @__PURE__ */ j({
|
1592
1602
|
__name: "QuickSearchForm",
|
1593
1603
|
props: {
|
1594
1604
|
mode: { default: "prod" }
|
1595
1605
|
},
|
1596
1606
|
setup(e) {
|
1597
|
-
const t = rt(), r = e,
|
1607
|
+
const t = rt(), r = e, a = [
|
1598
1608
|
{
|
1599
1609
|
id: "search-term",
|
1600
1610
|
name: "searchTerm",
|
1601
1611
|
label: "What are you looking for?",
|
1602
1612
|
type: T.TEXT,
|
1603
|
-
placeholder: "Enter a keyword,
|
1613
|
+
placeholder: "Enter a keyword, or 'all'",
|
1604
1614
|
value: ""
|
1605
1615
|
},
|
1606
1616
|
{
|
@@ -1608,67 +1618,89 @@ const tn = /* @__PURE__ */ j({
|
|
1608
1618
|
name: "location",
|
1609
1619
|
label: "From where?",
|
1610
1620
|
type: T.TEXT,
|
1611
|
-
placeholder: "Enter a
|
1621
|
+
placeholder: "Enter a place, or 'all'",
|
1612
1622
|
value: ""
|
1613
1623
|
}
|
1614
|
-
],
|
1615
|
-
function s(
|
1616
|
-
if (Object.values(
|
1617
|
-
|
1624
|
+
], n = P(void 0);
|
1625
|
+
function s(u) {
|
1626
|
+
if (Object.values(u).every((c) => !c)) {
|
1627
|
+
n.value = "Either a search term or a location is required.";
|
1618
1628
|
return;
|
1619
1629
|
}
|
1620
|
-
let { location:
|
1621
|
-
if (
|
1622
|
-
t.push(`/search/${
|
1630
|
+
let { location: l, searchTerm: o } = u;
|
1631
|
+
if (l = l && l.length > 0 ? l : "all", o = o && o.length > 0 ? o : "all", t.getRoutes().some((c) => c.path.includes("/search/")))
|
1632
|
+
t.push(`/search/${o}/${l}`);
|
1623
1633
|
else {
|
1624
1634
|
const c = r.mode === "prod" ? "https://data-sources.pdap.io" : "https://data-sources.pdap.dev";
|
1625
|
-
window.location.assign(`${c}/search/${
|
1635
|
+
window.location.assign(`${c}/search/${o}/${l}`);
|
1626
1636
|
}
|
1627
1637
|
}
|
1628
|
-
return (
|
1629
|
-
|
1630
|
-
|
1631
|
-
|
1632
|
-
|
1633
|
-
|
1634
|
-
|
1635
|
-
|
1636
|
-
|
1637
|
-
|
1638
|
-
|
1639
|
-
|
1640
|
-
|
1638
|
+
return (u, l) => {
|
1639
|
+
const o = Ve("RouterLink");
|
1640
|
+
return v(), x(W, null, [
|
1641
|
+
q(pe, { class: "md:p-0" }, {
|
1642
|
+
default: R(() => [
|
1643
|
+
Ur,
|
1644
|
+
b("p", Kr, [
|
1645
|
+
k(" If you have a question to answer, we may already know about helpful data in your area. "),
|
1646
|
+
q(o, { to: "/data" }, {
|
1647
|
+
default: R(() => [
|
1648
|
+
k("Learn more about the data here.")
|
1649
|
+
]),
|
1650
|
+
_: 1
|
1651
|
+
})
|
1652
|
+
])
|
1653
|
+
]),
|
1654
|
+
_: 1
|
1655
|
+
}),
|
1656
|
+
q(pe, {
|
1657
|
+
alignment: "center",
|
1658
|
+
class: "pdap-quick-search-form h-full max-h-[75-vh] justify-start md:p-0"
|
1641
1659
|
}, {
|
1642
|
-
default:
|
1643
|
-
|
1644
|
-
|
1645
|
-
|
1660
|
+
default: R(() => [
|
1661
|
+
q(Mr, {
|
1662
|
+
id: "quick-search-form",
|
1663
|
+
class: "flex flex-wrap gap-x-4",
|
1664
|
+
error: n.value,
|
1665
|
+
schema: a,
|
1666
|
+
name: "quickSearchForm",
|
1667
|
+
onSubmit: s
|
1668
|
+
}, {
|
1669
|
+
default: R(() => [
|
1670
|
+
q(at, {
|
1671
|
+
type: "submit",
|
1672
|
+
class: "flex-grow-0 flex-shrink-0 basis-full max-w-[unset] mt-4"
|
1673
|
+
}, {
|
1674
|
+
default: R(() => [
|
1675
|
+
k("Search Data Sources")
|
1676
|
+
]),
|
1677
|
+
_: 1
|
1678
|
+
})
|
1646
1679
|
]),
|
1647
1680
|
_: 1
|
1648
|
-
})
|
1681
|
+
}, 8, ["error"])
|
1649
1682
|
]),
|
1650
1683
|
_: 1
|
1651
|
-
}
|
1652
|
-
])
|
1653
|
-
|
1654
|
-
}));
|
1684
|
+
})
|
1685
|
+
], 64);
|
1686
|
+
};
|
1655
1687
|
}
|
1656
1688
|
});
|
1657
|
-
const
|
1689
|
+
const Qr = ["alt", "src"], na = /* @__PURE__ */ j({
|
1658
1690
|
__name: "TileIcon",
|
1659
1691
|
props: {
|
1660
1692
|
imgAltText: {},
|
1661
1693
|
imgSrc: {}
|
1662
1694
|
},
|
1663
1695
|
setup(e) {
|
1664
|
-
return (t, r) => (v(),
|
1696
|
+
return (t, r) => (v(), x("img", {
|
1665
1697
|
class: "pdap-tile-icon",
|
1666
1698
|
alt: t.imgAltText,
|
1667
1699
|
src: t.imgSrc
|
1668
|
-
}, null, 8,
|
1700
|
+
}, null, 8, Qr));
|
1669
1701
|
}
|
1670
1702
|
});
|
1671
|
-
const
|
1703
|
+
const Zr = {
|
1672
1704
|
content: ["./src/**/*.vue", "./src/**/*.css"],
|
1673
1705
|
theme: {
|
1674
1706
|
// Nested within "extend" - extends tailwind theme defaults, only overrides properties named here
|
@@ -1745,22 +1777,22 @@ const Kr = {
|
|
1745
1777
|
"6xl": "3rem"
|
1746
1778
|
}
|
1747
1779
|
}
|
1748
|
-
},
|
1780
|
+
}, sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1749
1781
|
__proto__: null,
|
1750
|
-
default:
|
1782
|
+
default: Zr
|
1751
1783
|
}, Symbol.toStringTag, { value: "Module" }));
|
1752
1784
|
export {
|
1753
|
-
|
1754
|
-
|
1755
|
-
|
1785
|
+
at as Button,
|
1786
|
+
pe as FlexContainer,
|
1787
|
+
ea as Footer,
|
1756
1788
|
Mr as Form,
|
1757
1789
|
Dr as GridContainer,
|
1758
|
-
|
1759
|
-
|
1790
|
+
ta as GridItem,
|
1791
|
+
ra as Header,
|
1760
1792
|
Tt as Input,
|
1761
1793
|
Hr as Nav,
|
1762
1794
|
T as PdapInputTypes,
|
1763
|
-
|
1764
|
-
|
1765
|
-
|
1795
|
+
aa as QuickSearchForm,
|
1796
|
+
na as TileIcon,
|
1797
|
+
sa as tailwindConfig
|
1766
1798
|
};
|