pdap-design-system 2.7.0-beta.4 → 2.7.0-beta.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Spinner/PdapSpinner.vue.d.ts +35 -0
- package/dist/components/Spinner/index.d.ts +1 -0
- package/dist/components/Spinner/types.d.ts +6 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +548 -496
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1,37 +1,37 @@
|
|
1
|
-
import { defineComponent as C, reactive as
|
2
|
-
import { RouterLink as oe, useRouter as
|
3
|
-
const
|
1
|
+
import { defineComponent as C, reactive as W, openBlock as m, createElementBlock as h, normalizeClass as ee, renderSlot as J, ref as N, onErrorCaptured as ut, createBlock as E, resolveDynamicComponent as it, withCtx as T, createElementVNode as f, createTextVNode as D, inject as ae, resolveComponent as Ue, Fragment as F, renderList as le, unref as L, toDisplayString as z, createCommentVNode as P, getCurrentInstance as lt, onBeforeMount as Ve, watch as X, isRef as pe, onBeforeUnmount as fe, computed as v, isReactive as ct, isReadonly as dt, provide as De, nextTick as se, mergeProps as G, normalizeProps as Lt, watchEffect as Te, withModifiers as je, normalizeStyle as Mt, onMounted as Be, createVNode as V, withDirectives as Ce, withKeys as xe, toHandlers as gt, Transition as ye, vShow as pt, TransitionGroup as jt } from "vue";
|
2
|
+
import { RouterLink as oe, useRouter as yt, useRoute as mt } from "vue-router";
|
3
|
+
const ft = {
|
4
4
|
name: "PdapButton"
|
5
|
-
},
|
6
|
-
...
|
5
|
+
}, We = /* @__PURE__ */ C({
|
6
|
+
...ft,
|
7
7
|
props: {
|
8
8
|
intent: { default: "primary" },
|
9
9
|
isLoading: { type: Boolean, default: !1 }
|
10
10
|
},
|
11
11
|
setup(e) {
|
12
|
-
const t = e, r =
|
12
|
+
const t = e, r = W({
|
13
13
|
"pdap-button": !0,
|
14
14
|
[`pdap-button-${t.intent}`]: !!t.intent,
|
15
15
|
"pdap-button-loading": t.isLoading
|
16
16
|
});
|
17
|
-
return (n, a) => (
|
17
|
+
return (n, a) => (m(), h("button", {
|
18
18
|
class: ee(r)
|
19
19
|
}, [
|
20
20
|
J(n.$slots, "default")
|
21
21
|
], 2));
|
22
22
|
}
|
23
23
|
});
|
24
|
-
const
|
24
|
+
const wt = /* @__PURE__ */ f("h1", null, "Oops, something went wrong!", -1), ht = /* @__PURE__ */ f("p", {
|
25
25
|
class: "max-w-full",
|
26
26
|
"data-test": "error-boundary-message"
|
27
27
|
}, [
|
28
28
|
/* @__PURE__ */ D(" If you keep seeing this message, please email "),
|
29
|
-
/* @__PURE__ */
|
29
|
+
/* @__PURE__ */ f("a", { href: "mailto:contact@pdap.io" }, "contact@pdap.io"),
|
30
30
|
/* @__PURE__ */ D(" for assistance. ")
|
31
|
-
], -1),
|
31
|
+
], -1), vt = {
|
32
32
|
name: "ErrorBoundary"
|
33
|
-
},
|
34
|
-
...
|
33
|
+
}, Kn = /* @__PURE__ */ C({
|
34
|
+
...vt,
|
35
35
|
props: {
|
36
36
|
component: { default: "div" },
|
37
37
|
onError: { type: Function, default: void 0 },
|
@@ -44,44 +44,44 @@ const ft = /* @__PURE__ */ w("h1", null, "Oops, something went wrong!", -1), wt
|
|
44
44
|
var M;
|
45
45
|
a.value = u, s.value = c, (M = r.onError) == null || M.call(r, u, l, c), n("onError", { error: u, vm: l, info: c });
|
46
46
|
}
|
47
|
-
return
|
47
|
+
return ut((u, l, c) => {
|
48
48
|
i(u, l, c);
|
49
|
-
}), (u, l) => a.value ? (
|
49
|
+
}), (u, l) => a.value ? (m(), E(it(u.component), {
|
50
50
|
key: 1,
|
51
51
|
class: "pdap-flex-container-center h-[full]",
|
52
52
|
"v-bind": u.params
|
53
53
|
}, {
|
54
54
|
default: T(() => [
|
55
|
-
|
56
|
-
|
55
|
+
wt,
|
56
|
+
ht
|
57
57
|
]),
|
58
58
|
_: 1
|
59
59
|
}, 8, ["v-bind"])) : J(u.$slots, "default", { key: 0 });
|
60
60
|
}
|
61
|
-
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SwzLjMtMi43UzQ0LjMsNjEuNSw0Mi4xLDYxLjV6Ii8+CjxwYXRoIGQ9Ik02MC41LDgwLjFoLTYuOVY1Ny4zaDYuOWM2LjUsMCwxMS45LDQsMTEuOSwxMS40QzcyLjQsNzYuMiw2Ni42LDgwLjEsNjAuNSw4MC4xeiBNNjAuNSw2MS41aC0xLjl2MTQuNGgxLjkKCWM0LjMsMCw2LjctMy40LDYuNy03LjJTNjQuNSw2MS41LDYwLjUsNjEuNXoiLz4KPHBhdGggZD0iTTg4LjcsODAuMUw4Nyw3NC40aC03bC0xLjgsNS44aC01LjNsOC4yLTIyLjloNC44bDguMywyMi45aC01LjVWODAuMXogTTg0LDY0LjZjLTAuMi0wLjctMC41LTEuNi0wLjUtMS44CgljMCwwLjEtMC4yLDEtMC41LDEuOGwtMS43LDUuNmg0LjRMODQsNjQuNnoiLz4KPHBhdGggZD0iTTEwNC43LDcxLjFoLTIuNnY5LjFoLTVWNTcuM2g3LjZjNS4xLDAsOC40LDIuNCw4LjQsNi43UzEwOS44LDcxLjEsMTA0LjcsNzEuMXogTTEwNC43LDYxLjVoLTIuNnY1LjNoMi42CgljMi4zLDAsMy4zLTAuOSwzLjMtMi43UzEwNi45LDYxLjUsMTA0LjcsNjEuNXoiLz4KPC9zdmc+Cg==", Nt = { class: "pdap-footer" }, Dt = { class: "pdap-flex-container-center" }, Tt = { class: "pdap-footer-social-links" }, Ct = ["href"], xt = { class: "pdap-footer-copyright" }, It = /* @__PURE__ */ f("br", null, null, -1), St = /* @__PURE__ */ f("p", { class: "pdap-footer-copyright" }, [
|
62
62
|
/* @__PURE__ */ D(" PDAP is a non-profit. EIN: 85-4207132. "),
|
63
|
-
/* @__PURE__ */
|
63
|
+
/* @__PURE__ */ f("a", {
|
64
64
|
href: "https://docs.pdap.io/meta/policy/pdap-privacy-policy",
|
65
65
|
alt: "Privacy Policy",
|
66
66
|
target: "_blank"
|
67
67
|
}, [
|
68
|
-
/* @__PURE__ */
|
68
|
+
/* @__PURE__ */ f("br"),
|
69
69
|
/* @__PURE__ */ D(" Privacy Policy "),
|
70
|
-
/* @__PURE__ */
|
70
|
+
/* @__PURE__ */ f("i", { class: "fa fa-external-link" })
|
71
71
|
]),
|
72
|
-
/* @__PURE__ */
|
73
|
-
/* @__PURE__ */
|
74
|
-
], -1),
|
72
|
+
/* @__PURE__ */ f("br"),
|
73
|
+
/* @__PURE__ */ f("a", { href: "mailto:contact@pdap.io" }, "contact@pdap.io")
|
74
|
+
], -1), Et = { class: "pdap-footer-widget-links" }, zt = /* @__PURE__ */ f("a", {
|
75
75
|
href: "https://www.guidestar.org/profile/85-4207132",
|
76
76
|
target: "_blank"
|
77
77
|
}, [
|
78
|
-
/* @__PURE__ */
|
79
|
-
], -1), Ot = ["href"],
|
78
|
+
/* @__PURE__ */ f("img", { src: "https://widgets.guidestar.org/gximage2?o=9973356&l=v4" })
|
79
|
+
], -1), Ot = ["href"], _t = ["src"], bt = ["src"], At = {
|
80
80
|
name: "PdapFooter"
|
81
|
-
},
|
82
|
-
...
|
81
|
+
}, qn = /* @__PURE__ */ C({
|
82
|
+
...At,
|
83
83
|
props: {
|
84
|
-
logoImageSrc: { default:
|
84
|
+
logoImageSrc: { default: $t },
|
85
85
|
logoImageAnchorPath: { default: "/" }
|
86
86
|
},
|
87
87
|
setup(e) {
|
@@ -104,22 +104,22 @@ const ft = /* @__PURE__ */ w("h1", null, "Oops, something went wrong!", -1), wt
|
|
104
104
|
}
|
105
105
|
]), n = t.logoImageAnchorPath.startsWith("/");
|
106
106
|
return (a, s) => {
|
107
|
-
const i =
|
108
|
-
return
|
109
|
-
|
110
|
-
|
111
|
-
(
|
107
|
+
const i = Ue("router-link");
|
108
|
+
return m(), h("footer", Nt, [
|
109
|
+
f("div", Dt, [
|
110
|
+
f("ul", Tt, [
|
111
|
+
(m(!0), h(F, null, le(L(r), (u) => (m(), h("li", {
|
112
112
|
key: u.text,
|
113
113
|
class: "pdap-footer-link-container"
|
114
114
|
}, [
|
115
|
-
u.href ? (
|
115
|
+
u.href ? (m(), h("a", {
|
116
116
|
key: 0,
|
117
117
|
class: "pdap-footer-social-link",
|
118
118
|
href: u.href,
|
119
119
|
target: "_blank",
|
120
120
|
referrerpolicy: "no-referrer"
|
121
|
-
},
|
122
|
-
u.path ? (
|
121
|
+
}, z(u.text), 9, Ct)) : P("", !0),
|
122
|
+
u.path ? (m(), E(i, {
|
123
123
|
key: 1,
|
124
124
|
"active-class": "pdap-footer-social-link-current",
|
125
125
|
"exact-active-class": "pdap-footer-social-link-current-exact",
|
@@ -127,26 +127,26 @@ const ft = /* @__PURE__ */ w("h1", null, "Oops, something went wrong!", -1), wt
|
|
127
127
|
to: u.path
|
128
128
|
}, {
|
129
129
|
default: T(() => [
|
130
|
-
D(
|
130
|
+
D(z(u.text), 1)
|
131
131
|
]),
|
132
132
|
_: 2
|
133
|
-
}, 1032, ["to"])) :
|
133
|
+
}, 1032, ["to"])) : P("", !0)
|
134
134
|
]))), 128))
|
135
135
|
]),
|
136
|
-
|
137
|
-
D(" © " +
|
138
|
-
|
136
|
+
f("p", xt, [
|
137
|
+
D(" © " + z((/* @__PURE__ */ new Date()).getFullYear()) + " Police Data Accessibility Project", 1),
|
138
|
+
It
|
139
139
|
]),
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
L(n) ? (
|
140
|
+
St,
|
141
|
+
f("div", Et, [
|
142
|
+
zt,
|
143
|
+
L(n) ? (m(), E(i, {
|
144
144
|
key: 1,
|
145
145
|
to: a.logoImageAnchorPath,
|
146
146
|
class: "pdap-footer-logo"
|
147
147
|
}, {
|
148
148
|
default: T(() => [
|
149
|
-
|
149
|
+
f("img", {
|
150
150
|
src: a.logoImageSrc,
|
151
151
|
loading: "lazy",
|
152
152
|
width: "250",
|
@@ -154,17 +154,17 @@ const ft = /* @__PURE__ */ w("h1", null, "Oops, something went wrong!", -1), wt
|
|
154
154
|
}, null, 8, bt)
|
155
155
|
]),
|
156
156
|
_: 1
|
157
|
-
}, 8, ["to"])) : (
|
157
|
+
}, 8, ["to"])) : (m(), h("a", {
|
158
158
|
key: 0,
|
159
159
|
href: a.logoImageAnchorPath,
|
160
160
|
class: "pdap-footer-logo"
|
161
161
|
}, [
|
162
|
-
|
162
|
+
f("img", {
|
163
163
|
src: a.logoImageSrc,
|
164
164
|
loading: "lazy",
|
165
165
|
width: "250",
|
166
166
|
alt: "Police Data Accessibility Project Logo"
|
167
|
-
}, null, 8,
|
167
|
+
}, null, 8, _t)
|
168
168
|
], 8, Ot))
|
169
169
|
])
|
170
170
|
])
|
@@ -172,7 +172,7 @@ const ft = /* @__PURE__ */ w("h1", null, "Oops, something went wrong!", -1), wt
|
|
172
172
|
};
|
173
173
|
}
|
174
174
|
});
|
175
|
-
function
|
175
|
+
function Ie(e, t) {
|
176
176
|
var r = Object.keys(e);
|
177
177
|
if (Object.getOwnPropertySymbols) {
|
178
178
|
var n = Object.getOwnPropertySymbols(e);
|
@@ -185,15 +185,15 @@ function xe(e, t) {
|
|
185
185
|
function k(e) {
|
186
186
|
for (var t = 1; t < arguments.length; t++) {
|
187
187
|
var r = arguments[t] != null ? arguments[t] : {};
|
188
|
-
t % 2 ?
|
189
|
-
|
190
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
188
|
+
t % 2 ? Ie(Object(r), !0).forEach(function(n) {
|
189
|
+
kt(e, n, r[n]);
|
190
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ie(Object(r)).forEach(function(n) {
|
191
191
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
192
192
|
});
|
193
193
|
}
|
194
194
|
return e;
|
195
195
|
}
|
196
|
-
function
|
196
|
+
function kt(e, t, r) {
|
197
197
|
return t in e ? Object.defineProperty(e, t, {
|
198
198
|
value: r,
|
199
199
|
enumerable: !0,
|
@@ -201,17 +201,17 @@ function At(e, t, r) {
|
|
201
201
|
writable: !0
|
202
202
|
}) : e[t] = r, e;
|
203
203
|
}
|
204
|
-
function
|
204
|
+
function Se(e) {
|
205
205
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
206
206
|
return Object.keys(e).reduce((r, n) => (t.includes(n) || (r[n] = L(e[n])), r), {});
|
207
207
|
}
|
208
208
|
function ue(e) {
|
209
209
|
return typeof e == "function";
|
210
210
|
}
|
211
|
-
function
|
212
|
-
return
|
211
|
+
function Pt(e) {
|
212
|
+
return ct(e) || dt(e);
|
213
213
|
}
|
214
|
-
function
|
214
|
+
function Fe(e, t, r) {
|
215
215
|
let n = e;
|
216
216
|
const a = t.split(".");
|
217
217
|
for (let s = 0; s < a.length; s++) {
|
@@ -222,44 +222,44 @@ function We(e, t, r) {
|
|
222
222
|
return n;
|
223
223
|
}
|
224
224
|
function ge(e, t, r) {
|
225
|
-
return
|
225
|
+
return v(() => e.some((n) => Fe(t, n, {
|
226
226
|
[r]: !1
|
227
227
|
})[r]));
|
228
228
|
}
|
229
|
-
function
|
230
|
-
return
|
231
|
-
const s =
|
229
|
+
function Ee(e, t, r) {
|
230
|
+
return v(() => e.reduce((n, a) => {
|
231
|
+
const s = Fe(t, a, {
|
232
232
|
[r]: !1
|
233
233
|
})[r] || [];
|
234
234
|
return n.concat(s);
|
235
235
|
}, []));
|
236
236
|
}
|
237
|
-
function
|
237
|
+
function Ge(e, t, r, n) {
|
238
238
|
return e.call(n, L(t), L(r), n);
|
239
239
|
}
|
240
|
-
function
|
240
|
+
function Ze(e) {
|
241
241
|
return e.$valid !== void 0 ? !e.$valid : !e;
|
242
242
|
}
|
243
243
|
function Yt(e, t, r, n, a, s, i) {
|
244
244
|
let {
|
245
245
|
$lazy: u,
|
246
246
|
$rewardEarly: l
|
247
|
-
} = a, c = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : [], M = arguments.length > 8 ? arguments[8] : void 0,
|
247
|
+
} = a, c = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : [], M = arguments.length > 8 ? arguments[8] : void 0, y = arguments.length > 9 ? arguments[9] : void 0, j = arguments.length > 10 ? arguments[10] : void 0;
|
248
248
|
const p = N(!!n.value), o = N(0);
|
249
249
|
r.value = !1;
|
250
250
|
const d = X([t, n].concat(c, j), () => {
|
251
|
-
if (u && !n.value || l && !
|
251
|
+
if (u && !n.value || l && !y.value && !r.value)
|
252
252
|
return;
|
253
253
|
let g;
|
254
254
|
try {
|
255
|
-
g =
|
256
|
-
} catch (
|
257
|
-
g = Promise.reject(
|
255
|
+
g = Ge(e, t, M, i);
|
256
|
+
} catch (w) {
|
257
|
+
g = Promise.reject(w);
|
258
258
|
}
|
259
|
-
o.value++, r.value = !!o.value, p.value = !1, Promise.resolve(g).then((
|
260
|
-
o.value--, r.value = !!o.value, s.value =
|
261
|
-
}).catch((
|
262
|
-
o.value--, r.value = !!o.value, s.value =
|
259
|
+
o.value++, r.value = !!o.value, p.value = !1, Promise.resolve(g).then((w) => {
|
260
|
+
o.value--, r.value = !!o.value, s.value = w, p.value = Ze(w);
|
261
|
+
}).catch((w) => {
|
262
|
+
o.value--, r.value = !!o.value, s.value = w, p.value = !0;
|
263
263
|
});
|
264
264
|
}, {
|
265
265
|
immediate: !0,
|
@@ -270,18 +270,18 @@ function Yt(e, t, r, n, a, s, i) {
|
|
270
270
|
$unwatch: d
|
271
271
|
};
|
272
272
|
}
|
273
|
-
function
|
273
|
+
function Qt(e, t, r, n, a, s, i, u) {
|
274
274
|
let {
|
275
275
|
$lazy: l,
|
276
276
|
$rewardEarly: c
|
277
277
|
} = n;
|
278
|
-
const M = () => ({}),
|
278
|
+
const M = () => ({}), y = v(() => {
|
279
279
|
if (l && !r.value || c && !u.value)
|
280
280
|
return !1;
|
281
281
|
let j = !0;
|
282
282
|
try {
|
283
|
-
const p =
|
284
|
-
a.value = p, j =
|
283
|
+
const p = Ge(e, t, i, s);
|
284
|
+
a.value = p, j = Ze(p);
|
285
285
|
} catch (p) {
|
286
286
|
a.value = p;
|
287
287
|
}
|
@@ -289,25 +289,25 @@ function Pt(e, t, r, n, a, s, i, u) {
|
|
289
289
|
});
|
290
290
|
return {
|
291
291
|
$unwatch: M,
|
292
|
-
$invalid:
|
292
|
+
$invalid: y
|
293
293
|
};
|
294
294
|
}
|
295
|
-
function
|
296
|
-
const
|
295
|
+
function Rt(e, t, r, n, a, s, i, u, l, c, M) {
|
296
|
+
const y = N(!1), j = e.$params || {}, p = N(null);
|
297
297
|
let o, d;
|
298
298
|
e.$async ? {
|
299
299
|
$invalid: o,
|
300
300
|
$unwatch: d
|
301
|
-
} = Yt(e.$validator, t,
|
301
|
+
} = Yt(e.$validator, t, y, r, n, p, a, e.$watchTargets, l, c, M) : {
|
302
302
|
$invalid: o,
|
303
303
|
$unwatch: d
|
304
|
-
} =
|
304
|
+
} = Qt(e.$validator, t, r, n, p, a, l, c);
|
305
305
|
const g = e.$message;
|
306
306
|
return {
|
307
|
-
$message: ue(g) ?
|
308
|
-
$pending:
|
307
|
+
$message: ue(g) ? v(() => g(Se({
|
308
|
+
$pending: y,
|
309
309
|
$invalid: o,
|
310
|
-
$params:
|
310
|
+
$params: Se(j),
|
311
311
|
$model: t,
|
312
312
|
$response: p,
|
313
313
|
$validator: s,
|
@@ -315,13 +315,13 @@ function Qt(e, t, r, n, a, s, i, u, l, c, M) {
|
|
315
315
|
$property: i
|
316
316
|
}))) : g || "",
|
317
317
|
$params: j,
|
318
|
-
$pending:
|
318
|
+
$pending: y,
|
319
319
|
$invalid: o,
|
320
320
|
$response: p,
|
321
321
|
$unwatch: d
|
322
322
|
};
|
323
323
|
}
|
324
|
-
function
|
324
|
+
function Ut() {
|
325
325
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
326
326
|
const t = L(e), r = Object.keys(t), n = {}, a = {}, s = {};
|
327
327
|
let i = null;
|
@@ -352,29 +352,29 @@ function Rt() {
|
|
352
352
|
validationGroups: i
|
353
353
|
};
|
354
354
|
}
|
355
|
-
const
|
356
|
-
function
|
357
|
-
const c = Object.keys(e), M = n.get(a, e),
|
355
|
+
const Vt = "__root";
|
356
|
+
function Bt(e, t, r, n, a, s, i, u, l) {
|
357
|
+
const c = Object.keys(e), M = n.get(a, e), y = N(!1), j = N(!1), p = N(0);
|
358
358
|
if (M) {
|
359
359
|
if (!M.$partial)
|
360
360
|
return M;
|
361
|
-
M.$unwatch(),
|
361
|
+
M.$unwatch(), y.value = M.$dirty.value;
|
362
362
|
}
|
363
363
|
const o = {
|
364
|
-
$dirty:
|
364
|
+
$dirty: y,
|
365
365
|
$path: a,
|
366
366
|
$touch: () => {
|
367
|
-
|
367
|
+
y.value || (y.value = !0);
|
368
368
|
},
|
369
369
|
$reset: () => {
|
370
|
-
|
370
|
+
y.value && (y.value = !1);
|
371
371
|
},
|
372
372
|
$commit: () => {
|
373
373
|
}
|
374
374
|
};
|
375
375
|
return c.length ? (c.forEach((d) => {
|
376
|
-
o[d] =
|
377
|
-
}), o.$externalResults =
|
376
|
+
o[d] = Rt(e[d], t, o.$dirty, s, i, d, r, a, l, j, p);
|
377
|
+
}), o.$externalResults = v(() => u.value ? [].concat(u.value).map((d, g) => ({
|
378
378
|
$propertyPath: a,
|
379
379
|
$property: r,
|
380
380
|
$validator: "$externalResults",
|
@@ -383,12 +383,12 @@ function Vt(e, t, r, n, a, s, i, u, l) {
|
|
383
383
|
$params: {},
|
384
384
|
$response: null,
|
385
385
|
$pending: !1
|
386
|
-
})) : []), o.$invalid =
|
386
|
+
})) : []), o.$invalid = v(() => {
|
387
387
|
const d = c.some((g) => L(o[g].$invalid));
|
388
388
|
return j.value = d, !!o.$externalResults.value.length || d;
|
389
|
-
}), o.$pending =
|
389
|
+
}), o.$pending = v(() => c.some((d) => L(o[d].$pending))), o.$error = v(() => o.$dirty.value ? o.$pending.value || o.$invalid.value : !1), o.$silentErrors = v(() => c.filter((d) => L(o[d].$invalid)).map((d) => {
|
390
390
|
const g = o[d];
|
391
|
-
return
|
391
|
+
return W({
|
392
392
|
$propertyPath: a,
|
393
393
|
$property: r,
|
394
394
|
$validator: d,
|
@@ -398,13 +398,13 @@ function Vt(e, t, r, n, a, s, i, u, l) {
|
|
398
398
|
$response: g.$response,
|
399
399
|
$pending: g.$pending
|
400
400
|
});
|
401
|
-
}).concat(o.$externalResults.value)), o.$errors =
|
401
|
+
}).concat(o.$externalResults.value)), o.$errors = v(() => o.$dirty.value ? o.$silentErrors.value : []), o.$unwatch = () => c.forEach((d) => {
|
402
402
|
o[d].$unwatch();
|
403
403
|
}), o.$commit = () => {
|
404
404
|
j.value = !0, p.value = Date.now();
|
405
405
|
}, n.set(a, e, o), o) : (M && n.set(a, e, o), o);
|
406
406
|
}
|
407
|
-
function
|
407
|
+
function Wt(e, t, r, n, a, s, i) {
|
408
408
|
const u = Object.keys(e);
|
409
409
|
return u.length ? u.reduce((l, c) => (l[c] = me({
|
410
410
|
validations: e[c],
|
@@ -417,21 +417,21 @@ function Bt(e, t, r, n, a, s, i) {
|
|
417
417
|
externalResults: i
|
418
418
|
}), l), {}) : {};
|
419
419
|
}
|
420
|
-
function
|
421
|
-
const n =
|
420
|
+
function Ft(e, t, r) {
|
421
|
+
const n = v(() => [t, r].filter((o) => o).reduce((o, d) => o.concat(Object.values(L(d))), [])), a = v({
|
422
422
|
get() {
|
423
423
|
return e.$dirty.value || (n.value.length ? n.value.every((o) => o.$dirty) : !1);
|
424
424
|
},
|
425
425
|
set(o) {
|
426
426
|
e.$dirty.value = o;
|
427
427
|
}
|
428
|
-
}), s =
|
429
|
-
const o = L(e.$silentErrors) || [], d = n.value.filter((g) => (L(g).$silentErrors || []).length).reduce((g,
|
428
|
+
}), s = v(() => {
|
429
|
+
const o = L(e.$silentErrors) || [], d = n.value.filter((g) => (L(g).$silentErrors || []).length).reduce((g, w) => g.concat(...w.$silentErrors), []);
|
430
430
|
return o.concat(d);
|
431
|
-
}), i =
|
432
|
-
const o = L(e.$errors) || [], d = n.value.filter((g) => (L(g).$errors || []).length).reduce((g,
|
431
|
+
}), i = v(() => {
|
432
|
+
const o = L(e.$errors) || [], d = n.value.filter((g) => (L(g).$errors || []).length).reduce((g, w) => g.concat(...w.$errors), []);
|
433
433
|
return o.concat(d);
|
434
|
-
}), u =
|
434
|
+
}), u = v(() => n.value.some((o) => o.$invalid) || L(e.$invalid) || !1), l = v(() => n.value.some((o) => L(o.$pending)) || L(e.$pending) || !1), c = v(() => n.value.some((o) => o.$dirty) || n.value.some((o) => o.$anyDirty) || a.value), M = v(() => a.value ? l.value || u.value : !1), y = () => {
|
435
435
|
e.$touch(), n.value.forEach((o) => {
|
436
436
|
o.$touch();
|
437
437
|
});
|
@@ -444,14 +444,14 @@ function Wt(e, t, r) {
|
|
444
444
|
o.$reset();
|
445
445
|
});
|
446
446
|
};
|
447
|
-
return n.value.length && n.value.every((o) => o.$dirty) &&
|
447
|
+
return n.value.length && n.value.every((o) => o.$dirty) && y(), {
|
448
448
|
$dirty: a,
|
449
449
|
$errors: i,
|
450
450
|
$invalid: u,
|
451
451
|
$anyDirty: c,
|
452
452
|
$error: M,
|
453
453
|
$pending: l,
|
454
|
-
$touch:
|
454
|
+
$touch: y,
|
455
455
|
$reset: p,
|
456
456
|
$silentErrors: s,
|
457
457
|
$commit: j
|
@@ -470,91 +470,91 @@ function me(e) {
|
|
470
470
|
externalResults: c
|
471
471
|
} = e;
|
472
472
|
const M = a ? `${a}.${n}` : n, {
|
473
|
-
rules:
|
473
|
+
rules: y,
|
474
474
|
nestedValidators: j,
|
475
475
|
config: p,
|
476
476
|
validationGroups: o
|
477
|
-
} =
|
477
|
+
} = Ut(t), d = k(k({}, u), p), g = n ? v(() => {
|
478
478
|
const $ = L(r);
|
479
479
|
return $ ? L($[n]) : void 0;
|
480
|
-
}) : r,
|
480
|
+
}) : r, w = k({}, L(c) || {}), I = v(() => {
|
481
481
|
const $ = L(c);
|
482
482
|
return n ? $ ? L($[n]) : void 0 : $;
|
483
|
-
}),
|
483
|
+
}), _ = Bt(y, g, n, i, M, d, l, I, r), S = Wt(j, g, M, i, d, l, I), R = {};
|
484
484
|
o && Object.entries(o).forEach(($) => {
|
485
|
-
let [
|
486
|
-
|
485
|
+
let [U, A] = $;
|
486
|
+
R[U] = {
|
487
487
|
$invalid: ge(A, S, "$invalid"),
|
488
488
|
$error: ge(A, S, "$error"),
|
489
489
|
$pending: ge(A, S, "$pending"),
|
490
|
-
$errors:
|
491
|
-
$silentErrors:
|
490
|
+
$errors: Ee(A, S, "$errors"),
|
491
|
+
$silentErrors: Ee(A, S, "$silentErrors")
|
492
492
|
};
|
493
493
|
});
|
494
494
|
const {
|
495
|
-
$dirty:
|
495
|
+
$dirty: b,
|
496
496
|
$errors: te,
|
497
497
|
$invalid: de,
|
498
|
-
$anyDirty:
|
499
|
-
$error:
|
498
|
+
$anyDirty: qe,
|
499
|
+
$error: et,
|
500
500
|
$pending: Le,
|
501
501
|
$touch: Me,
|
502
|
-
$reset:
|
503
|
-
$silentErrors:
|
504
|
-
$commit:
|
505
|
-
} =
|
502
|
+
$reset: tt,
|
503
|
+
$silentErrors: rt,
|
504
|
+
$commit: Ne
|
505
|
+
} = Ft(_, S, s), nt = n ? v({
|
506
506
|
get: () => L(g),
|
507
507
|
set: ($) => {
|
508
|
-
|
509
|
-
const
|
510
|
-
A && (A[n] =
|
508
|
+
b.value = !0;
|
509
|
+
const U = L(r), A = L(c);
|
510
|
+
A && (A[n] = w[n]), pe(U[n]) ? U[n].value = $ : U[n] = $;
|
511
511
|
}
|
512
512
|
}) : null;
|
513
513
|
n && d.$autoDirty && X(g, () => {
|
514
|
-
|
514
|
+
b.value || Me();
|
515
515
|
const $ = L(c);
|
516
|
-
$ && ($[n] =
|
516
|
+
$ && ($[n] = w[n]);
|
517
517
|
}, {
|
518
518
|
flush: "sync"
|
519
519
|
});
|
520
|
-
async function
|
521
|
-
return Me(), d.$rewardEarly && (
|
520
|
+
async function at() {
|
521
|
+
return Me(), d.$rewardEarly && (Ne(), await se()), await se(), new Promise(($) => {
|
522
522
|
if (!Le.value)
|
523
523
|
return $(!de.value);
|
524
|
-
const
|
525
|
-
$(!de.value),
|
524
|
+
const U = X(Le, () => {
|
525
|
+
$(!de.value), U();
|
526
526
|
});
|
527
527
|
});
|
528
528
|
}
|
529
|
-
function
|
529
|
+
function st($) {
|
530
530
|
return (s.value || {})[$];
|
531
531
|
}
|
532
|
-
function
|
533
|
-
pe(c) ? c.value =
|
532
|
+
function ot() {
|
533
|
+
pe(c) ? c.value = w : Object.keys(w).length === 0 ? Object.keys(c).forEach(($) => {
|
534
534
|
delete c[$];
|
535
|
-
}) : Object.assign(c,
|
535
|
+
}) : Object.assign(c, w);
|
536
536
|
}
|
537
|
-
return
|
538
|
-
$model:
|
539
|
-
$dirty:
|
540
|
-
$error:
|
537
|
+
return W(k(k(k({}, _), {}, {
|
538
|
+
$model: nt,
|
539
|
+
$dirty: b,
|
540
|
+
$error: et,
|
541
541
|
$errors: te,
|
542
542
|
$invalid: de,
|
543
|
-
$anyDirty:
|
543
|
+
$anyDirty: qe,
|
544
544
|
$pending: Le,
|
545
545
|
$touch: Me,
|
546
|
-
$reset:
|
547
|
-
$path: M ||
|
548
|
-
$silentErrors:
|
549
|
-
$validate:
|
550
|
-
$commit:
|
546
|
+
$reset: tt,
|
547
|
+
$path: M || Vt,
|
548
|
+
$silentErrors: rt,
|
549
|
+
$validate: at,
|
550
|
+
$commit: Ne
|
551
551
|
}, s && {
|
552
|
-
$getResultsForChild:
|
553
|
-
$clearExternalResults:
|
554
|
-
$validationGroups:
|
552
|
+
$getResultsForChild: st,
|
553
|
+
$clearExternalResults: ot,
|
554
|
+
$validationGroups: R
|
555
555
|
}), S));
|
556
556
|
}
|
557
|
-
class
|
557
|
+
class Gt {
|
558
558
|
constructor() {
|
559
559
|
this.storage = /* @__PURE__ */ new Map();
|
560
560
|
}
|
@@ -586,30 +586,30 @@ class Ft {
|
|
586
586
|
const re = {
|
587
587
|
COLLECT_ALL: !0,
|
588
588
|
COLLECT_NONE: !1
|
589
|
-
},
|
590
|
-
function
|
589
|
+
}, ze = Symbol("vuelidate#injectChildResults"), Oe = Symbol("vuelidate#removeChildResults");
|
590
|
+
function Zt(e) {
|
591
591
|
let {
|
592
592
|
$scope: t,
|
593
593
|
instance: r
|
594
594
|
} = e;
|
595
|
-
const n = {}, a = N([]), s =
|
596
|
-
function i(M,
|
595
|
+
const n = {}, a = N([]), s = v(() => a.value.reduce((M, y) => (M[y] = L(n[y]), M), {}));
|
596
|
+
function i(M, y) {
|
597
597
|
let {
|
598
598
|
$registerAs: j,
|
599
599
|
$scope: p,
|
600
600
|
$stopPropagation: o
|
601
|
-
} =
|
601
|
+
} = y;
|
602
602
|
o || t === re.COLLECT_NONE || p === re.COLLECT_NONE || t !== re.COLLECT_ALL && t !== p || (n[j] = M, a.value.push(j));
|
603
603
|
}
|
604
604
|
r.__vuelidateInjectInstances = [].concat(r.__vuelidateInjectInstances || [], i);
|
605
605
|
function u(M) {
|
606
|
-
a.value = a.value.filter((
|
606
|
+
a.value = a.value.filter((y) => y !== M), delete n[M];
|
607
607
|
}
|
608
608
|
r.__vuelidateRemoveInstances = [].concat(r.__vuelidateRemoveInstances || [], u);
|
609
|
-
const l = ae(
|
610
|
-
|
609
|
+
const l = ae(ze, []);
|
610
|
+
De(ze, r.__vuelidateInjectInstances);
|
611
611
|
const c = ae(Oe, []);
|
612
|
-
return
|
612
|
+
return De(Oe, r.__vuelidateRemoveInstances), {
|
613
613
|
childResults: s,
|
614
614
|
sendValidationResultsToParent: l,
|
615
615
|
removeValidationResultsFromParent: c
|
@@ -618,11 +618,11 @@ function Gt(e) {
|
|
618
618
|
function He(e) {
|
619
619
|
return new Proxy(e, {
|
620
620
|
get(t, r) {
|
621
|
-
return typeof t[r] == "object" ? He(t[r]) :
|
621
|
+
return typeof t[r] == "object" ? He(t[r]) : v(() => t[r]);
|
622
622
|
}
|
623
623
|
});
|
624
624
|
}
|
625
|
-
let
|
625
|
+
let _e = 0;
|
626
626
|
function Ht(e, t) {
|
627
627
|
var r;
|
628
628
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
@@ -634,13 +634,13 @@ function Ht(e, t) {
|
|
634
634
|
$externalResults: u,
|
635
635
|
currentVueInstance: l
|
636
636
|
} = n;
|
637
|
-
const c = l || ((r =
|
638
|
-
a || (
|
639
|
-
const
|
637
|
+
const c = l || ((r = lt()) === null || r === void 0 ? void 0 : r.proxy), M = c ? c.$options : {};
|
638
|
+
a || (_e += 1, a = `_vuelidate_${_e}`);
|
639
|
+
const y = N({}), j = new Gt(), {
|
640
640
|
childResults: p,
|
641
641
|
sendValidationResultsToParent: o,
|
642
642
|
removeValidationResultsFromParent: d
|
643
|
-
} = c ?
|
643
|
+
} = c ? Zt({
|
644
644
|
$scope: s,
|
645
645
|
instance: c
|
646
646
|
}) : {
|
@@ -648,10 +648,10 @@ function Ht(e, t) {
|
|
648
648
|
};
|
649
649
|
if (!e && M.validations) {
|
650
650
|
const g = M.validations;
|
651
|
-
t = N({}),
|
652
|
-
t.value = c, X(() => ue(g) ? g.call(t.value, new He(t.value)) : g, (
|
653
|
-
|
654
|
-
validations:
|
651
|
+
t = N({}), Ve(() => {
|
652
|
+
t.value = c, X(() => ue(g) ? g.call(t.value, new He(t.value)) : g, (w) => {
|
653
|
+
y.value = me({
|
654
|
+
validations: w,
|
655
655
|
state: t,
|
656
656
|
childResults: p,
|
657
657
|
resultsCache: j,
|
@@ -664,10 +664,10 @@ function Ht(e, t) {
|
|
664
664
|
});
|
665
665
|
}), n = M.validationsConfig || n;
|
666
666
|
} else {
|
667
|
-
const g = pe(e) ||
|
668
|
-
X(g, (
|
669
|
-
|
670
|
-
validations:
|
667
|
+
const g = pe(e) || Pt(e) ? e : W(e || {});
|
668
|
+
X(g, (w) => {
|
669
|
+
y.value = me({
|
670
|
+
validations: w,
|
671
671
|
state: t,
|
672
672
|
childResults: p,
|
673
673
|
resultsCache: j,
|
@@ -679,14 +679,14 @@ function Ht(e, t) {
|
|
679
679
|
immediate: !0
|
680
680
|
});
|
681
681
|
}
|
682
|
-
return c && (o.forEach((g) => g(
|
682
|
+
return c && (o.forEach((g) => g(y, {
|
683
683
|
$registerAs: a,
|
684
684
|
$scope: s,
|
685
685
|
$stopPropagation: i
|
686
|
-
})),
|
686
|
+
})), fe(() => d.forEach((g) => g(a)))), v(() => k(k({}, L(y.value)), p.value));
|
687
687
|
}
|
688
|
-
var
|
689
|
-
const
|
688
|
+
var O = /* @__PURE__ */ ((e) => (e.CHECKBOX = "checkbox", e.TEXT = "text", e.PASSWORD = "password", e))(O || {});
|
689
|
+
const Jt = ["id", "type", "name", "placeholder", "value"], Xt = /* @__PURE__ */ C({
|
690
690
|
__name: "InputText",
|
691
691
|
props: {
|
692
692
|
type: {},
|
@@ -704,7 +704,7 @@ const Zt = ["id", "type", "name", "placeholder", "value"], Jt = /* @__PURE__ */
|
|
704
704
|
}, a = (s) => {
|
705
705
|
r("input", s);
|
706
706
|
};
|
707
|
-
return (s, i) => (
|
707
|
+
return (s, i) => (m(), h("input", G({
|
708
708
|
id: s.id,
|
709
709
|
type: s.type,
|
710
710
|
name: s.name,
|
@@ -713,9 +713,9 @@ const Zt = ["id", "type", "name", "placeholder", "value"], Jt = /* @__PURE__ */
|
|
713
713
|
}, s.$attrs, {
|
714
714
|
onChange: n,
|
715
715
|
onInput: a
|
716
|
-
}), null, 16,
|
716
|
+
}), null, 16, Jt));
|
717
717
|
}
|
718
|
-
}),
|
718
|
+
}), Kt = ["id", "name", "checked", "value"], qt = /* @__PURE__ */ C({
|
719
719
|
__name: "InputCheckbox",
|
720
720
|
props: {
|
721
721
|
defaultChecked: { type: Boolean },
|
@@ -732,16 +732,16 @@ const Zt = ["id", "type", "name", "placeholder", "value"], Jt = /* @__PURE__ */
|
|
732
732
|
const r = t, n = (a) => {
|
733
733
|
r("change", a);
|
734
734
|
};
|
735
|
-
return (a, s) => (
|
735
|
+
return (a, s) => (m(), h("input", G({
|
736
736
|
id: a.id,
|
737
737
|
name: a.name,
|
738
738
|
checked: a.value === "true",
|
739
739
|
value: a.value,
|
740
740
|
class: "pdap-input-checkbox",
|
741
741
|
type: "checkbox"
|
742
|
-
}, a.$attrs, { onChange: n }), null, 16,
|
742
|
+
}, a.$attrs, { onChange: n }), null, 16, Kt));
|
743
743
|
}
|
744
|
-
}),
|
744
|
+
}), er = ["id"], tr = ["for"], rr = /* @__PURE__ */ C({
|
745
745
|
__name: "PdapInput",
|
746
746
|
props: {
|
747
747
|
type: {},
|
@@ -754,30 +754,30 @@ const Zt = ["id", "type", "name", "placeholder", "value"], Jt = /* @__PURE__ */
|
|
754
754
|
defaultChecked: { type: Boolean }
|
755
755
|
},
|
756
756
|
setup(e) {
|
757
|
-
const t = e, r =
|
757
|
+
const t = e, r = v(() => `pdap-${t.name}-input-error`);
|
758
758
|
return (n, a) => {
|
759
759
|
var s;
|
760
|
-
return
|
760
|
+
return m(), h("div", {
|
761
761
|
class: ee({
|
762
762
|
"pdap-input": !0,
|
763
763
|
[`pdap-input-${n.type}`]: !0,
|
764
|
-
[`pdap-input-${n.type}-checked`]: n.type === L(
|
764
|
+
[`pdap-input-${n.type}-checked`]: n.type === L(O).CHECKBOX && n.value === "true",
|
765
765
|
"pdap-input-error": Number((s = n.error) == null ? void 0 : s.length) >= 1
|
766
766
|
})
|
767
767
|
}, [
|
768
|
-
n.type === L(
|
768
|
+
n.type === L(O).CHECKBOX ? (m(), E(qt, G({
|
769
769
|
key: 0,
|
770
770
|
class: "pdap-input-checkbox"
|
771
|
-
}, { ...n.$attrs, ...t }), null, 16)) : (
|
772
|
-
n.error ? (
|
771
|
+
}, { ...n.$attrs, ...t }), null, 16)) : (m(), E(Xt, Lt(G({ key: 1 }, { ...n.$attrs, ...n.$props })), null, 16)),
|
772
|
+
n.error ? (m(), h("div", {
|
773
773
|
key: 2,
|
774
774
|
id: r.value,
|
775
775
|
class: "pdap-input-error-message"
|
776
|
-
},
|
777
|
-
|
776
|
+
}, z(n.error), 9, er)) : P("", !0),
|
777
|
+
f("label", {
|
778
778
|
class: "pdap-input-label",
|
779
779
|
for: n.id
|
780
|
-
},
|
780
|
+
}, z(n.label), 9, tr)
|
781
781
|
], 2);
|
782
782
|
};
|
783
783
|
}
|
@@ -792,18 +792,18 @@ function be(e, t) {
|
|
792
792
|
}
|
793
793
|
return r;
|
794
794
|
}
|
795
|
-
function
|
795
|
+
function Z(e) {
|
796
796
|
for (var t = 1; t < arguments.length; t++) {
|
797
797
|
var r = arguments[t] != null ? arguments[t] : {};
|
798
798
|
t % 2 ? be(Object(r), !0).forEach(function(n) {
|
799
|
-
|
799
|
+
nr(e, n, r[n]);
|
800
800
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : be(Object(r)).forEach(function(n) {
|
801
801
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
802
802
|
});
|
803
803
|
}
|
804
804
|
return e;
|
805
805
|
}
|
806
|
-
function
|
806
|
+
function nr(e, t, r) {
|
807
807
|
return t in e ? Object.defineProperty(e, t, {
|
808
808
|
value: r,
|
809
809
|
enumerable: !0,
|
@@ -818,26 +818,26 @@ function ie(e) {
|
|
818
818
|
return e !== null && typeof e == "object" && !Array.isArray(e);
|
819
819
|
}
|
820
820
|
function ce(e) {
|
821
|
-
return K(e.$validator) ?
|
821
|
+
return K(e.$validator) ? Z({}, e) : {
|
822
822
|
$validator: e
|
823
823
|
};
|
824
824
|
}
|
825
|
-
function
|
825
|
+
function ar(e) {
|
826
826
|
return ie(e) && K(e.then);
|
827
827
|
}
|
828
828
|
function Y(e) {
|
829
829
|
return typeof e == "object" ? e.$valid : e;
|
830
830
|
}
|
831
|
-
function
|
831
|
+
function B(e) {
|
832
832
|
return e.$validator || e;
|
833
833
|
}
|
834
|
-
function
|
834
|
+
function we(e, t) {
|
835
835
|
if (!ie(e))
|
836
836
|
throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof e}`);
|
837
837
|
if (!ie(t) && !K(t))
|
838
838
|
throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");
|
839
839
|
const r = ce(t);
|
840
|
-
return r.$params =
|
840
|
+
return r.$params = Z(Z({}, r.$params || {}), e), r;
|
841
841
|
}
|
842
842
|
function q(e, t) {
|
843
843
|
if (!K(e) && typeof L(e) != "string")
|
@@ -847,46 +847,46 @@ function q(e, t) {
|
|
847
847
|
const r = ce(t);
|
848
848
|
return r.$message = e, r;
|
849
849
|
}
|
850
|
-
function
|
850
|
+
function sr(e) {
|
851
851
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
852
852
|
const r = ce(e);
|
853
|
-
return
|
853
|
+
return Z(Z({}, r), {}, {
|
854
854
|
$async: !0,
|
855
855
|
$watchTargets: t
|
856
856
|
});
|
857
857
|
}
|
858
|
-
function
|
858
|
+
function or(e) {
|
859
859
|
return {
|
860
860
|
$validator(t) {
|
861
861
|
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
|
862
862
|
n[a - 1] = arguments[a];
|
863
863
|
return L(t).reduce((s, i, u) => {
|
864
864
|
const l = Object.entries(i).reduce((c, M) => {
|
865
|
-
let [
|
866
|
-
const p = e[
|
867
|
-
let [
|
868
|
-
const S =
|
869
|
-
if (d.$data[
|
870
|
-
let
|
865
|
+
let [y, j] = M;
|
866
|
+
const p = e[y] || {}, o = Object.entries(p).reduce((d, g) => {
|
867
|
+
let [w, I] = g;
|
868
|
+
const S = B(I).call(this, j, i, u, ...n), R = Y(S);
|
869
|
+
if (d.$data[w] = S, d.$data.$invalid = !R || !!d.$data.$invalid, d.$data.$error = d.$data.$invalid, !R) {
|
870
|
+
let b = I.$message || "";
|
871
871
|
const te = I.$params || {};
|
872
|
-
typeof
|
872
|
+
typeof b == "function" && (b = b({
|
873
873
|
$pending: !1,
|
874
|
-
$invalid: !
|
874
|
+
$invalid: !R,
|
875
875
|
$params: te,
|
876
876
|
$model: j,
|
877
877
|
$response: S
|
878
878
|
})), d.$errors.push({
|
879
|
-
$property:
|
880
|
-
$message:
|
879
|
+
$property: y,
|
880
|
+
$message: b,
|
881
881
|
$params: te,
|
882
882
|
$response: S,
|
883
883
|
$model: j,
|
884
884
|
$pending: !1,
|
885
|
-
$validator:
|
885
|
+
$validator: w
|
886
886
|
});
|
887
887
|
}
|
888
888
|
return {
|
889
|
-
$valid: d.$valid &&
|
889
|
+
$valid: d.$valid && R,
|
890
890
|
$data: d.$data,
|
891
891
|
$errors: d.$errors
|
892
892
|
};
|
@@ -895,7 +895,7 @@ function sr(e) {
|
|
895
895
|
$data: {},
|
896
896
|
$errors: []
|
897
897
|
});
|
898
|
-
return c.$data[
|
898
|
+
return c.$data[y] = o.$data, c.$errors[y] = o.$errors, {
|
899
899
|
$valid: c.$valid && o.$valid,
|
900
900
|
$data: c.$data,
|
901
901
|
$errors: c.$errors
|
@@ -939,50 +939,50 @@ const x = (e) => {
|
|
939
939
|
return !1;
|
940
940
|
}
|
941
941
|
return !!String(e).length;
|
942
|
-
},
|
943
|
-
function
|
942
|
+
}, he = (e) => (e = L(e), Array.isArray(e) ? e.length : typeof e == "object" ? Object.keys(e).length : String(e).length);
|
943
|
+
function Q() {
|
944
944
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
945
945
|
t[r] = arguments[r];
|
946
946
|
return (n) => (n = L(n), !x(n) || t.every((a) => (a.lastIndex = 0, a.test(n))));
|
947
947
|
}
|
948
|
-
var
|
948
|
+
var H = /* @__PURE__ */ Object.freeze({
|
949
949
|
__proto__: null,
|
950
|
-
forEach:
|
951
|
-
len:
|
950
|
+
forEach: or,
|
951
|
+
len: he,
|
952
952
|
normalizeValidatorObject: ce,
|
953
|
-
regex:
|
953
|
+
regex: Q,
|
954
954
|
req: x,
|
955
955
|
unwrap: L,
|
956
|
-
unwrapNormalizedValidator:
|
956
|
+
unwrapNormalizedValidator: B,
|
957
957
|
unwrapValidatorResponse: Y,
|
958
|
-
withAsync:
|
958
|
+
withAsync: sr,
|
959
959
|
withMessage: q,
|
960
|
-
withParams:
|
961
|
-
}),
|
962
|
-
$validator:
|
960
|
+
withParams: we
|
961
|
+
}), ur = Q(/^[a-zA-Z]*$/), ir = {
|
962
|
+
$validator: ur,
|
963
963
|
$message: "The value is not alphabetical",
|
964
964
|
$params: {
|
965
965
|
type: "alpha"
|
966
966
|
}
|
967
|
-
},
|
968
|
-
$validator:
|
967
|
+
}, lr = Q(/^[a-zA-Z0-9]*$/), cr = {
|
968
|
+
$validator: lr,
|
969
969
|
$message: "The value must be alpha-numeric",
|
970
970
|
$params: {
|
971
971
|
type: "alphaNum"
|
972
972
|
}
|
973
|
-
},
|
974
|
-
$validator:
|
973
|
+
}, dr = Q(/^\d*(\.\d+)?$/), Lr = {
|
974
|
+
$validator: dr,
|
975
975
|
$message: "Value must be numeric",
|
976
976
|
$params: {
|
977
977
|
type: "numeric"
|
978
978
|
}
|
979
979
|
};
|
980
|
-
function
|
980
|
+
function Mr(e, t) {
|
981
981
|
return (r) => !x(r) || (!/\s/.test(r) || r instanceof Date) && +L(e) <= +r && +L(t) >= +r;
|
982
982
|
}
|
983
|
-
function
|
983
|
+
function gr(e, t) {
|
984
984
|
return {
|
985
|
-
$validator:
|
985
|
+
$validator: Mr(e, t),
|
986
986
|
$message: (r) => {
|
987
987
|
let {
|
988
988
|
$params: n
|
@@ -996,15 +996,15 @@ function Mr(e, t) {
|
|
996
996
|
}
|
997
997
|
};
|
998
998
|
}
|
999
|
-
const
|
1000
|
-
var
|
1001
|
-
$validator:
|
999
|
+
const pr = /^(?:[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;
|
1000
|
+
var jr = Q(pr), ve = {
|
1001
|
+
$validator: jr,
|
1002
1002
|
$message: "Value is not a valid email address",
|
1003
1003
|
$params: {
|
1004
1004
|
type: "email"
|
1005
1005
|
}
|
1006
1006
|
};
|
1007
|
-
function
|
1007
|
+
function yr(e) {
|
1008
1008
|
if (!x(e))
|
1009
1009
|
return !0;
|
1010
1010
|
if (typeof e != "string")
|
@@ -1018,14 +1018,14 @@ const mr = (e) => {
|
|
1018
1018
|
const t = +e | 0;
|
1019
1019
|
return t >= 0 && t <= 255;
|
1020
1020
|
};
|
1021
|
-
var
|
1022
|
-
$validator:
|
1021
|
+
var fr = {
|
1022
|
+
$validator: yr,
|
1023
1023
|
$message: "The value is not a valid IP address",
|
1024
1024
|
$params: {
|
1025
1025
|
type: "ipAddress"
|
1026
1026
|
}
|
1027
1027
|
};
|
1028
|
-
function
|
1028
|
+
function wr() {
|
1029
1029
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ":";
|
1030
1030
|
return (t) => {
|
1031
1031
|
if (e = L(e), !x(t))
|
@@ -1033,25 +1033,25 @@ function fr() {
|
|
1033
1033
|
if (typeof t != "string")
|
1034
1034
|
return !1;
|
1035
1035
|
const r = typeof e == "string" && e !== "" ? t.split(e) : t.length === 12 || t.length === 16 ? t.match(/.{2}/g) : null;
|
1036
|
-
return r !== null && (r.length === 6 || r.length === 8) && r.every(
|
1036
|
+
return r !== null && (r.length === 6 || r.length === 8) && r.every(hr);
|
1037
1037
|
};
|
1038
1038
|
}
|
1039
|
-
const
|
1040
|
-
function
|
1039
|
+
const hr = (e) => e.toLowerCase().match(/^[0-9a-f]{2}$/);
|
1040
|
+
function vr(e) {
|
1041
1041
|
return {
|
1042
|
-
$validator:
|
1042
|
+
$validator: wr(e),
|
1043
1043
|
$message: "The value is not a valid MAC Address",
|
1044
1044
|
$params: {
|
1045
1045
|
type: "macAddress"
|
1046
1046
|
}
|
1047
1047
|
};
|
1048
1048
|
}
|
1049
|
-
function vr(e) {
|
1050
|
-
return (t) => !x(t) || we(t) <= L(e);
|
1051
|
-
}
|
1052
1049
|
function $r(e) {
|
1050
|
+
return (t) => !x(t) || he(t) <= L(e);
|
1051
|
+
}
|
1052
|
+
function Nr(e) {
|
1053
1053
|
return {
|
1054
|
-
$validator:
|
1054
|
+
$validator: $r(e),
|
1055
1055
|
$message: (t) => {
|
1056
1056
|
let {
|
1057
1057
|
$params: r
|
@@ -1064,12 +1064,12 @@ function $r(e) {
|
|
1064
1064
|
}
|
1065
1065
|
};
|
1066
1066
|
}
|
1067
|
-
function Nr(e) {
|
1068
|
-
return (t) => !x(t) || we(t) >= L(e);
|
1069
|
-
}
|
1070
1067
|
function Dr(e) {
|
1068
|
+
return (t) => !x(t) || he(t) >= L(e);
|
1069
|
+
}
|
1070
|
+
function Tr(e) {
|
1071
1071
|
return {
|
1072
|
-
$validator:
|
1072
|
+
$validator: Dr(e),
|
1073
1073
|
$message: (t) => {
|
1074
1074
|
let {
|
1075
1075
|
$params: r
|
@@ -1082,28 +1082,28 @@ function Dr(e) {
|
|
1082
1082
|
}
|
1083
1083
|
};
|
1084
1084
|
}
|
1085
|
-
function
|
1085
|
+
function Cr(e) {
|
1086
1086
|
return typeof e == "string" && (e = e.trim()), x(e);
|
1087
1087
|
}
|
1088
|
-
var
|
1089
|
-
$validator:
|
1088
|
+
var $e = {
|
1089
|
+
$validator: Cr,
|
1090
1090
|
$message: "Value is required",
|
1091
1091
|
$params: {
|
1092
1092
|
type: "required"
|
1093
1093
|
}
|
1094
1094
|
};
|
1095
|
-
const
|
1096
|
-
function
|
1095
|
+
const Ae = (e, t) => e ? x(typeof t == "string" ? t.trim() : t) : !0;
|
1096
|
+
function xr(e) {
|
1097
1097
|
return function(t, r) {
|
1098
1098
|
if (typeof e != "function")
|
1099
|
-
return
|
1099
|
+
return Ae(L(e), t);
|
1100
1100
|
const n = e.call(this, t, r);
|
1101
|
-
return
|
1101
|
+
return Ae(n, t);
|
1102
1102
|
};
|
1103
1103
|
}
|
1104
|
-
function
|
1104
|
+
function Ir(e) {
|
1105
1105
|
return {
|
1106
|
-
$validator:
|
1106
|
+
$validator: xr(e),
|
1107
1107
|
$message: "The value is required",
|
1108
1108
|
$params: {
|
1109
1109
|
type: "requiredIf",
|
@@ -1111,18 +1111,18 @@ function xr(e) {
|
|
1111
1111
|
}
|
1112
1112
|
};
|
1113
1113
|
}
|
1114
|
-
const
|
1115
|
-
function
|
1114
|
+
const ke = (e, t) => e ? !0 : x(typeof t == "string" ? t.trim() : t);
|
1115
|
+
function Sr(e) {
|
1116
1116
|
return function(t, r) {
|
1117
1117
|
if (typeof e != "function")
|
1118
|
-
return
|
1118
|
+
return ke(L(e), t);
|
1119
1119
|
const n = e.call(this, t, r);
|
1120
|
-
return
|
1120
|
+
return ke(n, t);
|
1121
1121
|
};
|
1122
1122
|
}
|
1123
|
-
function
|
1123
|
+
function Er(e) {
|
1124
1124
|
return {
|
1125
|
-
$validator:
|
1125
|
+
$validator: Sr(e),
|
1126
1126
|
$message: "The value is required",
|
1127
1127
|
$params: {
|
1128
1128
|
type: "requiredUnless",
|
@@ -1130,13 +1130,13 @@ function Sr(e) {
|
|
1130
1130
|
}
|
1131
1131
|
};
|
1132
1132
|
}
|
1133
|
-
function
|
1133
|
+
function zr(e) {
|
1134
1134
|
return (t) => L(t) === L(e);
|
1135
1135
|
}
|
1136
1136
|
function Or(e) {
|
1137
1137
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "other";
|
1138
1138
|
return {
|
1139
|
-
$validator:
|
1139
|
+
$validator: zr(e),
|
1140
1140
|
$message: (r) => `The value must be equal to the ${t} value`,
|
1141
1141
|
$params: {
|
1142
1142
|
equalTo: e,
|
@@ -1145,28 +1145,28 @@ function Or(e) {
|
|
1145
1145
|
}
|
1146
1146
|
};
|
1147
1147
|
}
|
1148
|
-
const
|
1149
|
-
var br =
|
1148
|
+
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;
|
1149
|
+
var br = Q(_r), Ar = {
|
1150
1150
|
$validator: br,
|
1151
1151
|
$message: "The value is not a valid URL address",
|
1152
1152
|
$params: {
|
1153
1153
|
type: "url"
|
1154
1154
|
}
|
1155
1155
|
};
|
1156
|
-
function
|
1156
|
+
function kr(e) {
|
1157
1157
|
return function() {
|
1158
1158
|
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
|
1159
1159
|
r[n] = arguments[n];
|
1160
|
-
return e.reduce((a, s) => Y(a) ? a :
|
1160
|
+
return e.reduce((a, s) => Y(a) ? a : B(s).apply(this, r), !1);
|
1161
1161
|
};
|
1162
1162
|
}
|
1163
|
-
function
|
1163
|
+
function Pr(e) {
|
1164
1164
|
return function() {
|
1165
1165
|
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
|
1166
1166
|
r[n] = arguments[n];
|
1167
1167
|
return e.reduce(async (a, s) => {
|
1168
1168
|
const i = await a;
|
1169
|
-
return Y(i) ? i :
|
1169
|
+
return Y(i) ? i : B(s).apply(this, r);
|
1170
1170
|
}, Promise.resolve(!1));
|
1171
1171
|
};
|
1172
1172
|
}
|
@@ -1175,73 +1175,73 @@ function Yr() {
|
|
1175
1175
|
t[r] = arguments[r];
|
1176
1176
|
const n = t.some((i) => i.$async), a = t.reduce((i, u) => u.$watchTargets ? i.concat(u.$watchTargets) : i, []);
|
1177
1177
|
let s = () => !1;
|
1178
|
-
return t.length && (s = n ?
|
1178
|
+
return t.length && (s = n ? Pr(t) : kr(t)), {
|
1179
1179
|
$async: n,
|
1180
1180
|
$validator: s,
|
1181
1181
|
$watchTargets: a
|
1182
1182
|
};
|
1183
1183
|
}
|
1184
|
-
function
|
1185
|
-
return
|
1184
|
+
function Qr() {
|
1185
|
+
return we({
|
1186
1186
|
type: "or"
|
1187
1187
|
}, q("The value does not match any of the provided validators", Yr(...arguments)));
|
1188
1188
|
}
|
1189
|
-
function
|
1189
|
+
function Rr(e) {
|
1190
1190
|
return function() {
|
1191
1191
|
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
|
1192
1192
|
r[n] = arguments[n];
|
1193
|
-
return e.reduce((a, s) => Y(a) ?
|
1193
|
+
return e.reduce((a, s) => Y(a) ? B(s).apply(this, r) : a, !0);
|
1194
1194
|
};
|
1195
1195
|
}
|
1196
|
-
function
|
1196
|
+
function Ur(e) {
|
1197
1197
|
return function() {
|
1198
1198
|
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
|
1199
1199
|
r[n] = arguments[n];
|
1200
1200
|
return e.reduce(async (a, s) => {
|
1201
1201
|
const i = await a;
|
1202
|
-
return Y(i) ?
|
1202
|
+
return Y(i) ? B(s).apply(this, r) : i;
|
1203
1203
|
}, Promise.resolve(!0));
|
1204
1204
|
};
|
1205
1205
|
}
|
1206
|
-
function
|
1206
|
+
function Vr() {
|
1207
1207
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
1208
1208
|
t[r] = arguments[r];
|
1209
1209
|
const n = t.some((i) => i.$async), a = t.reduce((i, u) => u.$watchTargets ? i.concat(u.$watchTargets) : i, []);
|
1210
1210
|
let s = () => !1;
|
1211
|
-
return t.length && (s = n ?
|
1211
|
+
return t.length && (s = n ? Ur(t) : Rr(t)), {
|
1212
1212
|
$async: n,
|
1213
1213
|
$validator: s,
|
1214
1214
|
$watchTargets: a
|
1215
1215
|
};
|
1216
1216
|
}
|
1217
|
-
function
|
1218
|
-
return
|
1217
|
+
function Br() {
|
1218
|
+
return we({
|
1219
1219
|
type: "and"
|
1220
|
-
}, q("The value does not match all of the provided validators",
|
1220
|
+
}, q("The value does not match all of the provided validators", Vr(...arguments)));
|
1221
1221
|
}
|
1222
|
-
function
|
1222
|
+
function Wr(e) {
|
1223
1223
|
return function(t, r) {
|
1224
1224
|
if (!x(t))
|
1225
1225
|
return !0;
|
1226
|
-
const n =
|
1227
|
-
return
|
1226
|
+
const n = B(e).call(this, t, r);
|
1227
|
+
return ar(n) ? n.then((a) => !Y(a)) : !Y(n);
|
1228
1228
|
};
|
1229
1229
|
}
|
1230
|
-
function
|
1230
|
+
function Fr(e) {
|
1231
1231
|
return {
|
1232
|
-
$validator:
|
1232
|
+
$validator: Wr(e),
|
1233
1233
|
$message: "The value does not match the provided validator",
|
1234
1234
|
$params: {
|
1235
1235
|
type: "not"
|
1236
1236
|
}
|
1237
1237
|
};
|
1238
1238
|
}
|
1239
|
-
function
|
1239
|
+
function Gr(e) {
|
1240
1240
|
return (t) => !x(t) || (!/\s/.test(t) || t instanceof Date) && +t >= +L(e);
|
1241
1241
|
}
|
1242
|
-
function
|
1242
|
+
function Zr(e) {
|
1243
1243
|
return {
|
1244
|
-
$validator:
|
1244
|
+
$validator: Gr(e),
|
1245
1245
|
$message: (t) => {
|
1246
1246
|
let {
|
1247
1247
|
$params: r
|
@@ -1257,7 +1257,7 @@ function Gr(e) {
|
|
1257
1257
|
function Hr(e) {
|
1258
1258
|
return (t) => !x(t) || (!/\s/.test(t) || t instanceof Date) && +t <= +L(e);
|
1259
1259
|
}
|
1260
|
-
var
|
1260
|
+
var Jr = (e) => ({
|
1261
1261
|
$validator: Hr(e),
|
1262
1262
|
$message: (t) => {
|
1263
1263
|
let {
|
@@ -1269,20 +1269,20 @@ var Zr = (e) => ({
|
|
1269
1269
|
max: e,
|
1270
1270
|
type: "maxValue"
|
1271
1271
|
}
|
1272
|
-
}),
|
1273
|
-
$validator:
|
1272
|
+
}), Xr = Q(/(^[0-9]*$)|(^-[0-9]+$)/), Kr = {
|
1273
|
+
$validator: Xr,
|
1274
1274
|
$message: "Value is not an integer",
|
1275
1275
|
$params: {
|
1276
1276
|
type: "integer"
|
1277
1277
|
}
|
1278
|
-
},
|
1279
|
-
$validator:
|
1278
|
+
}, qr = Q(/^[-]?\d*(\.\d+)?$/), en = {
|
1279
|
+
$validator: qr,
|
1280
1280
|
$message: "Value must be decimal",
|
1281
1281
|
$params: {
|
1282
1282
|
type: "decimal"
|
1283
1283
|
}
|
1284
1284
|
};
|
1285
|
-
function
|
1285
|
+
function tn(e) {
|
1286
1286
|
let {
|
1287
1287
|
t,
|
1288
1288
|
messagePath: r = (a) => {
|
@@ -1300,7 +1300,7 @@ function en(e) {
|
|
1300
1300
|
messageParams: l = n
|
1301
1301
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
1302
1302
|
function c(M) {
|
1303
|
-
return t(u(M), l(
|
1303
|
+
return t(u(M), l(Z({
|
1304
1304
|
model: M.$model,
|
1305
1305
|
property: M.$property,
|
1306
1306
|
pending: M.$pending,
|
@@ -1315,110 +1315,110 @@ function en(e) {
|
|
1315
1315
|
} : q(c, s);
|
1316
1316
|
};
|
1317
1317
|
}
|
1318
|
-
const
|
1318
|
+
const Je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1319
1319
|
__proto__: null,
|
1320
|
-
alpha:
|
1321
|
-
alphaNum:
|
1322
|
-
and:
|
1323
|
-
between:
|
1324
|
-
createI18nMessage:
|
1325
|
-
decimal:
|
1326
|
-
email:
|
1327
|
-
helpers:
|
1328
|
-
integer:
|
1329
|
-
ipAddress:
|
1330
|
-
macAddress:
|
1331
|
-
maxLength:
|
1332
|
-
maxValue:
|
1333
|
-
minLength:
|
1334
|
-
minValue:
|
1335
|
-
not:
|
1336
|
-
numeric:
|
1337
|
-
or:
|
1338
|
-
required:
|
1339
|
-
requiredIf:
|
1340
|
-
requiredUnless:
|
1320
|
+
alpha: ir,
|
1321
|
+
alphaNum: cr,
|
1322
|
+
and: Br,
|
1323
|
+
between: gr,
|
1324
|
+
createI18nMessage: tn,
|
1325
|
+
decimal: en,
|
1326
|
+
email: ve,
|
1327
|
+
helpers: H,
|
1328
|
+
integer: Kr,
|
1329
|
+
ipAddress: fr,
|
1330
|
+
macAddress: vr,
|
1331
|
+
maxLength: Nr,
|
1332
|
+
maxValue: Jr,
|
1333
|
+
minLength: Tr,
|
1334
|
+
minValue: Zr,
|
1335
|
+
not: Fr,
|
1336
|
+
numeric: Lr,
|
1337
|
+
or: Qr,
|
1338
|
+
required: $e,
|
1339
|
+
requiredIf: Ir,
|
1340
|
+
requiredUnless: Er,
|
1341
1341
|
sameAs: Or,
|
1342
|
-
url:
|
1343
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
1342
|
+
url: Ar
|
1343
|
+
}, Symbol.toStringTag, { value: "Module" })), Xe = H.regex(
|
1344
1344
|
/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$ %^&*-]).{8,}$/
|
1345
1345
|
);
|
1346
|
-
function
|
1346
|
+
function Pe(e) {
|
1347
1347
|
return ["maxLength", "minLength"].includes(e);
|
1348
1348
|
}
|
1349
1349
|
function Ye(e) {
|
1350
1350
|
return e === "required";
|
1351
1351
|
}
|
1352
|
-
function
|
1352
|
+
function Qe(e) {
|
1353
1353
|
return e === "email";
|
1354
1354
|
}
|
1355
|
-
function
|
1355
|
+
function Re(e) {
|
1356
1356
|
return e === "password";
|
1357
1357
|
}
|
1358
|
-
function
|
1358
|
+
function rn(e, t) {
|
1359
1359
|
return {
|
1360
|
-
[e]:
|
1360
|
+
[e]: Je[e](t)
|
1361
1361
|
};
|
1362
1362
|
}
|
1363
|
-
function
|
1363
|
+
function nn(e, t, r) {
|
1364
1364
|
return {
|
1365
|
-
[e]:
|
1365
|
+
[e]: H.withMessage(r, Je[e](t))
|
1366
1366
|
};
|
1367
1367
|
}
|
1368
|
-
function
|
1369
|
-
return { required:
|
1368
|
+
function an() {
|
1369
|
+
return { required: $e };
|
1370
1370
|
}
|
1371
|
-
function
|
1371
|
+
function sn(e) {
|
1372
1372
|
return {
|
1373
|
-
required:
|
1373
|
+
required: H.withMessage(e, $e)
|
1374
1374
|
};
|
1375
1375
|
}
|
1376
|
-
function
|
1377
|
-
return { email:
|
1376
|
+
function on() {
|
1377
|
+
return { email: ve };
|
1378
1378
|
}
|
1379
|
-
function
|
1379
|
+
function un(e) {
|
1380
1380
|
return {
|
1381
|
-
email:
|
1381
|
+
email: H.withMessage(e, ve)
|
1382
1382
|
};
|
1383
1383
|
}
|
1384
|
-
function
|
1385
|
-
return { password:
|
1384
|
+
function ln() {
|
1385
|
+
return { password: Xe };
|
1386
1386
|
}
|
1387
|
-
function
|
1387
|
+
function cn(e) {
|
1388
1388
|
return {
|
1389
|
-
password:
|
1389
|
+
password: H.withMessage(e, Xe)
|
1390
1390
|
};
|
1391
1391
|
}
|
1392
|
-
function
|
1393
|
-
if (
|
1394
|
-
return
|
1392
|
+
function dn(e, t) {
|
1393
|
+
if (Pe(e) && typeof t.message == "string" && typeof t.value == "number")
|
1394
|
+
return nn(
|
1395
1395
|
e,
|
1396
1396
|
t.value,
|
1397
1397
|
t.message
|
1398
1398
|
);
|
1399
|
-
if (
|
1400
|
-
return
|
1401
|
-
if (Pe(e) && typeof t.message == "string")
|
1402
|
-
return on(t.message);
|
1403
|
-
if (Pe(e) && typeof t.message > "u")
|
1404
|
-
return sn();
|
1399
|
+
if (Pe(e) && typeof t.message > "u" && typeof t.value == "number")
|
1400
|
+
return rn(e, t.value);
|
1405
1401
|
if (Qe(e) && typeof t.message == "string")
|
1406
|
-
return
|
1402
|
+
return un(t.message);
|
1407
1403
|
if (Qe(e) && typeof t.message > "u")
|
1408
|
-
return
|
1404
|
+
return on();
|
1405
|
+
if (Re(e) && typeof t.message == "string")
|
1406
|
+
return cn(t.message);
|
1407
|
+
if (Re(e) && typeof t.message > "u")
|
1408
|
+
return ln();
|
1409
1409
|
if (Ye(e) && typeof t.message == "string")
|
1410
|
-
return
|
1410
|
+
return sn(t.message);
|
1411
1411
|
if (Ye(e) && typeof t.message > "u")
|
1412
|
-
return
|
1412
|
+
return an();
|
1413
1413
|
throw new Error("No valid rule detected");
|
1414
1414
|
}
|
1415
|
-
const
|
1415
|
+
const Ln = ["id", "name"], Mn = {
|
1416
1416
|
key: 0,
|
1417
1417
|
class: "pdap-form-error-message"
|
1418
|
-
},
|
1418
|
+
}, gn = {
|
1419
1419
|
name: "PdapForm"
|
1420
|
-
},
|
1421
|
-
...
|
1420
|
+
}, pn = /* @__PURE__ */ C({
|
1421
|
+
...gn,
|
1422
1422
|
props: {
|
1423
1423
|
error: { default: null },
|
1424
1424
|
id: {},
|
@@ -1427,7 +1427,7 @@ const dn = ["id", "name"], Ln = {
|
|
1427
1427
|
},
|
1428
1428
|
emits: ["submit", "change"],
|
1429
1429
|
setup(e, { emit: t }) {
|
1430
|
-
const r = e, n = t, a =
|
1430
|
+
const r = e, n = t, a = v(
|
1431
1431
|
() => r.schema.map((j) => {
|
1432
1432
|
const p = { ...j };
|
1433
1433
|
return delete p.validators, p;
|
@@ -1435,19 +1435,19 @@ const dn = ["id", "name"], Ln = {
|
|
1435
1435
|
), s = N(
|
1436
1436
|
a.value.reduce((j, p) => {
|
1437
1437
|
switch (p.type) {
|
1438
|
-
case
|
1438
|
+
case O.CHECKBOX:
|
1439
1439
|
return { ...j, [p.name]: String(p.defaultChecked) };
|
1440
|
-
case
|
1441
|
-
case
|
1440
|
+
case O.TEXT:
|
1441
|
+
case O.PASSWORD:
|
1442
1442
|
default:
|
1443
1443
|
return { ...j, [p.name]: p.value };
|
1444
1444
|
}
|
1445
1445
|
}, {})
|
1446
1446
|
), i = r.schema.reduce((j, p) => {
|
1447
1447
|
const o = Object.entries(p.validators ?? {}).reduce(
|
1448
|
-
(d, [g,
|
1448
|
+
(d, [g, w]) => ({
|
1449
1449
|
...d,
|
1450
|
-
...
|
1450
|
+
...dn(g, w)
|
1451
1451
|
}),
|
1452
1452
|
{}
|
1453
1453
|
);
|
@@ -1459,54 +1459,54 @@ const dn = ["id", "name"], Ln = {
|
|
1459
1459
|
};
|
1460
1460
|
}, {}), u = Ht(i, s, { $autoDirty: !1, $lazy: !0 }), l = N(r.error);
|
1461
1461
|
function c(j, p) {
|
1462
|
-
const o = p.target, d = o.type ===
|
1462
|
+
const o = p.target, d = o.type === O.CHECKBOX && typeof o.checked == "boolean" ? o.checked.toString() : o.value;
|
1463
1463
|
s.value[j] = d, M();
|
1464
1464
|
}
|
1465
|
-
|
1465
|
+
Te(() => {
|
1466
1466
|
r.error ? l.value = r.error : l.value && u.value.$errors.length === 0 ? l.value = null : !l.value && u.value.$errors.length > 0 && (l.value = "Please update this form to correct the errors");
|
1467
|
-
}),
|
1467
|
+
}), Te(() => {
|
1468
1468
|
});
|
1469
1469
|
function M() {
|
1470
1470
|
n("change", { ...s.value });
|
1471
1471
|
}
|
1472
|
-
async function
|
1472
|
+
async function y(j) {
|
1473
1473
|
if (await u.value.$validate()) {
|
1474
1474
|
n("submit", { ...s.value }), u.value.$reset(), j.target.reset(), s.value = Object.entries(s).reduce((d, [g]) => ({ ...d, [g]: "" }), {});
|
1475
1475
|
return;
|
1476
1476
|
}
|
1477
1477
|
}
|
1478
|
-
return (j, p) => (
|
1478
|
+
return (j, p) => (m(), h("form", {
|
1479
1479
|
id: j.id,
|
1480
1480
|
name: j.name,
|
1481
1481
|
class: "pdap-form",
|
1482
1482
|
onChange: M,
|
1483
|
-
onSubmit: p[0] || (p[0] = je((o) =>
|
1483
|
+
onSubmit: p[0] || (p[0] = je((o) => y(o), ["prevent"]))
|
1484
1484
|
}, [
|
1485
|
-
typeof l.value == "string" ? (
|
1486
|
-
(
|
1487
|
-
var d, g,
|
1488
|
-
return
|
1485
|
+
typeof l.value == "string" ? (m(), h("div", Mn, z(l.value), 1)) : P("", !0),
|
1486
|
+
(m(!0), h(F, null, le(a.value, (o) => {
|
1487
|
+
var d, g, w, I;
|
1488
|
+
return m(), E(rr, G(o, {
|
1489
1489
|
key: o.name,
|
1490
|
-
error: (d = L(u)[o.name]) != null && d.$error ? (I = (
|
1490
|
+
error: (d = L(u)[o.name]) != null && d.$error ? (I = (w = (g = L(u)[o.name]) == null ? void 0 : g.$errors) == null ? void 0 : w[0]) == null ? void 0 : I.$message : "",
|
1491
1491
|
value: s.value[o.name],
|
1492
|
-
onChange: (
|
1492
|
+
onChange: (_) => c(o.name, _)
|
1493
1493
|
}), null, 16, ["error", "value", "onChange"]);
|
1494
1494
|
}), 128)),
|
1495
1495
|
J(j.$slots, "default")
|
1496
|
-
], 40,
|
1496
|
+
], 40, Ln));
|
1497
1497
|
}
|
1498
1498
|
});
|
1499
|
-
const
|
1499
|
+
const jn = /* @__PURE__ */ f("svg", {
|
1500
1500
|
xmlns: "http://www.w3.org/2000/svg",
|
1501
1501
|
viewBox: "0 0 448 512"
|
1502
1502
|
}, [
|
1503
|
-
/* @__PURE__ */
|
1504
|
-
], -1),
|
1505
|
-
|
1506
|
-
], mn = ["aria-expanded"],
|
1503
|
+
/* @__PURE__ */ f("path", { d: "M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z" })
|
1504
|
+
], -1), yn = [
|
1505
|
+
jn
|
1506
|
+
], mn = ["aria-expanded"], fn = ["href"], wn = {
|
1507
1507
|
name: "PdapHeader"
|
1508
|
-
},
|
1509
|
-
...
|
1508
|
+
}, hn = /* @__PURE__ */ C({
|
1509
|
+
...wn,
|
1510
1510
|
props: {
|
1511
1511
|
topPosition: {}
|
1512
1512
|
},
|
@@ -1517,15 +1517,15 @@ const pn = /* @__PURE__ */ w("svg", {
|
|
1517
1517
|
`,
|
1518
1518
|
"Did you forget to inject some linkData for the Nav component?"
|
1519
1519
|
));
|
1520
|
-
const r =
|
1520
|
+
const r = W({
|
1521
1521
|
isExpanded: !1,
|
1522
1522
|
isMobile: !0
|
1523
|
-
}), n =
|
1523
|
+
}), n = W({
|
1524
1524
|
"pdap-nav": !0
|
1525
1525
|
});
|
1526
|
-
|
1526
|
+
Ve(() => {
|
1527
1527
|
a(), window.addEventListener("resize", a);
|
1528
|
-
}),
|
1528
|
+
}), fe(() => {
|
1529
1529
|
window.removeEventListener("resize", a);
|
1530
1530
|
});
|
1531
1531
|
async function a() {
|
@@ -1536,32 +1536,32 @@ const pn = /* @__PURE__ */ w("svg", {
|
|
1536
1536
|
const i = document.querySelector("body");
|
1537
1537
|
!r.isExpanded && r.isMobile ? (r.isExpanded = !0, i != null && i.classList.contains("lock-scroll") || (u = document.querySelector("body")) == null || u.classList.add("lock-scroll")) : r.isExpanded && r.isMobile && (r.isExpanded = !1, (l = document.querySelector("body")) == null || l.classList.remove("lock-scroll")), await se();
|
1538
1538
|
}
|
1539
|
-
return (i, u) => (
|
1540
|
-
|
1539
|
+
return (i, u) => (m(), h(F, null, [
|
1540
|
+
f("div", {
|
1541
1541
|
"aria-controls": "nav",
|
1542
1542
|
class: "pdap-nav-open-button",
|
1543
1543
|
role: "button",
|
1544
1544
|
onClick: s
|
1545
|
-
},
|
1546
|
-
|
1545
|
+
}, yn),
|
1546
|
+
f("nav", {
|
1547
1547
|
id: "nav",
|
1548
1548
|
"aria-expanded": r.isMobile && r.isExpanded || !r.isMobile,
|
1549
1549
|
class: ee(n),
|
1550
|
-
style:
|
1550
|
+
style: Mt(r.isMobile ? { top: `${i.topPosition}px` } : {})
|
1551
1551
|
}, [
|
1552
|
-
(
|
1552
|
+
(m(!0), h(F, null, le(L(t), (l) => (m(), h("li", {
|
1553
1553
|
key: l.text,
|
1554
1554
|
class: "pdap-nav-link-container"
|
1555
1555
|
}, [
|
1556
|
-
l.href ? (
|
1556
|
+
l.href ? (m(), h("a", {
|
1557
1557
|
key: 0,
|
1558
1558
|
class: "pdap-nav-link",
|
1559
1559
|
href: l.href,
|
1560
1560
|
target: "_blank",
|
1561
1561
|
referrerpolicy: "no-referrer",
|
1562
1562
|
onClick: s
|
1563
|
-
},
|
1564
|
-
l.path ? (
|
1563
|
+
}, z(l.text), 9, fn)) : P("", !0),
|
1564
|
+
l.path ? (m(), E(L(oe), {
|
1565
1565
|
key: 1,
|
1566
1566
|
"active-class": "pdap-nav-link-current",
|
1567
1567
|
"exact-active-class": "pdap-nav-link-current-exact",
|
@@ -1570,88 +1570,88 @@ const pn = /* @__PURE__ */ w("svg", {
|
|
1570
1570
|
onClick: s
|
1571
1571
|
}, {
|
1572
1572
|
default: T(() => [
|
1573
|
-
D(
|
1573
|
+
D(z(l.text), 1)
|
1574
1574
|
]),
|
1575
1575
|
_: 2
|
1576
|
-
}, 1032, ["to"])) :
|
1576
|
+
}, 1032, ["to"])) : P("", !0)
|
1577
1577
|
]))), 128))
|
1578
1578
|
], 14, mn)
|
1579
1579
|
], 64));
|
1580
1580
|
}
|
1581
1581
|
});
|
1582
|
-
const
|
1582
|
+
const vn = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI0LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjE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YXRoIGQ9Ik00ODEuNiwxMDEuNWMtNy44LDAtMTMuNS01LjYtMTMuNS0xMi45YzAtNy4xLDUuNy0xMy4xLDEzLjUtMTMuMWMzLjktMC4yLDcuNiwxLjUsMTAsNC42bC01LjEsNC43Yy0xLjItMS40LTMtMi4zLTQuOS0yLjMKCWMtMy4xLDAtNS4zLDIuNi01LjMsNi4xYzAsMywyLjEsNS45LDUuMyw1LjljMi4zLDAsMy41LTAuOSw0LjktMi41bDUuOSw0LjJDNDg5LjQsOTkuOSw0ODYuNCwxMDEuNSw0ODEuNiwxMDEuNXoiLz4KPHBhdGggZD0iTTUwMy45LDEwMC44Yy01LDAtOC4yLTMuOC04LjItOXYtOWgtMy4xdi02LjZoMy4xVjY1LjloOC45djEwLjJoNC4ydjYuNmgtNC4ydjcuNGMwLDEuOSwxLDMuMiwyLjcsMy4yaDIuMnY3LjRoLTUuNlYxMDAuOHoKCSIvPgo8cG9seWdvbiBwb2ludHM9IjkxLjcsMjAuMiA3Ni4yLDIwLjIgODguNCw4IDgzLjEsMi43IDcxLjUsMTQuMyA3MS41LDAgNjQsMCA2NCwxNC4zIDUyLjMsMi43IDQ3LDggNTkuMiwyMC4yIDQzLjcsMjAuMiA0My43LDI3LjggCgk1OC4xLDI3LjggNDcsMzguOCA1Mi4zLDQ0LjEgNjQsMzIuNSA2NCw0OCA3MS41LDQ4IDcxLjUsMzIuNSA4My4xLDQ0LjEgODguNCwzOC44IDc3LjQsMjcuOCA5MS43LDI3LjggIi8+Cjwvc3ZnPgo=", $n = ["href"], Nn = ["src"], Dn = ["src"], Tn = {
|
1583
1583
|
name: "PdapHeader"
|
1584
|
-
},
|
1585
|
-
...
|
1584
|
+
}, ea = /* @__PURE__ */ C({
|
1585
|
+
...Tn,
|
1586
1586
|
props: {
|
1587
|
-
logoImageSrc: { default:
|
1587
|
+
logoImageSrc: { default: vn },
|
1588
1588
|
logoImageAnchorPath: { default: "/" }
|
1589
1589
|
},
|
1590
1590
|
setup(e) {
|
1591
1591
|
const t = e, r = N(), n = N(null), a = t.logoImageAnchorPath.startsWith("/");
|
1592
|
-
|
1592
|
+
Be(() => {
|
1593
1593
|
s(), window.addEventListener("resize", s);
|
1594
|
-
}),
|
1594
|
+
}), fe(() => {
|
1595
1595
|
window.removeEventListener("resize", s);
|
1596
1596
|
});
|
1597
1597
|
function s() {
|
1598
1598
|
n.value && (r.value = n.value.offsetHeight);
|
1599
1599
|
}
|
1600
|
-
return (i, u) => (
|
1600
|
+
return (i, u) => (m(), h("header", {
|
1601
1601
|
ref_key: "el",
|
1602
1602
|
ref: n,
|
1603
1603
|
class: "pdap-header"
|
1604
1604
|
}, [
|
1605
|
-
L(a) ? (
|
1605
|
+
L(a) ? (m(), E(L(oe), {
|
1606
1606
|
key: 1,
|
1607
1607
|
to: i.logoImageAnchorPath,
|
1608
1608
|
class: "logo"
|
1609
1609
|
}, {
|
1610
1610
|
default: T(() => [
|
1611
|
-
|
1611
|
+
f("img", {
|
1612
1612
|
src: i.logoImageSrc,
|
1613
1613
|
loading: "lazy",
|
1614
1614
|
width: "250",
|
1615
1615
|
alt: "Police Data Accessibility Project Logo"
|
1616
|
-
}, null, 8,
|
1616
|
+
}, null, 8, Dn)
|
1617
1617
|
]),
|
1618
1618
|
_: 1
|
1619
|
-
}, 8, ["to"])) : (
|
1619
|
+
}, 8, ["to"])) : (m(), h("a", {
|
1620
1620
|
key: 0,
|
1621
1621
|
href: i.logoImageAnchorPath,
|
1622
1622
|
class: "logo"
|
1623
1623
|
}, [
|
1624
|
-
|
1624
|
+
f("img", {
|
1625
1625
|
src: i.logoImageSrc,
|
1626
1626
|
loading: "lazy",
|
1627
1627
|
width: "250",
|
1628
1628
|
alt: "Police Data Accessibility Project Logo"
|
1629
|
-
}, null, 8,
|
1630
|
-
], 8,
|
1631
|
-
|
1629
|
+
}, null, 8, Nn)
|
1630
|
+
], 8, $n)),
|
1631
|
+
V(hn, { "top-position": r.value }, null, 8, ["top-position"])
|
1632
1632
|
], 512));
|
1633
1633
|
}
|
1634
1634
|
});
|
1635
|
-
const
|
1636
|
-
/* @__PURE__ */
|
1637
|
-
/* @__PURE__ */
|
1635
|
+
const Cn = /* @__PURE__ */ f("div", { class: "pdap-flex-container" }, [
|
1636
|
+
/* @__PURE__ */ f("h2", { class: "mt-0" }, "Search our database"),
|
1637
|
+
/* @__PURE__ */ f("p", { class: "pb-4 md:pb-8" }, [
|
1638
1638
|
/* @__PURE__ */ D(" If you are looking for something specific, we may already be tracking it. "),
|
1639
|
-
/* @__PURE__ */
|
1639
|
+
/* @__PURE__ */ f("a", { href: "https://pdap.io/data" }, "Learn more about the data here.")
|
1640
1640
|
])
|
1641
|
-
], -1),
|
1641
|
+
], -1), xn = { class: "pdap-quick-search-form h-full max-h-[75-vh] justify-start p-0" }, In = { class: "max-w-[unset] text-med" }, Sn = ["href"], En = ["href"], zn = {
|
1642
1642
|
name: "QuickSearchForm"
|
1643
|
-
},
|
1644
|
-
...
|
1643
|
+
}, ta = /* @__PURE__ */ C({
|
1644
|
+
...zn,
|
1645
1645
|
props: {
|
1646
1646
|
baseUrlForRedirect: { default: "https://data-sources.pdap.io" }
|
1647
1647
|
},
|
1648
1648
|
setup(e) {
|
1649
|
-
const t =
|
1649
|
+
const t = yt(), r = e, n = [
|
1650
1650
|
{
|
1651
1651
|
id: "search-term",
|
1652
1652
|
name: "searchTerm",
|
1653
1653
|
label: "What are you looking for?",
|
1654
|
-
type:
|
1654
|
+
type: O.TEXT,
|
1655
1655
|
placeholder: "Enter a keyword, or 'all'",
|
1656
1656
|
value: ""
|
1657
1657
|
},
|
@@ -1659,7 +1659,7 @@ const Tn = /* @__PURE__ */ w("div", { class: "pdap-flex-container" }, [
|
|
1659
1659
|
id: "location",
|
1660
1660
|
name: "location",
|
1661
1661
|
label: "From where?",
|
1662
|
-
type:
|
1662
|
+
type: O.TEXT,
|
1663
1663
|
placeholder: "Enter a place, or 'all'",
|
1664
1664
|
value: ""
|
1665
1665
|
}
|
@@ -1668,7 +1668,7 @@ const Tn = /* @__PURE__ */ w("div", { class: "pdap-flex-container" }, [
|
|
1668
1668
|
a.value && Object.values(l).some(Boolean) && (a.value = void 0);
|
1669
1669
|
}
|
1670
1670
|
function u(l) {
|
1671
|
-
if (Object.values(l).every((
|
1671
|
+
if (Object.values(l).every((y) => !y)) {
|
1672
1672
|
a.value = "Either a search term or a location is required.";
|
1673
1673
|
return;
|
1674
1674
|
}
|
@@ -1677,10 +1677,10 @@ const Tn = /* @__PURE__ */ w("div", { class: "pdap-flex-container" }, [
|
|
1677
1677
|
`${r.baseUrlForRedirect}/search/${M}/${c}`
|
1678
1678
|
);
|
1679
1679
|
}
|
1680
|
-
return (l, c) => (
|
1681
|
-
|
1682
|
-
|
1683
|
-
|
1680
|
+
return (l, c) => (m(), h(F, null, [
|
1681
|
+
Cn,
|
1682
|
+
f("div", xn, [
|
1683
|
+
V(pn, {
|
1684
1684
|
id: "quick-search-form",
|
1685
1685
|
class: "flex flex-wrap gap-x-4",
|
1686
1686
|
error: a.value,
|
@@ -1690,7 +1690,7 @@ const Tn = /* @__PURE__ */ w("div", { class: "pdap-flex-container" }, [
|
|
1690
1690
|
onSubmit: u
|
1691
1691
|
}, {
|
1692
1692
|
default: T(() => [
|
1693
|
-
|
1693
|
+
V(We, {
|
1694
1694
|
type: "submit",
|
1695
1695
|
class: "flex-grow-0 flex-shrink-0 basis-full max-w-[unset] mt-4"
|
1696
1696
|
}, {
|
@@ -1702,9 +1702,9 @@ const Tn = /* @__PURE__ */ w("div", { class: "pdap-flex-container" }, [
|
|
1702
1702
|
]),
|
1703
1703
|
_: 1
|
1704
1704
|
}, 8, ["error"]),
|
1705
|
-
|
1705
|
+
f("p", In, [
|
1706
1706
|
D(" For example, you could search for "),
|
1707
|
-
L(s) ? (
|
1707
|
+
L(s) ? (m(), E(L(oe), {
|
1708
1708
|
key: 0,
|
1709
1709
|
to: "/search/stops/pittsburgh"
|
1710
1710
|
}, {
|
@@ -1712,14 +1712,14 @@ const Tn = /* @__PURE__ */ w("div", { class: "pdap-flex-container" }, [
|
|
1712
1712
|
D(" stops in Pittsburgh ")
|
1713
1713
|
]),
|
1714
1714
|
_: 1
|
1715
|
-
})) : (
|
1715
|
+
})) : (m(), h("a", {
|
1716
1716
|
key: 1,
|
1717
1717
|
target: "_blank",
|
1718
1718
|
rel: "noreferrer",
|
1719
1719
|
href: `${r.baseUrlForRedirect}/search/stops/pittsburgh`
|
1720
|
-
}, " stops in Pittsburgh ", 8,
|
1720
|
+
}, " stops in Pittsburgh ", 8, Sn)),
|
1721
1721
|
D(" or "),
|
1722
|
-
L(s) ? (
|
1722
|
+
L(s) ? (m(), E(L(oe), {
|
1723
1723
|
key: 2,
|
1724
1724
|
to: "/search/complaints/all"
|
1725
1725
|
}, {
|
@@ -1727,28 +1727,28 @@ const Tn = /* @__PURE__ */ w("div", { class: "pdap-flex-container" }, [
|
|
1727
1727
|
D(" complaints everywhere ")
|
1728
1728
|
]),
|
1729
1729
|
_: 1
|
1730
|
-
})) : (
|
1730
|
+
})) : (m(), h("a", {
|
1731
1731
|
key: 3,
|
1732
1732
|
target: "_blank",
|
1733
1733
|
rel: "noreferrer",
|
1734
1734
|
href: `${r.baseUrlForRedirect}/search/complaints/all`
|
1735
|
-
}, " complaints everywhere ", 8,
|
1735
|
+
}, " complaints everywhere ", 8, En)),
|
1736
1736
|
D(" . ")
|
1737
1737
|
])
|
1738
1738
|
])
|
1739
1739
|
], 64));
|
1740
1740
|
}
|
1741
1741
|
});
|
1742
|
-
const On = ["alt", "src"],
|
1742
|
+
const On = ["alt", "src"], _n = {
|
1743
1743
|
name: "TileIcon"
|
1744
|
-
},
|
1745
|
-
...
|
1744
|
+
}, ra = /* @__PURE__ */ C({
|
1745
|
+
..._n,
|
1746
1746
|
props: {
|
1747
1747
|
imgAltText: {},
|
1748
1748
|
imgSrc: {}
|
1749
1749
|
},
|
1750
1750
|
setup(e) {
|
1751
|
-
return (t, r) => (
|
1751
|
+
return (t, r) => (m(), h("img", {
|
1752
1752
|
class: "pdap-tile-icon",
|
1753
1753
|
alt: t.imgAltText,
|
1754
1754
|
src: t.imgSrc
|
@@ -1766,10 +1766,10 @@ const bn = {
|
|
1766
1766
|
unmounted(e) {
|
1767
1767
|
e.clickOutsideEvent && (document.removeEventListener("click", e.clickOutsideEvent), document.removeEventListener("keyup", e.clickOutsideEvent));
|
1768
1768
|
}
|
1769
|
-
},
|
1769
|
+
}, An = ["onKeydown"], kn = ["aria-hidden"], Pn = {
|
1770
1770
|
name: "PdapButton"
|
1771
|
-
},
|
1772
|
-
...
|
1771
|
+
}, na = /* @__PURE__ */ C({
|
1772
|
+
...Pn,
|
1773
1773
|
props: {
|
1774
1774
|
defaultOpen: { type: Boolean, default: !1 },
|
1775
1775
|
disabled: { type: Boolean, default: !1 },
|
@@ -1777,7 +1777,7 @@ const bn = {
|
|
1777
1777
|
},
|
1778
1778
|
emits: ["update:open", "press"],
|
1779
1779
|
setup(e, { emit: t }) {
|
1780
|
-
const r = e, n = t, a = "pdap-dropdown", s = N(null), i = N(null), u = N(r.defaultOpen), l =
|
1780
|
+
const r = e, n = t, a = "pdap-dropdown", s = N(null), i = N(null), u = N(r.defaultOpen), l = v(
|
1781
1781
|
() => r.triggerOn === ne.HOVER
|
1782
1782
|
);
|
1783
1783
|
function c(d) {
|
@@ -1786,41 +1786,41 @@ const bn = {
|
|
1786
1786
|
const M = () => {
|
1787
1787
|
r.disabled || (u.value = !u.value, n("update:open", u.value));
|
1788
1788
|
};
|
1789
|
-
function
|
1789
|
+
function y() {
|
1790
1790
|
u.value = !0, n("update:open", !0);
|
1791
1791
|
}
|
1792
1792
|
function j() {
|
1793
1793
|
u.value = !1, n("update:open", !1);
|
1794
1794
|
}
|
1795
1795
|
function p() {
|
1796
|
-
var I,
|
1796
|
+
var I, _;
|
1797
1797
|
if (!s.value)
|
1798
1798
|
return;
|
1799
1799
|
s.value.style.display = "flex", s.value.style.setProperty("max-height", "max-content");
|
1800
1800
|
const d = s.value.scrollHeight;
|
1801
1801
|
s.value.style.display = "none", s.value.style.removeProperty("max-height");
|
1802
|
-
const g = document == null ? void 0 : document.querySelector(":root"),
|
1802
|
+
const g = document == null ? void 0 : document.querySelector(":root"), w = (I = g == null ? void 0 : g.style) == null ? void 0 : I.getPropertyValue(
|
1803
1803
|
"--dropdown-content-max-height"
|
1804
1804
|
);
|
1805
|
-
Number((
|
1805
|
+
Number((_ = w == null ? void 0 : w.match(/\d+/)) == null ? void 0 : _.join("")) >= d || s.value && g && g.style.setProperty("--dropdown-content-max-height", `${d + 16}px`);
|
1806
1806
|
}
|
1807
1807
|
const o = {
|
1808
|
-
mouseenter: l.value ?
|
1809
|
-
focus: l.value ?
|
1810
|
-
focusin: l.value ?
|
1808
|
+
mouseenter: l.value ? y : void 0,
|
1809
|
+
focus: l.value ? y : void 0,
|
1810
|
+
focusin: l.value ? y : void 0,
|
1811
1811
|
focusout: l.value ? j : void 0,
|
1812
1812
|
mouseleave: l.value ? j : void 0,
|
1813
1813
|
blur: l.value ? j : void 0
|
1814
1814
|
};
|
1815
|
-
return
|
1815
|
+
return Be(() => {
|
1816
1816
|
p();
|
1817
|
-
}), (d, g) =>
|
1817
|
+
}), (d, g) => Ce((m(), h("div", G({
|
1818
1818
|
ref_key: "dropdownRef",
|
1819
1819
|
ref: i,
|
1820
1820
|
class: "pdap-dropdown",
|
1821
|
-
onKeydown:
|
1822
|
-
},
|
1823
|
-
|
1821
|
+
onKeydown: xe(j, ["escape"])
|
1822
|
+
}, gt(o, !0)), [
|
1823
|
+
V(L(We), {
|
1824
1824
|
"aria-controls": a,
|
1825
1825
|
"aria-expanded": u.value,
|
1826
1826
|
disabled: d.disabled,
|
@@ -1833,19 +1833,19 @@ const bn = {
|
|
1833
1833
|
}),
|
1834
1834
|
"data-test": "dropdown-trigger",
|
1835
1835
|
onClick: je(c, ["prevent", "stop"]),
|
1836
|
-
onKeydown:
|
1836
|
+
onKeydown: xe(je(c, ["prevent", "stop"]), ["enter", "space"])
|
1837
1837
|
}, {
|
1838
1838
|
default: T(() => [
|
1839
1839
|
J(d.$slots, "trigger")
|
1840
1840
|
]),
|
1841
1841
|
_: 3
|
1842
1842
|
}, 8, ["aria-expanded", "disabled", "class", "onClick", "onKeydown"]),
|
1843
|
-
|
1843
|
+
V(ye, {
|
1844
1844
|
name: "dropdown",
|
1845
1845
|
appear: ""
|
1846
1846
|
}, {
|
1847
1847
|
default: T(() => [
|
1848
|
-
|
1848
|
+
Ce(f("div", {
|
1849
1849
|
id: a,
|
1850
1850
|
ref_key: "contentRef",
|
1851
1851
|
ref: s,
|
@@ -1855,13 +1855,13 @@ const bn = {
|
|
1855
1855
|
role: "menu"
|
1856
1856
|
}, [
|
1857
1857
|
J(d.$slots, "content")
|
1858
|
-
], 8,
|
1859
|
-
[
|
1858
|
+
], 8, kn), [
|
1859
|
+
[pt, u.value]
|
1860
1860
|
])
|
1861
1861
|
]),
|
1862
1862
|
_: 3
|
1863
1863
|
})
|
1864
|
-
], 16,
|
1864
|
+
], 16, An)), [
|
1865
1865
|
[L(bn), j]
|
1866
1866
|
]);
|
1867
1867
|
}
|
@@ -1878,31 +1878,31 @@ function Yn(e) {
|
|
1878
1878
|
}
|
1879
1879
|
return t.length > 0 && (t[t.length - 1].active = !0), t;
|
1880
1880
|
}
|
1881
|
-
const
|
1881
|
+
const Qn = { "aria-label": "Breadcrumb" }, Rn = { key: 1 }, Un = {
|
1882
1882
|
name: "PdapBreadcrumbs"
|
1883
|
-
},
|
1884
|
-
...
|
1883
|
+
}, Vn = /* @__PURE__ */ C({
|
1884
|
+
...Un,
|
1885
1885
|
setup(e) {
|
1886
|
-
const t = mt(), r =
|
1886
|
+
const t = mt(), r = v(() => Yn(t));
|
1887
1887
|
return (n, a) => {
|
1888
|
-
const s =
|
1889
|
-
return
|
1890
|
-
|
1888
|
+
const s = Ue("router-link");
|
1889
|
+
return m(), h("nav", Qn, [
|
1890
|
+
V(jt, {
|
1891
1891
|
class: "pdap-breadcrumbs",
|
1892
1892
|
name: "pdap-breadcrumbs",
|
1893
1893
|
tag: "ul"
|
1894
1894
|
}, {
|
1895
1895
|
default: T(() => [
|
1896
|
-
(
|
1896
|
+
(m(!0), h(F, null, le(r.value, (i) => (m(), h("li", {
|
1897
1897
|
key: i.text,
|
1898
1898
|
class: ee({ "is-active": i.active })
|
1899
1899
|
}, [
|
1900
|
-
i.active ? (
|
1900
|
+
i.active ? (m(), h("span", Rn, z(i.text), 1)) : (m(), E(s, {
|
1901
1901
|
key: 0,
|
1902
1902
|
to: i.path
|
1903
1903
|
}, {
|
1904
1904
|
default: T(() => [
|
1905
|
-
D(
|
1905
|
+
D(z(i.text), 1)
|
1906
1906
|
]),
|
1907
1907
|
_: 2
|
1908
1908
|
}, 1032, ["to"]))
|
@@ -1914,13 +1914,64 @@ const Pn = { "aria-label": "Breadcrumb" }, Qn = { key: 1 }, Rn = {
|
|
1914
1914
|
};
|
1915
1915
|
}
|
1916
1916
|
});
|
1917
|
-
const
|
1917
|
+
const Ke = (e, t) => {
|
1918
1918
|
const r = e.__vccOpts || e;
|
1919
1919
|
for (const [n, a] of t)
|
1920
1920
|
r[n] = a;
|
1921
1921
|
return r;
|
1922
|
-
},
|
1923
|
-
|
1922
|
+
}, aa = /* @__PURE__ */ Ke(Vn, [["__scopeId", "data-v-ee7ae25b"]]), Bn = { class: "pdap-spinner" }, Wn = ["width", "height"], Fn = ["stroke", "fill"], Gn = ["stroke", "fill"], Zn = {
|
1923
|
+
key: 0,
|
1924
|
+
"aria-live": "polite"
|
1925
|
+
}, Hn = /* @__PURE__ */ C({
|
1926
|
+
__name: "PdapSpinner",
|
1927
|
+
props: {
|
1928
|
+
color: { default: "currentColor" },
|
1929
|
+
size: { default: 24 },
|
1930
|
+
text: { default: "" },
|
1931
|
+
show: { type: Boolean, default: !1 }
|
1932
|
+
},
|
1933
|
+
setup(e) {
|
1934
|
+
return (t, r) => (m(), h("div", Bn, [
|
1935
|
+
V(ye, { appear: "" }, {
|
1936
|
+
default: T(() => [
|
1937
|
+
t.show ? (m(), h("svg", {
|
1938
|
+
key: 0,
|
1939
|
+
width: t.size,
|
1940
|
+
height: t.size,
|
1941
|
+
viewBox: "0 0 24 24",
|
1942
|
+
xmlns: "http://www.w3.org/2000/svg"
|
1943
|
+
}, [
|
1944
|
+
f("path", {
|
1945
|
+
d: "M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z",
|
1946
|
+
opacity: ".25",
|
1947
|
+
stroke: t.color,
|
1948
|
+
fill: t.color
|
1949
|
+
}, null, 8, Fn),
|
1950
|
+
f("path", {
|
1951
|
+
d: "M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z",
|
1952
|
+
class: "pdap-spinner-innards",
|
1953
|
+
stroke: t.color,
|
1954
|
+
fill: t.color
|
1955
|
+
}, null, 8, Gn)
|
1956
|
+
], 8, Wn)) : P("", !0)
|
1957
|
+
]),
|
1958
|
+
_: 1
|
1959
|
+
}),
|
1960
|
+
(m(), E(ye, {
|
1961
|
+
key: t.text,
|
1962
|
+
appear: "",
|
1963
|
+
mode: "out-in"
|
1964
|
+
}, {
|
1965
|
+
default: T(() => [
|
1966
|
+
t.text && t.show ? (m(), h("p", Zn, z(t.text), 1)) : P("", !0)
|
1967
|
+
]),
|
1968
|
+
_: 1
|
1969
|
+
}))
|
1970
|
+
]));
|
1971
|
+
}
|
1972
|
+
});
|
1973
|
+
const sa = /* @__PURE__ */ Ke(Hn, [["__scopeId", "data-v-38f598b7"]]);
|
1974
|
+
const oa = {
|
1924
1975
|
content: ["./src/**/*.vue", "./src/**/*.css"],
|
1925
1976
|
theme: {
|
1926
1977
|
// Nested within "extend" - extends tailwind theme defaults, only overrides properties named here
|
@@ -1999,19 +2050,20 @@ const qn = {
|
|
1999
2050
|
}
|
2000
2051
|
};
|
2001
2052
|
export {
|
2002
|
-
|
2003
|
-
|
2004
|
-
|
2005
|
-
|
2006
|
-
|
2007
|
-
|
2008
|
-
|
2009
|
-
|
2010
|
-
|
2053
|
+
aa as Breadcrumbs,
|
2054
|
+
We as Button,
|
2055
|
+
na as Dropdown,
|
2056
|
+
Kn as ErrorBoundary,
|
2057
|
+
qn as Footer,
|
2058
|
+
pn as Form,
|
2059
|
+
ea as Header,
|
2060
|
+
rr as Input,
|
2061
|
+
hn as Nav,
|
2011
2062
|
ne as PdapDropdownTriggerType,
|
2012
|
-
|
2013
|
-
|
2014
|
-
|
2015
|
-
|
2063
|
+
O as PdapInputTypes,
|
2064
|
+
ta as QuickSearchForm,
|
2065
|
+
sa as Spinner,
|
2066
|
+
ra as TileIcon,
|
2067
|
+
oa as tailwindConfig,
|
2016
2068
|
bn as vOnClickOutside
|
2017
2069
|
};
|