pdap-design-system 3.0.0-beta.8 → 3.0.0-beta.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Form/PdapForm.vue.d.ts +3 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +467 -460
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
import { defineComponent as
|
1
|
+
import { defineComponent as I, reactive as q, openBlock as y, createElementBlock as w, normalizeClass as le, renderSlot as H, ref as N, onErrorCaptured as it, createBlock as S, resolveDynamicComponent as lt, withCtx as D, createElementVNode as f, createTextVNode as C, inject as re, resolveComponent as Ve, Fragment as F, renderList as ce, unref as L, toDisplayString as E, createCommentVNode as Y, getCurrentInstance as ct, onBeforeMount as Be, watch as J, isRef as ye, onBeforeUnmount as he, computed as v, isReactive as dt, isReadonly as Lt, provide as xe, nextTick as ne, mergeProps as W, normalizeProps as Mt, watchEffect as Ie, withModifiers as me, withKeys as je, createVNode as V, Transition as se, withDirectives as fe, vShow as Fe, pushScopeId as gt, popScopeId as pt, onMounted as We, toHandlers as yt, TransitionGroup as mt } from "vue";
|
2
2
|
import { RouterLink as oe, useRouter as jt, useRoute as ft } from "vue-router";
|
3
3
|
const wt = {
|
4
4
|
name: "PdapButton"
|
5
|
-
}, Ge = /* @__PURE__ */
|
5
|
+
}, Ge = /* @__PURE__ */ I({
|
6
6
|
...wt,
|
7
7
|
props: {
|
8
8
|
intent: { default: "primary" },
|
@@ -14,7 +14,7 @@ const wt = {
|
|
14
14
|
[`pdap-button-${t.intent}`]: !!t.intent,
|
15
15
|
"pdap-button-loading": t.isLoading
|
16
16
|
});
|
17
|
-
return (r, n) => (
|
17
|
+
return (r, n) => (y(), w("button", {
|
18
18
|
class: le(a)
|
19
19
|
}, [
|
20
20
|
H(r.$slots, "default")
|
@@ -25,12 +25,12 @@ const ht = /* @__PURE__ */ f("h1", null, "Oops, something went wrong!", -1), vt
|
|
25
25
|
class: "max-w-full",
|
26
26
|
"data-test": "error-boundary-message"
|
27
27
|
}, [
|
28
|
-
/* @__PURE__ */
|
28
|
+
/* @__PURE__ */ C(" If you keep seeing this message, please email "),
|
29
29
|
/* @__PURE__ */ f("a", { href: "mailto:contact@pdap.io" }, "contact@pdap.io"),
|
30
|
-
/* @__PURE__ */
|
30
|
+
/* @__PURE__ */ C(" for assistance. ")
|
31
31
|
], -1), $t = {
|
32
32
|
name: "ErrorBoundary"
|
33
|
-
}, an = /* @__PURE__ */
|
33
|
+
}, an = /* @__PURE__ */ I({
|
34
34
|
...$t,
|
35
35
|
props: {
|
36
36
|
component: { default: "div" },
|
@@ -39,14 +39,14 @@ const ht = /* @__PURE__ */ f("h1", null, "Oops, something went wrong!", -1), vt
|
|
39
39
|
},
|
40
40
|
emits: ["onError"],
|
41
41
|
setup(e, { emit: t }) {
|
42
|
-
const a = e, r = t, n = N(),
|
43
|
-
function i(u,
|
42
|
+
const a = e, r = t, n = N(), o = N("");
|
43
|
+
function i(u, d, l) {
|
44
44
|
var M;
|
45
|
-
n.value = u,
|
45
|
+
n.value = u, o.value = l, (M = a.onError) == null || M.call(a, u, d, l), r("onError", { error: u, vm: d, info: l });
|
46
46
|
}
|
47
|
-
return it((u,
|
48
|
-
i(u,
|
49
|
-
}), (u,
|
47
|
+
return it((u, d, l) => {
|
48
|
+
i(u, d, l);
|
49
|
+
}), (u, d) => n.value ? (y(), S(lt(u.component), {
|
50
50
|
key: 1,
|
51
51
|
class: "pdap-flex-container-center h-[full]",
|
52
52
|
"v-bind": u.params
|
@@ -59,14 +59,14 @@ const ht = /* @__PURE__ */ f("h1", null, "Oops, something went wrong!", -1), vt
|
|
59
59
|
}, 8, ["v-bind"])) : H(u.$slots, "default", { key: 0 });
|
60
60
|
}
|
61
61
|
}), Nt = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI0LjAuMCwgU1ZHIEV4cG9ydC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jAuNSw4MC4xeiBNNjAuNSw2MS41aC0xLjl2MTQuNGgxLjkKCWM0LjMsMCw2LjctMy40LDYuNy03LjJTNjQuNSw2MS41LDYwLjUsNjEuNXoiLz4KPHBhdGggZD0iTTg4LjcsODAuMUw4Nyw3NC40aC03bC0xLjgsNS44aC01LjNsOC4yLTIyLjloNC44bDguMywyMi45aC01LjVWODAuMXogTTg0LDY0LjZjLTAuMi0wLjctMC41LTEuNi0wLjUtMS44CgljMCwwLjEtMC4yLDEtMC41LDEuOGwtMS43LDUuNmg0LjRMODQsNjQuNnoiLz4KPHBhdGggZD0iTTEwNC43LDcxLjFoLTIuNnY5LjFoLTVWNTcuM2g3LjZjNS4xLDAsOC40LDIuNCw4LjQsNi43UzEwOS44LDcxLjEsMTA0LjcsNzEuMXogTTEwNC43LDYxLjVoLTIuNnY1LjNoMi42CgljMi4zLDAsMy4zLTAuOSwzLjMtMi43UzEwNi45LDYxLjUsMTA0LjcsNjEuNXoiLz4KPC9zdmc+Cg==", Dt = { class: "pdap-footer" }, Tt = { class: "pdap-flex-container-center" }, Ct = { class: "pdap-footer-social-links" }, xt = ["href"], It = { class: "pdap-footer-copyright" }, St = /* @__PURE__ */ f("br", null, null, -1), bt = /* @__PURE__ */ f("p", { class: "pdap-footer-copyright" }, [
|
62
|
-
/* @__PURE__ */
|
62
|
+
/* @__PURE__ */ C(" PDAP is a non-profit. EIN: 85-4207132. "),
|
63
63
|
/* @__PURE__ */ f("a", {
|
64
64
|
href: "https://docs.pdap.io/meta/policy/pdap-privacy-policy",
|
65
65
|
alt: "Privacy Policy",
|
66
66
|
target: "_blank"
|
67
67
|
}, [
|
68
68
|
/* @__PURE__ */ f("br"),
|
69
|
-
/* @__PURE__ */
|
69
|
+
/* @__PURE__ */ C(" Privacy Policy "),
|
70
70
|
/* @__PURE__ */ f("i", { class: "fa fa-external-link" })
|
71
71
|
]),
|
72
72
|
/* @__PURE__ */ f("br"),
|
@@ -81,7 +81,7 @@ const ht = /* @__PURE__ */ f("h1", null, "Oops, something went wrong!", -1), vt
|
|
81
81
|
})
|
82
82
|
], -1), zt = ["href"], _t = ["src"], At = ["src"], kt = {
|
83
83
|
name: "PdapFooter"
|
84
|
-
}, rn = /* @__PURE__ */
|
84
|
+
}, rn = /* @__PURE__ */ I({
|
85
85
|
...kt,
|
86
86
|
props: {
|
87
87
|
logoImageSrc: { default: Nt },
|
@@ -106,23 +106,23 @@ const ht = /* @__PURE__ */ f("h1", null, "Oops, something went wrong!", -1), vt
|
|
106
106
|
text: "Jobs"
|
107
107
|
}
|
108
108
|
]), r = t.logoImageAnchorPath.startsWith("/");
|
109
|
-
return (n,
|
109
|
+
return (n, o) => {
|
110
110
|
const i = Ve("router-link");
|
111
|
-
return
|
111
|
+
return y(), w("footer", Dt, [
|
112
112
|
f("div", Tt, [
|
113
113
|
f("ul", Ct, [
|
114
|
-
(
|
114
|
+
(y(!0), w(F, null, ce(L(a), (u) => (y(), w("li", {
|
115
115
|
key: u.text,
|
116
116
|
class: "pdap-footer-link-container"
|
117
117
|
}, [
|
118
|
-
u.href ? (
|
118
|
+
u.href ? (y(), w("a", {
|
119
119
|
key: 0,
|
120
120
|
class: "pdap-footer-social-link",
|
121
121
|
href: u.href,
|
122
122
|
target: "_blank",
|
123
123
|
referrerpolicy: "no-referrer"
|
124
|
-
}, E(u.text), 9, xt)) :
|
125
|
-
u.path ? (
|
124
|
+
}, E(u.text), 9, xt)) : Y("", !0),
|
125
|
+
u.path ? (y(), S(i, {
|
126
126
|
key: 1,
|
127
127
|
"active-class": "pdap-footer-social-link-current",
|
128
128
|
"exact-active-class": "pdap-footer-social-link-current-exact",
|
@@ -130,20 +130,20 @@ const ht = /* @__PURE__ */ f("h1", null, "Oops, something went wrong!", -1), vt
|
|
130
130
|
to: u.path
|
131
131
|
}, {
|
132
132
|
default: D(() => [
|
133
|
-
|
133
|
+
C(E(u.text), 1)
|
134
134
|
]),
|
135
135
|
_: 2
|
136
|
-
}, 1032, ["to"])) :
|
136
|
+
}, 1032, ["to"])) : Y("", !0)
|
137
137
|
]))), 128))
|
138
138
|
]),
|
139
139
|
f("p", It, [
|
140
|
-
|
140
|
+
C(" © " + E((/* @__PURE__ */ new Date()).getFullYear()) + " Police Data Accessibility Project", 1),
|
141
141
|
St
|
142
142
|
]),
|
143
143
|
bt,
|
144
144
|
f("div", Et, [
|
145
145
|
Ot,
|
146
|
-
L(r) ? (
|
146
|
+
L(r) ? (y(), S(i, {
|
147
147
|
key: 1,
|
148
148
|
to: n.logoImageAnchorPath,
|
149
149
|
class: "pdap-footer-logo"
|
@@ -157,7 +157,7 @@ const ht = /* @__PURE__ */ f("h1", null, "Oops, something went wrong!", -1), vt
|
|
157
157
|
}, null, 8, At)
|
158
158
|
]),
|
159
159
|
_: 1
|
160
|
-
}, 8, ["to"])) : (
|
160
|
+
}, 8, ["to"])) : (y(), w("a", {
|
161
161
|
key: 0,
|
162
162
|
href: n.logoImageAnchorPath,
|
163
163
|
class: "pdap-footer-logo"
|
@@ -185,7 +185,7 @@ function Se(e, t) {
|
|
185
185
|
}
|
186
186
|
return a;
|
187
187
|
}
|
188
|
-
function
|
188
|
+
function P(e) {
|
189
189
|
for (var t = 1; t < arguments.length; t++) {
|
190
190
|
var a = arguments[t] != null ? arguments[t] : {};
|
191
191
|
t % 2 ? Se(Object(a), !0).forEach(function(r) {
|
@@ -217,10 +217,10 @@ function Yt(e) {
|
|
217
217
|
function Ze(e, t, a) {
|
218
218
|
let r = e;
|
219
219
|
const n = t.split(".");
|
220
|
-
for (let
|
221
|
-
if (!r[n[
|
220
|
+
for (let o = 0; o < n.length; o++) {
|
221
|
+
if (!r[n[o]])
|
222
222
|
return a;
|
223
|
-
r = r[n[
|
223
|
+
r = r[n[o]];
|
224
224
|
}
|
225
225
|
return r;
|
226
226
|
}
|
@@ -231,10 +231,10 @@ function pe(e, t, a) {
|
|
231
231
|
}
|
232
232
|
function Ee(e, t, a) {
|
233
233
|
return v(() => e.reduce((r, n) => {
|
234
|
-
const
|
234
|
+
const o = Ze(t, n, {
|
235
235
|
[a]: !1
|
236
236
|
})[a] || [];
|
237
|
-
return r.concat(
|
237
|
+
return r.concat(o);
|
238
238
|
}, []));
|
239
239
|
}
|
240
240
|
function He(e, t, a, r) {
|
@@ -243,221 +243,221 @@ function He(e, t, a, r) {
|
|
243
243
|
function Je(e) {
|
244
244
|
return e.$valid !== void 0 ? !e.$valid : !e;
|
245
245
|
}
|
246
|
-
function Qt(e, t, a, r, n,
|
246
|
+
function Qt(e, t, a, r, n, o, i) {
|
247
247
|
let {
|
248
248
|
$lazy: u,
|
249
|
-
$rewardEarly:
|
250
|
-
} = n, l = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : [], M = arguments.length > 8 ? arguments[8] : void 0,
|
251
|
-
const
|
249
|
+
$rewardEarly: d
|
250
|
+
} = n, l = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : [], M = arguments.length > 8 ? arguments[8] : void 0, p = arguments.length > 9 ? arguments[9] : void 0, h = arguments.length > 10 ? arguments[10] : void 0;
|
251
|
+
const m = N(!!r.value), s = N(0);
|
252
252
|
a.value = !1;
|
253
|
-
const
|
254
|
-
if (u && !r.value ||
|
253
|
+
const c = J([t, r].concat(l, h), () => {
|
254
|
+
if (u && !r.value || d && !p.value && !a.value)
|
255
255
|
return;
|
256
256
|
let g;
|
257
257
|
try {
|
258
258
|
g = He(e, t, M, i);
|
259
|
-
} catch (
|
260
|
-
g = Promise.reject(
|
259
|
+
} catch (j) {
|
260
|
+
g = Promise.reject(j);
|
261
261
|
}
|
262
|
-
|
263
|
-
|
264
|
-
}).catch((
|
265
|
-
|
262
|
+
s.value++, a.value = !!s.value, m.value = !1, Promise.resolve(g).then((j) => {
|
263
|
+
s.value--, a.value = !!s.value, o.value = j, m.value = Je(j);
|
264
|
+
}).catch((j) => {
|
265
|
+
s.value--, a.value = !!s.value, o.value = j, m.value = !0;
|
266
266
|
});
|
267
267
|
}, {
|
268
268
|
immediate: !0,
|
269
269
|
deep: typeof t == "object"
|
270
270
|
});
|
271
271
|
return {
|
272
|
-
$invalid:
|
273
|
-
$unwatch:
|
272
|
+
$invalid: m,
|
273
|
+
$unwatch: c
|
274
274
|
};
|
275
275
|
}
|
276
|
-
function Rt(e, t, a, r, n,
|
276
|
+
function Rt(e, t, a, r, n, o, i, u) {
|
277
277
|
let {
|
278
|
-
$lazy:
|
278
|
+
$lazy: d,
|
279
279
|
$rewardEarly: l
|
280
280
|
} = r;
|
281
|
-
const M = () => ({}),
|
282
|
-
if (
|
281
|
+
const M = () => ({}), p = v(() => {
|
282
|
+
if (d && !a.value || l && !u.value)
|
283
283
|
return !1;
|
284
|
-
let
|
284
|
+
let h = !0;
|
285
285
|
try {
|
286
|
-
const
|
287
|
-
n.value =
|
288
|
-
} catch (
|
289
|
-
n.value =
|
286
|
+
const m = He(e, t, i, o);
|
287
|
+
n.value = m, h = Je(m);
|
288
|
+
} catch (m) {
|
289
|
+
n.value = m;
|
290
290
|
}
|
291
|
-
return
|
291
|
+
return h;
|
292
292
|
});
|
293
293
|
return {
|
294
294
|
$unwatch: M,
|
295
|
-
$invalid:
|
295
|
+
$invalid: p
|
296
296
|
};
|
297
297
|
}
|
298
|
-
function Ut(e, t, a, r, n,
|
299
|
-
const
|
300
|
-
let
|
298
|
+
function Ut(e, t, a, r, n, o, i, u, d, l, M) {
|
299
|
+
const p = N(!1), h = e.$params || {}, m = N(null);
|
300
|
+
let s, c;
|
301
301
|
e.$async ? {
|
302
|
-
$invalid:
|
303
|
-
$unwatch:
|
304
|
-
} = Qt(e.$validator, t,
|
305
|
-
$invalid:
|
306
|
-
$unwatch:
|
307
|
-
} = Rt(e.$validator, t, a, r,
|
302
|
+
$invalid: s,
|
303
|
+
$unwatch: c
|
304
|
+
} = Qt(e.$validator, t, p, a, r, m, n, e.$watchTargets, d, l, M) : {
|
305
|
+
$invalid: s,
|
306
|
+
$unwatch: c
|
307
|
+
} = Rt(e.$validator, t, a, r, m, n, d, l);
|
308
308
|
const g = e.$message;
|
309
309
|
return {
|
310
310
|
$message: ue(g) ? v(() => g(be({
|
311
|
-
$pending:
|
312
|
-
$invalid:
|
313
|
-
$params: be(
|
311
|
+
$pending: p,
|
312
|
+
$invalid: s,
|
313
|
+
$params: be(h),
|
314
314
|
$model: t,
|
315
|
-
$response:
|
316
|
-
$validator:
|
315
|
+
$response: m,
|
316
|
+
$validator: o,
|
317
317
|
$propertyPath: u,
|
318
318
|
$property: i
|
319
319
|
}))) : g || "",
|
320
|
-
$params:
|
321
|
-
$pending:
|
322
|
-
$invalid:
|
323
|
-
$response:
|
324
|
-
$unwatch:
|
320
|
+
$params: h,
|
321
|
+
$pending: p,
|
322
|
+
$invalid: s,
|
323
|
+
$response: m,
|
324
|
+
$unwatch: c
|
325
325
|
};
|
326
326
|
}
|
327
327
|
function Vt() {
|
328
328
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
329
|
-
const t = L(e), a = Object.keys(t), r = {}, n = {},
|
329
|
+
const t = L(e), a = Object.keys(t), r = {}, n = {}, o = {};
|
330
330
|
let i = null;
|
331
331
|
return a.forEach((u) => {
|
332
|
-
const
|
332
|
+
const d = t[u];
|
333
333
|
switch (!0) {
|
334
|
-
case ue(
|
335
|
-
r[u] =
|
334
|
+
case ue(d.$validator):
|
335
|
+
r[u] = d;
|
336
336
|
break;
|
337
|
-
case ue(
|
337
|
+
case ue(d):
|
338
338
|
r[u] = {
|
339
|
-
$validator:
|
339
|
+
$validator: d
|
340
340
|
};
|
341
341
|
break;
|
342
342
|
case u === "$validationGroups":
|
343
|
-
i =
|
343
|
+
i = d;
|
344
344
|
break;
|
345
345
|
case u.startsWith("$"):
|
346
|
-
|
346
|
+
o[u] = d;
|
347
347
|
break;
|
348
348
|
default:
|
349
|
-
n[u] =
|
349
|
+
n[u] = d;
|
350
350
|
}
|
351
351
|
}), {
|
352
352
|
rules: r,
|
353
353
|
nestedValidators: n,
|
354
|
-
config:
|
354
|
+
config: o,
|
355
355
|
validationGroups: i
|
356
356
|
};
|
357
357
|
}
|
358
358
|
const Bt = "__root";
|
359
|
-
function Ft(e, t, a, r, n,
|
360
|
-
const l = Object.keys(e), M = r.get(n, e),
|
359
|
+
function Ft(e, t, a, r, n, o, i, u, d) {
|
360
|
+
const l = Object.keys(e), M = r.get(n, e), p = N(!1), h = N(!1), m = N(0);
|
361
361
|
if (M) {
|
362
362
|
if (!M.$partial)
|
363
363
|
return M;
|
364
|
-
M.$unwatch(),
|
364
|
+
M.$unwatch(), p.value = M.$dirty.value;
|
365
365
|
}
|
366
|
-
const
|
367
|
-
$dirty:
|
366
|
+
const s = {
|
367
|
+
$dirty: p,
|
368
368
|
$path: n,
|
369
369
|
$touch: () => {
|
370
|
-
|
370
|
+
p.value || (p.value = !0);
|
371
371
|
},
|
372
372
|
$reset: () => {
|
373
|
-
|
373
|
+
p.value && (p.value = !1);
|
374
374
|
},
|
375
375
|
$commit: () => {
|
376
376
|
}
|
377
377
|
};
|
378
|
-
return l.length ? (l.forEach((
|
379
|
-
|
380
|
-
}),
|
378
|
+
return l.length ? (l.forEach((c) => {
|
379
|
+
s[c] = Ut(e[c], t, s.$dirty, o, i, c, a, n, d, h, m);
|
380
|
+
}), s.$externalResults = v(() => u.value ? [].concat(u.value).map((c, g) => ({
|
381
381
|
$propertyPath: n,
|
382
382
|
$property: a,
|
383
383
|
$validator: "$externalResults",
|
384
384
|
$uid: `${n}-externalResult-${g}`,
|
385
|
-
$message:
|
385
|
+
$message: c,
|
386
386
|
$params: {},
|
387
387
|
$response: null,
|
388
388
|
$pending: !1
|
389
|
-
})) : []),
|
390
|
-
const
|
391
|
-
return
|
392
|
-
}),
|
393
|
-
const g =
|
389
|
+
})) : []), s.$invalid = v(() => {
|
390
|
+
const c = l.some((g) => L(s[g].$invalid));
|
391
|
+
return h.value = c, !!s.$externalResults.value.length || c;
|
392
|
+
}), s.$pending = v(() => l.some((c) => L(s[c].$pending))), s.$error = v(() => s.$dirty.value ? s.$pending.value || s.$invalid.value : !1), s.$silentErrors = v(() => l.filter((c) => L(s[c].$invalid)).map((c) => {
|
393
|
+
const g = s[c];
|
394
394
|
return q({
|
395
395
|
$propertyPath: n,
|
396
396
|
$property: a,
|
397
|
-
$validator:
|
398
|
-
$uid: `${n}-${
|
397
|
+
$validator: c,
|
398
|
+
$uid: `${n}-${c}`,
|
399
399
|
$message: g.$message,
|
400
400
|
$params: g.$params,
|
401
401
|
$response: g.$response,
|
402
402
|
$pending: g.$pending
|
403
403
|
});
|
404
|
-
}).concat(
|
405
|
-
|
406
|
-
}),
|
407
|
-
|
408
|
-
}, r.set(n, e,
|
404
|
+
}).concat(s.$externalResults.value)), s.$errors = v(() => s.$dirty.value ? s.$silentErrors.value : []), s.$unwatch = () => l.forEach((c) => {
|
405
|
+
s[c].$unwatch();
|
406
|
+
}), s.$commit = () => {
|
407
|
+
h.value = !0, m.value = Date.now();
|
408
|
+
}, r.set(n, e, s), s) : (M && r.set(n, e, s), s);
|
409
409
|
}
|
410
|
-
function Wt(e, t, a, r, n,
|
410
|
+
function Wt(e, t, a, r, n, o, i) {
|
411
411
|
const u = Object.keys(e);
|
412
|
-
return u.length ? u.reduce((
|
412
|
+
return u.length ? u.reduce((d, l) => (d[l] = we({
|
413
413
|
validations: e[l],
|
414
414
|
state: t,
|
415
415
|
key: l,
|
416
416
|
parentKey: a,
|
417
417
|
resultsCache: r,
|
418
418
|
globalConfig: n,
|
419
|
-
instance:
|
419
|
+
instance: o,
|
420
420
|
externalResults: i
|
421
|
-
}),
|
421
|
+
}), d), {}) : {};
|
422
422
|
}
|
423
423
|
function Gt(e, t, a) {
|
424
|
-
const r = v(() => [t, a].filter((
|
424
|
+
const r = v(() => [t, a].filter((s) => s).reduce((s, c) => s.concat(Object.values(L(c))), [])), n = v({
|
425
425
|
get() {
|
426
|
-
return e.$dirty.value || (r.value.length ? r.value.every((
|
426
|
+
return e.$dirty.value || (r.value.length ? r.value.every((s) => s.$dirty) : !1);
|
427
427
|
},
|
428
|
-
set(
|
429
|
-
e.$dirty.value =
|
428
|
+
set(s) {
|
429
|
+
e.$dirty.value = s;
|
430
430
|
}
|
431
|
-
}),
|
432
|
-
const
|
433
|
-
return
|
431
|
+
}), o = v(() => {
|
432
|
+
const s = L(e.$silentErrors) || [], c = r.value.filter((g) => (L(g).$silentErrors || []).length).reduce((g, j) => g.concat(...j.$silentErrors), []);
|
433
|
+
return s.concat(c);
|
434
434
|
}), i = v(() => {
|
435
|
-
const
|
436
|
-
return
|
437
|
-
}), u = v(() => r.value.some((
|
438
|
-
e.$touch(), r.value.forEach((
|
439
|
-
|
435
|
+
const s = L(e.$errors) || [], c = r.value.filter((g) => (L(g).$errors || []).length).reduce((g, j) => g.concat(...j.$errors), []);
|
436
|
+
return s.concat(c);
|
437
|
+
}), u = v(() => r.value.some((s) => s.$invalid) || L(e.$invalid) || !1), d = v(() => r.value.some((s) => L(s.$pending)) || L(e.$pending) || !1), l = v(() => r.value.some((s) => s.$dirty) || r.value.some((s) => s.$anyDirty) || n.value), M = v(() => n.value ? d.value || u.value : !1), p = () => {
|
438
|
+
e.$touch(), r.value.forEach((s) => {
|
439
|
+
s.$touch();
|
440
440
|
});
|
441
|
-
},
|
442
|
-
e.$commit(), r.value.forEach((
|
443
|
-
|
441
|
+
}, h = () => {
|
442
|
+
e.$commit(), r.value.forEach((s) => {
|
443
|
+
s.$commit();
|
444
444
|
});
|
445
|
-
},
|
446
|
-
e.$reset(), r.value.forEach((
|
447
|
-
|
445
|
+
}, m = () => {
|
446
|
+
e.$reset(), r.value.forEach((s) => {
|
447
|
+
s.$reset();
|
448
448
|
});
|
449
449
|
};
|
450
|
-
return r.value.length && r.value.every((
|
450
|
+
return r.value.length && r.value.every((s) => s.$dirty) && p(), {
|
451
451
|
$dirty: n,
|
452
452
|
$errors: i,
|
453
453
|
$invalid: u,
|
454
454
|
$anyDirty: l,
|
455
455
|
$error: M,
|
456
|
-
$pending:
|
457
|
-
$touch:
|
458
|
-
$reset:
|
459
|
-
$silentErrors:
|
460
|
-
$commit:
|
456
|
+
$pending: d,
|
457
|
+
$touch: p,
|
458
|
+
$reset: m,
|
459
|
+
$silentErrors: o,
|
460
|
+
$commit: h
|
461
461
|
};
|
462
462
|
}
|
463
463
|
function we(e) {
|
@@ -466,36 +466,36 @@ function we(e) {
|
|
466
466
|
state: a,
|
467
467
|
key: r,
|
468
468
|
parentKey: n,
|
469
|
-
childResults:
|
469
|
+
childResults: o,
|
470
470
|
resultsCache: i,
|
471
471
|
globalConfig: u = {},
|
472
|
-
instance:
|
472
|
+
instance: d,
|
473
473
|
externalResults: l
|
474
474
|
} = e;
|
475
475
|
const M = n ? `${n}.${r}` : r, {
|
476
|
-
rules:
|
477
|
-
nestedValidators:
|
478
|
-
config:
|
479
|
-
validationGroups:
|
480
|
-
} = Vt(t),
|
476
|
+
rules: p,
|
477
|
+
nestedValidators: h,
|
478
|
+
config: m,
|
479
|
+
validationGroups: s
|
480
|
+
} = Vt(t), c = P(P({}, u), m), g = r ? v(() => {
|
481
481
|
const $ = L(a);
|
482
482
|
return $ ? L($[r]) : void 0;
|
483
|
-
}) : a,
|
483
|
+
}) : a, j = P({}, L(l) || {}), x = v(() => {
|
484
484
|
const $ = L(l);
|
485
485
|
return r ? $ ? L($[r]) : void 0 : $;
|
486
|
-
}),
|
487
|
-
|
488
|
-
let [
|
489
|
-
|
490
|
-
$invalid: pe(
|
491
|
-
$error: pe(
|
492
|
-
$pending: pe(
|
493
|
-
$errors: Ee(
|
494
|
-
$silentErrors: Ee(
|
486
|
+
}), _ = Ft(p, g, r, i, M, c, d, x, a), T = Wt(h, g, M, i, c, d, x), O = {};
|
487
|
+
s && Object.entries(s).forEach(($) => {
|
488
|
+
let [U, k] = $;
|
489
|
+
O[U] = {
|
490
|
+
$invalid: pe(k, T, "$invalid"),
|
491
|
+
$error: pe(k, T, "$error"),
|
492
|
+
$pending: pe(k, T, "$pending"),
|
493
|
+
$errors: Ee(k, T, "$errors"),
|
494
|
+
$silentErrors: Ee(k, T, "$silentErrors")
|
495
495
|
};
|
496
496
|
});
|
497
497
|
const {
|
498
|
-
$dirty:
|
498
|
+
$dirty: A,
|
499
499
|
$errors: ee,
|
500
500
|
$invalid: Le,
|
501
501
|
$anyDirty: et,
|
@@ -505,41 +505,41 @@ function we(e) {
|
|
505
505
|
$reset: at,
|
506
506
|
$silentErrors: rt,
|
507
507
|
$commit: Ce
|
508
|
-
} = Gt(
|
508
|
+
} = Gt(_, T, o), nt = r ? v({
|
509
509
|
get: () => L(g),
|
510
510
|
set: ($) => {
|
511
|
-
|
512
|
-
const
|
513
|
-
|
511
|
+
A.value = !0;
|
512
|
+
const U = L(a), k = L(l);
|
513
|
+
k && (k[r] = j[r]), ye(U[r]) ? U[r].value = $ : U[r] = $;
|
514
514
|
}
|
515
515
|
}) : null;
|
516
|
-
r &&
|
517
|
-
|
516
|
+
r && c.$autoDirty && J(g, () => {
|
517
|
+
A.value || ge();
|
518
518
|
const $ = L(l);
|
519
|
-
$ && ($[r] =
|
519
|
+
$ && ($[r] = j[r]);
|
520
520
|
}, {
|
521
521
|
flush: "sync"
|
522
522
|
});
|
523
523
|
async function st() {
|
524
|
-
return ge(),
|
524
|
+
return ge(), c.$rewardEarly && (Ce(), await ne()), await ne(), new Promise(($) => {
|
525
525
|
if (!Me.value)
|
526
526
|
return $(!Le.value);
|
527
|
-
const
|
528
|
-
$(!Le.value),
|
527
|
+
const U = J(Me, () => {
|
528
|
+
$(!Le.value), U();
|
529
529
|
});
|
530
530
|
});
|
531
531
|
}
|
532
532
|
function ot($) {
|
533
|
-
return (
|
533
|
+
return (o.value || {})[$];
|
534
534
|
}
|
535
535
|
function ut() {
|
536
|
-
ye(l) ? l.value =
|
536
|
+
ye(l) ? l.value = j : Object.keys(j).length === 0 ? Object.keys(l).forEach(($) => {
|
537
537
|
delete l[$];
|
538
|
-
}) : Object.assign(l,
|
538
|
+
}) : Object.assign(l, j);
|
539
539
|
}
|
540
|
-
return q(
|
540
|
+
return q(P(P(P({}, _), {}, {
|
541
541
|
$model: nt,
|
542
|
-
$dirty:
|
542
|
+
$dirty: A,
|
543
543
|
$error: tt,
|
544
544
|
$errors: ee,
|
545
545
|
$invalid: Le,
|
@@ -551,11 +551,11 @@ function we(e) {
|
|
551
551
|
$silentErrors: rt,
|
552
552
|
$validate: st,
|
553
553
|
$commit: Ce
|
554
|
-
},
|
554
|
+
}, o && {
|
555
555
|
$getResultsForChild: ot,
|
556
556
|
$clearExternalResults: ut,
|
557
|
-
$validationGroups:
|
558
|
-
}),
|
557
|
+
$validationGroups: O
|
558
|
+
}), T));
|
559
559
|
}
|
560
560
|
class Zt {
|
561
561
|
constructor() {
|
@@ -568,8 +568,8 @@ class Zt {
|
|
568
568
|
});
|
569
569
|
}
|
570
570
|
checkRulesValidity(t, a, r) {
|
571
|
-
const n = Object.keys(r),
|
572
|
-
return
|
571
|
+
const n = Object.keys(r), o = Object.keys(a);
|
572
|
+
return o.length !== n.length || !o.every((u) => n.includes(u)) ? !1 : o.every((u) => a[u].$params ? Object.keys(a[u].$params).every((d) => L(r[u].$params[d]) === L(a[u].$params[d])) : !0);
|
573
573
|
}
|
574
574
|
get(t, a) {
|
575
575
|
const r = this.storage.get(t);
|
@@ -577,10 +577,10 @@ class Zt {
|
|
577
577
|
return;
|
578
578
|
const {
|
579
579
|
rules: n,
|
580
|
-
result:
|
581
|
-
} = r, i = this.checkRulesValidity(t, a, n), u =
|
582
|
-
return i ?
|
583
|
-
$dirty:
|
580
|
+
result: o
|
581
|
+
} = r, i = this.checkRulesValidity(t, a, n), u = o.$unwatch ? o.$unwatch : () => ({});
|
582
|
+
return i ? o : {
|
583
|
+
$dirty: o.$dirty,
|
584
584
|
$partial: !0,
|
585
585
|
$unwatch: u
|
586
586
|
};
|
@@ -595,26 +595,26 @@ function Ht(e) {
|
|
595
595
|
$scope: t,
|
596
596
|
instance: a
|
597
597
|
} = e;
|
598
|
-
const r = {}, n = N([]),
|
599
|
-
function i(M,
|
598
|
+
const r = {}, n = N([]), o = v(() => n.value.reduce((M, p) => (M[p] = L(r[p]), M), {}));
|
599
|
+
function i(M, p) {
|
600
600
|
let {
|
601
|
-
$registerAs:
|
602
|
-
$scope:
|
603
|
-
$stopPropagation:
|
604
|
-
} =
|
605
|
-
|
601
|
+
$registerAs: h,
|
602
|
+
$scope: m,
|
603
|
+
$stopPropagation: s
|
604
|
+
} = p;
|
605
|
+
s || t === te.COLLECT_NONE || m === te.COLLECT_NONE || t !== te.COLLECT_ALL && t !== m || (r[h] = M, n.value.push(h));
|
606
606
|
}
|
607
607
|
a.__vuelidateInjectInstances = [].concat(a.__vuelidateInjectInstances || [], i);
|
608
608
|
function u(M) {
|
609
|
-
n.value = n.value.filter((
|
609
|
+
n.value = n.value.filter((p) => p !== M), delete r[M];
|
610
610
|
}
|
611
611
|
a.__vuelidateRemoveInstances = [].concat(a.__vuelidateRemoveInstances || [], u);
|
612
|
-
const
|
612
|
+
const d = re(Oe, []);
|
613
613
|
xe(Oe, a.__vuelidateInjectInstances);
|
614
614
|
const l = re(ze, []);
|
615
615
|
return xe(ze, a.__vuelidateRemoveInstances), {
|
616
|
-
childResults:
|
617
|
-
sendValidationResultsToParent:
|
616
|
+
childResults: o,
|
617
|
+
sendValidationResultsToParent: d,
|
618
618
|
removeValidationResultsFromParent: l
|
619
619
|
};
|
620
620
|
}
|
@@ -632,19 +632,19 @@ function Jt(e, t) {
|
|
632
632
|
arguments.length === 1 && (r = e, e = void 0, t = void 0);
|
633
633
|
let {
|
634
634
|
$registerAs: n,
|
635
|
-
$scope:
|
635
|
+
$scope: o = te.COLLECT_ALL,
|
636
636
|
$stopPropagation: i,
|
637
637
|
$externalResults: u,
|
638
|
-
currentVueInstance:
|
638
|
+
currentVueInstance: d
|
639
639
|
} = r;
|
640
|
-
const l =
|
640
|
+
const l = d || ((a = ct()) === null || a === void 0 ? void 0 : a.proxy), M = l ? l.$options : {};
|
641
641
|
n || (_e += 1, n = `_vuelidate_${_e}`);
|
642
|
-
const
|
643
|
-
childResults:
|
644
|
-
sendValidationResultsToParent:
|
645
|
-
removeValidationResultsFromParent:
|
642
|
+
const p = N({}), h = new Zt(), {
|
643
|
+
childResults: m,
|
644
|
+
sendValidationResultsToParent: s,
|
645
|
+
removeValidationResultsFromParent: c
|
646
646
|
} = l ? Ht({
|
647
|
-
$scope:
|
647
|
+
$scope: o,
|
648
648
|
instance: l
|
649
649
|
}) : {
|
650
650
|
childResults: N({})
|
@@ -652,12 +652,12 @@ function Jt(e, t) {
|
|
652
652
|
if (!e && M.validations) {
|
653
653
|
const g = M.validations;
|
654
654
|
t = N({}), Be(() => {
|
655
|
-
t.value = l, J(() => ue(g) ? g.call(t.value, new Xe(t.value)) : g, (
|
656
|
-
|
657
|
-
validations:
|
655
|
+
t.value = l, J(() => ue(g) ? g.call(t.value, new Xe(t.value)) : g, (j) => {
|
656
|
+
p.value = we({
|
657
|
+
validations: j,
|
658
658
|
state: t,
|
659
|
-
childResults:
|
660
|
-
resultsCache:
|
659
|
+
childResults: m,
|
660
|
+
resultsCache: h,
|
661
661
|
globalConfig: r,
|
662
662
|
instance: l,
|
663
663
|
externalResults: u || l.vuelidateExternalResults
|
@@ -668,12 +668,12 @@ function Jt(e, t) {
|
|
668
668
|
}), r = M.validationsConfig || r;
|
669
669
|
} else {
|
670
670
|
const g = ye(e) || Yt(e) ? e : q(e || {});
|
671
|
-
J(g, (
|
672
|
-
|
673
|
-
validations:
|
671
|
+
J(g, (j) => {
|
672
|
+
p.value = we({
|
673
|
+
validations: j,
|
674
674
|
state: t,
|
675
|
-
childResults:
|
676
|
-
resultsCache:
|
675
|
+
childResults: m,
|
676
|
+
resultsCache: h,
|
677
677
|
globalConfig: r,
|
678
678
|
instance: l ?? {},
|
679
679
|
externalResults: u
|
@@ -682,14 +682,14 @@ function Jt(e, t) {
|
|
682
682
|
immediate: !0
|
683
683
|
});
|
684
684
|
}
|
685
|
-
return l && (
|
685
|
+
return l && (s.forEach((g) => g(p, {
|
686
686
|
$registerAs: n,
|
687
|
-
$scope:
|
687
|
+
$scope: o,
|
688
688
|
$stopPropagation: i
|
689
|
-
})), he(() =>
|
689
|
+
})), he(() => c.forEach((g) => g(n)))), v(() => P(P({}, L(p.value)), m.value));
|
690
690
|
}
|
691
|
-
var
|
692
|
-
const Xt = ["id", "type", "name", "placeholder", "value"], Kt = /* @__PURE__ */
|
691
|
+
var z = /* @__PURE__ */ ((e) => (e.CHECKBOX = "checkbox", e.TEXT = "text", e.PASSWORD = "password", e))(z || {});
|
692
|
+
const Xt = ["id", "type", "name", "placeholder", "value"], Kt = /* @__PURE__ */ I({
|
693
693
|
__name: "InputText",
|
694
694
|
props: {
|
695
695
|
type: {},
|
@@ -705,7 +705,7 @@ const Xt = ["id", "type", "name", "placeholder", "value"], Kt = /* @__PURE__ */
|
|
705
705
|
const a = t, r = (n) => {
|
706
706
|
a("input", n);
|
707
707
|
};
|
708
|
-
return (n,
|
708
|
+
return (n, o) => (y(), w("input", W({
|
709
709
|
id: n.id,
|
710
710
|
type: n.type,
|
711
711
|
name: n.name,
|
@@ -713,7 +713,7 @@ const Xt = ["id", "type", "name", "placeholder", "value"], Kt = /* @__PURE__ */
|
|
713
713
|
value: n.value
|
714
714
|
}, n.$attrs, { onInput: r }), null, 16, Xt));
|
715
715
|
}
|
716
|
-
}), qt = ["id", "name", "checked", "value"], ea = /* @__PURE__ */
|
716
|
+
}), qt = ["id", "name", "checked", "value"], ea = /* @__PURE__ */ I({
|
717
717
|
__name: "InputCheckbox",
|
718
718
|
props: {
|
719
719
|
defaultChecked: { type: Boolean },
|
@@ -730,7 +730,7 @@ const Xt = ["id", "type", "name", "placeholder", "value"], Kt = /* @__PURE__ */
|
|
730
730
|
const a = t, r = (n) => {
|
731
731
|
a("input", n);
|
732
732
|
};
|
733
|
-
return (n,
|
733
|
+
return (n, o) => (y(), w("input", W({
|
734
734
|
id: n.id,
|
735
735
|
name: n.name,
|
736
736
|
checked: n.value === "true",
|
@@ -739,7 +739,7 @@ const Xt = ["id", "type", "name", "placeholder", "value"], Kt = /* @__PURE__ */
|
|
739
739
|
type: "checkbox"
|
740
740
|
}, n.$attrs, { onInput: r }), null, 16, qt));
|
741
741
|
}
|
742
|
-
}), ta = ["id"], aa = ["for"], ra = /* @__PURE__ */
|
742
|
+
}), ta = ["id"], aa = ["for"], ra = /* @__PURE__ */ I({
|
743
743
|
__name: "PdapInput",
|
744
744
|
props: {
|
745
745
|
type: {},
|
@@ -754,24 +754,24 @@ const Xt = ["id", "type", "name", "placeholder", "value"], Kt = /* @__PURE__ */
|
|
754
754
|
setup(e) {
|
755
755
|
const t = e, a = v(() => `pdap-${t.name}-input-error`);
|
756
756
|
return (r, n) => {
|
757
|
-
var
|
758
|
-
return
|
757
|
+
var o;
|
758
|
+
return y(), w("div", {
|
759
759
|
class: le({
|
760
760
|
"pdap-input": !0,
|
761
761
|
[`pdap-input-${r.type}`]: !0,
|
762
|
-
[`pdap-input-${r.type}-checked`]: r.type === L(
|
763
|
-
"pdap-input-error": Number((
|
762
|
+
[`pdap-input-${r.type}-checked`]: r.type === L(z).CHECKBOX && r.value === "true",
|
763
|
+
"pdap-input-error": Number((o = r.error) == null ? void 0 : o.length) >= 1
|
764
764
|
})
|
765
765
|
}, [
|
766
|
-
r.type === L(
|
766
|
+
r.type === L(z).CHECKBOX ? (y(), S(ea, W({
|
767
767
|
key: 0,
|
768
768
|
class: "pdap-input-checkbox"
|
769
|
-
}, { ...r.$attrs, ...t }), null, 16)) : (
|
770
|
-
r.error ? (
|
769
|
+
}, { ...r.$attrs, ...t }), null, 16)) : (y(), S(Kt, Mt(W({ key: 1 }, { ...r.$attrs, ...r.$props })), null, 16)),
|
770
|
+
r.error ? (y(), w("div", {
|
771
771
|
key: 2,
|
772
772
|
id: a.value,
|
773
773
|
class: "pdap-input-error-message"
|
774
|
-
}, E(r.error), 9, ta)) :
|
774
|
+
}, E(r.error), 9, ta)) : Y("", !0),
|
775
775
|
f("label", {
|
776
776
|
class: "pdap-input-label",
|
777
777
|
for: r.id
|
@@ -790,7 +790,7 @@ function Ae(e, t) {
|
|
790
790
|
}
|
791
791
|
return a;
|
792
792
|
}
|
793
|
-
function
|
793
|
+
function G(e) {
|
794
794
|
for (var t = 1; t < arguments.length; t++) {
|
795
795
|
var a = arguments[t] != null ? arguments[t] : {};
|
796
796
|
t % 2 ? Ae(Object(a), !0).forEach(function(r) {
|
@@ -816,17 +816,17 @@ function ie(e) {
|
|
816
816
|
return e !== null && typeof e == "object" && !Array.isArray(e);
|
817
817
|
}
|
818
818
|
function de(e) {
|
819
|
-
return X(e.$validator) ?
|
819
|
+
return X(e.$validator) ? G({}, e) : {
|
820
820
|
$validator: e
|
821
821
|
};
|
822
822
|
}
|
823
823
|
function sa(e) {
|
824
824
|
return ie(e) && X(e.then);
|
825
825
|
}
|
826
|
-
function
|
826
|
+
function Q(e) {
|
827
827
|
return typeof e == "object" ? e.$valid : e;
|
828
828
|
}
|
829
|
-
function
|
829
|
+
function B(e) {
|
830
830
|
return e.$validator || e;
|
831
831
|
}
|
832
832
|
function ve(e, t) {
|
@@ -835,7 +835,7 @@ function ve(e, t) {
|
|
835
835
|
if (!ie(t) && !X(t))
|
836
836
|
throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");
|
837
837
|
const a = de(t);
|
838
|
-
return a.$params =
|
838
|
+
return a.$params = G(G({}, a.$params || {}), e), a;
|
839
839
|
}
|
840
840
|
function K(e, t) {
|
841
841
|
if (!X(e) && typeof L(e) != "string")
|
@@ -848,7 +848,7 @@ function K(e, t) {
|
|
848
848
|
function oa(e) {
|
849
849
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
850
850
|
const a = de(e);
|
851
|
-
return
|
851
|
+
return G(G({}, a), {}, {
|
852
852
|
$async: !0,
|
853
853
|
$watchTargets: t
|
854
854
|
});
|
@@ -858,43 +858,43 @@ function ua(e) {
|
|
858
858
|
$validator(t) {
|
859
859
|
for (var a = arguments.length, r = new Array(a > 1 ? a - 1 : 0), n = 1; n < a; n++)
|
860
860
|
r[n - 1] = arguments[n];
|
861
|
-
return L(t).reduce((
|
862
|
-
const
|
863
|
-
let [
|
864
|
-
const
|
865
|
-
let [
|
866
|
-
const
|
867
|
-
if (
|
868
|
-
let
|
869
|
-
const ee =
|
870
|
-
typeof
|
861
|
+
return L(t).reduce((o, i, u) => {
|
862
|
+
const d = Object.entries(i).reduce((l, M) => {
|
863
|
+
let [p, h] = M;
|
864
|
+
const m = e[p] || {}, s = Object.entries(m).reduce((c, g) => {
|
865
|
+
let [j, x] = g;
|
866
|
+
const T = B(x).call(this, h, i, u, ...r), O = Q(T);
|
867
|
+
if (c.$data[j] = T, c.$data.$invalid = !O || !!c.$data.$invalid, c.$data.$error = c.$data.$invalid, !O) {
|
868
|
+
let A = x.$message || "";
|
869
|
+
const ee = x.$params || {};
|
870
|
+
typeof A == "function" && (A = A({
|
871
871
|
$pending: !1,
|
872
|
-
$invalid: !
|
872
|
+
$invalid: !O,
|
873
873
|
$params: ee,
|
874
|
-
$model:
|
875
|
-
$response:
|
876
|
-
})),
|
877
|
-
$property:
|
878
|
-
$message:
|
874
|
+
$model: h,
|
875
|
+
$response: T
|
876
|
+
})), c.$errors.push({
|
877
|
+
$property: p,
|
878
|
+
$message: A,
|
879
879
|
$params: ee,
|
880
|
-
$response:
|
881
|
-
$model:
|
880
|
+
$response: T,
|
881
|
+
$model: h,
|
882
882
|
$pending: !1,
|
883
|
-
$validator:
|
883
|
+
$validator: j
|
884
884
|
});
|
885
885
|
}
|
886
886
|
return {
|
887
|
-
$valid:
|
888
|
-
$data:
|
889
|
-
$errors:
|
887
|
+
$valid: c.$valid && O,
|
888
|
+
$data: c.$data,
|
889
|
+
$errors: c.$errors
|
890
890
|
};
|
891
891
|
}, {
|
892
892
|
$valid: !0,
|
893
893
|
$data: {},
|
894
894
|
$errors: []
|
895
895
|
});
|
896
|
-
return l.$data[
|
897
|
-
$valid: l.$valid &&
|
896
|
+
return l.$data[p] = s.$data, l.$errors[p] = s.$errors, {
|
897
|
+
$valid: l.$valid && s.$valid,
|
898
898
|
$data: l.$data,
|
899
899
|
$errors: l.$errors
|
900
900
|
};
|
@@ -904,9 +904,9 @@ function ua(e) {
|
|
904
904
|
$errors: {}
|
905
905
|
});
|
906
906
|
return {
|
907
|
-
$valid:
|
908
|
-
$data:
|
909
|
-
$errors:
|
907
|
+
$valid: o.$valid && d.$valid,
|
908
|
+
$data: o.$data.concat(d.$data),
|
909
|
+
$errors: o.$errors.concat(d.$errors)
|
910
910
|
};
|
911
911
|
}, {
|
912
912
|
$valid: !0,
|
@@ -918,11 +918,11 @@ function ua(e) {
|
|
918
918
|
let {
|
919
919
|
$response: a
|
920
920
|
} = t;
|
921
|
-
return a ? a.$errors.map((r) => Object.values(r).map((n) => n.map((
|
921
|
+
return a ? a.$errors.map((r) => Object.values(r).map((n) => n.map((o) => o.$message)).reduce((n, o) => n.concat(o), [])) : [];
|
922
922
|
}
|
923
923
|
};
|
924
924
|
}
|
925
|
-
const
|
925
|
+
const b = (e) => {
|
926
926
|
if (e = L(e), Array.isArray(e))
|
927
927
|
return !!e.length;
|
928
928
|
if (e == null)
|
@@ -938,37 +938,37 @@ const I = (e) => {
|
|
938
938
|
}
|
939
939
|
return !!String(e).length;
|
940
940
|
}, $e = (e) => (e = L(e), Array.isArray(e) ? e.length : typeof e == "object" ? Object.keys(e).length : String(e).length);
|
941
|
-
function
|
941
|
+
function R() {
|
942
942
|
for (var e = arguments.length, t = new Array(e), a = 0; a < e; a++)
|
943
943
|
t[a] = arguments[a];
|
944
|
-
return (r) => (r = L(r), !
|
944
|
+
return (r) => (r = L(r), !b(r) || t.every((n) => (n.lastIndex = 0, n.test(r))));
|
945
945
|
}
|
946
|
-
var
|
946
|
+
var Z = /* @__PURE__ */ Object.freeze({
|
947
947
|
__proto__: null,
|
948
948
|
forEach: ua,
|
949
949
|
len: $e,
|
950
950
|
normalizeValidatorObject: de,
|
951
|
-
regex:
|
952
|
-
req:
|
951
|
+
regex: R,
|
952
|
+
req: b,
|
953
953
|
unwrap: L,
|
954
|
-
unwrapNormalizedValidator:
|
955
|
-
unwrapValidatorResponse:
|
954
|
+
unwrapNormalizedValidator: B,
|
955
|
+
unwrapValidatorResponse: Q,
|
956
956
|
withAsync: oa,
|
957
957
|
withMessage: K,
|
958
958
|
withParams: ve
|
959
|
-
}), ia =
|
959
|
+
}), ia = R(/^[a-zA-Z]*$/), la = {
|
960
960
|
$validator: ia,
|
961
961
|
$message: "The value is not alphabetical",
|
962
962
|
$params: {
|
963
963
|
type: "alpha"
|
964
964
|
}
|
965
|
-
}, ca =
|
965
|
+
}, ca = R(/^[a-zA-Z0-9]*$/), da = {
|
966
966
|
$validator: ca,
|
967
967
|
$message: "The value must be alpha-numeric",
|
968
968
|
$params: {
|
969
969
|
type: "alphaNum"
|
970
970
|
}
|
971
|
-
}, La =
|
971
|
+
}, La = R(/^\d*(\.\d+)?$/), Ma = {
|
972
972
|
$validator: La,
|
973
973
|
$message: "Value must be numeric",
|
974
974
|
$params: {
|
@@ -976,7 +976,7 @@ var G = /* @__PURE__ */ Object.freeze({
|
|
976
976
|
}
|
977
977
|
};
|
978
978
|
function ga(e, t) {
|
979
|
-
return (a) => !
|
979
|
+
return (a) => !b(a) || (!/\s/.test(a) || a instanceof Date) && +L(e) <= +a && +L(t) >= +a;
|
980
980
|
}
|
981
981
|
function pa(e, t) {
|
982
982
|
return {
|
@@ -995,7 +995,7 @@ function pa(e, t) {
|
|
995
995
|
};
|
996
996
|
}
|
997
997
|
const ya = /^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;
|
998
|
-
var ma =
|
998
|
+
var ma = R(ya), Ne = {
|
999
999
|
$validator: ma,
|
1000
1000
|
$message: "Value is not a valid email address",
|
1001
1001
|
$params: {
|
@@ -1003,7 +1003,7 @@ var ma = Y(ya), Ne = {
|
|
1003
1003
|
}
|
1004
1004
|
};
|
1005
1005
|
function ja(e) {
|
1006
|
-
if (!
|
1006
|
+
if (!b(e))
|
1007
1007
|
return !0;
|
1008
1008
|
if (typeof e != "string")
|
1009
1009
|
return !1;
|
@@ -1026,7 +1026,7 @@ var wa = {
|
|
1026
1026
|
function ha() {
|
1027
1027
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ":";
|
1028
1028
|
return (t) => {
|
1029
|
-
if (e = L(e), !
|
1029
|
+
if (e = L(e), !b(t))
|
1030
1030
|
return !0;
|
1031
1031
|
if (typeof t != "string")
|
1032
1032
|
return !1;
|
@@ -1045,7 +1045,7 @@ function $a(e) {
|
|
1045
1045
|
};
|
1046
1046
|
}
|
1047
1047
|
function Na(e) {
|
1048
|
-
return (t) => !
|
1048
|
+
return (t) => !b(t) || $e(t) <= L(e);
|
1049
1049
|
}
|
1050
1050
|
function Da(e) {
|
1051
1051
|
return {
|
@@ -1063,7 +1063,7 @@ function Da(e) {
|
|
1063
1063
|
};
|
1064
1064
|
}
|
1065
1065
|
function Ta(e) {
|
1066
|
-
return (t) => !
|
1066
|
+
return (t) => !b(t) || $e(t) >= L(e);
|
1067
1067
|
}
|
1068
1068
|
function Ca(e) {
|
1069
1069
|
return {
|
@@ -1081,7 +1081,7 @@ function Ca(e) {
|
|
1081
1081
|
};
|
1082
1082
|
}
|
1083
1083
|
function xa(e) {
|
1084
|
-
return typeof e == "string" && (e = e.trim()),
|
1084
|
+
return typeof e == "string" && (e = e.trim()), b(e);
|
1085
1085
|
}
|
1086
1086
|
var De = {
|
1087
1087
|
$validator: xa,
|
@@ -1090,7 +1090,7 @@ var De = {
|
|
1090
1090
|
type: "required"
|
1091
1091
|
}
|
1092
1092
|
};
|
1093
|
-
const ke = (e, t) => e ?
|
1093
|
+
const ke = (e, t) => e ? b(typeof t == "string" ? t.trim() : t) : !0;
|
1094
1094
|
function Ia(e) {
|
1095
1095
|
return function(t, a) {
|
1096
1096
|
if (typeof e != "function")
|
@@ -1109,7 +1109,7 @@ function Sa(e) {
|
|
1109
1109
|
}
|
1110
1110
|
};
|
1111
1111
|
}
|
1112
|
-
const Pe = (e, t) => e ? !0 :
|
1112
|
+
const Pe = (e, t) => e ? !0 : b(typeof t == "string" ? t.trim() : t);
|
1113
1113
|
function ba(e) {
|
1114
1114
|
return function(t, a) {
|
1115
1115
|
if (typeof e != "function")
|
@@ -1144,7 +1144,7 @@ function za(e) {
|
|
1144
1144
|
};
|
1145
1145
|
}
|
1146
1146
|
const _a = /^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i;
|
1147
|
-
var Aa =
|
1147
|
+
var Aa = R(_a), ka = {
|
1148
1148
|
$validator: Aa,
|
1149
1149
|
$message: "The value is not a valid URL address",
|
1150
1150
|
$params: {
|
@@ -1155,16 +1155,16 @@ function Pa(e) {
|
|
1155
1155
|
return function() {
|
1156
1156
|
for (var t = arguments.length, a = new Array(t), r = 0; r < t; r++)
|
1157
1157
|
a[r] = arguments[r];
|
1158
|
-
return e.reduce((n,
|
1158
|
+
return e.reduce((n, o) => Q(n) ? n : B(o).apply(this, a), !1);
|
1159
1159
|
};
|
1160
1160
|
}
|
1161
1161
|
function Ya(e) {
|
1162
1162
|
return function() {
|
1163
1163
|
for (var t = arguments.length, a = new Array(t), r = 0; r < t; r++)
|
1164
1164
|
a[r] = arguments[r];
|
1165
|
-
return e.reduce(async (n,
|
1165
|
+
return e.reduce(async (n, o) => {
|
1166
1166
|
const i = await n;
|
1167
|
-
return
|
1167
|
+
return Q(i) ? i : B(o).apply(this, a);
|
1168
1168
|
}, Promise.resolve(!1));
|
1169
1169
|
};
|
1170
1170
|
}
|
@@ -1172,10 +1172,10 @@ function Qa() {
|
|
1172
1172
|
for (var e = arguments.length, t = new Array(e), a = 0; a < e; a++)
|
1173
1173
|
t[a] = arguments[a];
|
1174
1174
|
const r = t.some((i) => i.$async), n = t.reduce((i, u) => u.$watchTargets ? i.concat(u.$watchTargets) : i, []);
|
1175
|
-
let
|
1176
|
-
return t.length && (
|
1175
|
+
let o = () => !1;
|
1176
|
+
return t.length && (o = r ? Ya(t) : Pa(t)), {
|
1177
1177
|
$async: r,
|
1178
|
-
$validator:
|
1178
|
+
$validator: o,
|
1179
1179
|
$watchTargets: n
|
1180
1180
|
};
|
1181
1181
|
}
|
@@ -1188,16 +1188,16 @@ function Ua(e) {
|
|
1188
1188
|
return function() {
|
1189
1189
|
for (var t = arguments.length, a = new Array(t), r = 0; r < t; r++)
|
1190
1190
|
a[r] = arguments[r];
|
1191
|
-
return e.reduce((n,
|
1191
|
+
return e.reduce((n, o) => Q(n) ? B(o).apply(this, a) : n, !0);
|
1192
1192
|
};
|
1193
1193
|
}
|
1194
1194
|
function Va(e) {
|
1195
1195
|
return function() {
|
1196
1196
|
for (var t = arguments.length, a = new Array(t), r = 0; r < t; r++)
|
1197
1197
|
a[r] = arguments[r];
|
1198
|
-
return e.reduce(async (n,
|
1198
|
+
return e.reduce(async (n, o) => {
|
1199
1199
|
const i = await n;
|
1200
|
-
return
|
1200
|
+
return Q(i) ? B(o).apply(this, a) : i;
|
1201
1201
|
}, Promise.resolve(!0));
|
1202
1202
|
};
|
1203
1203
|
}
|
@@ -1205,10 +1205,10 @@ function Ba() {
|
|
1205
1205
|
for (var e = arguments.length, t = new Array(e), a = 0; a < e; a++)
|
1206
1206
|
t[a] = arguments[a];
|
1207
1207
|
const r = t.some((i) => i.$async), n = t.reduce((i, u) => u.$watchTargets ? i.concat(u.$watchTargets) : i, []);
|
1208
|
-
let
|
1209
|
-
return t.length && (
|
1208
|
+
let o = () => !1;
|
1209
|
+
return t.length && (o = r ? Va(t) : Ua(t)), {
|
1210
1210
|
$async: r,
|
1211
|
-
$validator:
|
1211
|
+
$validator: o,
|
1212
1212
|
$watchTargets: n
|
1213
1213
|
};
|
1214
1214
|
}
|
@@ -1219,10 +1219,10 @@ function Fa() {
|
|
1219
1219
|
}
|
1220
1220
|
function Wa(e) {
|
1221
1221
|
return function(t, a) {
|
1222
|
-
if (!
|
1222
|
+
if (!b(t))
|
1223
1223
|
return !0;
|
1224
|
-
const r =
|
1225
|
-
return sa(r) ? r.then((n) => !
|
1224
|
+
const r = B(e).call(this, t, a);
|
1225
|
+
return sa(r) ? r.then((n) => !Q(n)) : !Q(r);
|
1226
1226
|
};
|
1227
1227
|
}
|
1228
1228
|
function Ga(e) {
|
@@ -1235,7 +1235,7 @@ function Ga(e) {
|
|
1235
1235
|
};
|
1236
1236
|
}
|
1237
1237
|
function Za(e) {
|
1238
|
-
return (t) => !
|
1238
|
+
return (t) => !b(t) || (!/\s/.test(t) || t instanceof Date) && +t >= +L(e);
|
1239
1239
|
}
|
1240
1240
|
function Ha(e) {
|
1241
1241
|
return {
|
@@ -1253,7 +1253,7 @@ function Ha(e) {
|
|
1253
1253
|
};
|
1254
1254
|
}
|
1255
1255
|
function Ja(e) {
|
1256
|
-
return (t) => !
|
1256
|
+
return (t) => !b(t) || (!/\s/.test(t) || t instanceof Date) && +t <= +L(e);
|
1257
1257
|
}
|
1258
1258
|
var Xa = (e) => ({
|
1259
1259
|
$validator: Ja(e),
|
@@ -1267,13 +1267,13 @@ var Xa = (e) => ({
|
|
1267
1267
|
max: e,
|
1268
1268
|
type: "maxValue"
|
1269
1269
|
}
|
1270
|
-
}), Ka =
|
1270
|
+
}), Ka = R(/(^[0-9]*$)|(^-[0-9]+$)/), qa = {
|
1271
1271
|
$validator: Ka,
|
1272
1272
|
$message: "Value is not an integer",
|
1273
1273
|
$params: {
|
1274
1274
|
type: "integer"
|
1275
1275
|
}
|
1276
|
-
}, er =
|
1276
|
+
}, er = R(/^[-]?\d*(\.\d+)?$/), tr = {
|
1277
1277
|
$validator: er,
|
1278
1278
|
$message: "Value must be decimal",
|
1279
1279
|
$params: {
|
@@ -1285,20 +1285,20 @@ function ar(e) {
|
|
1285
1285
|
t,
|
1286
1286
|
messagePath: a = (n) => {
|
1287
1287
|
let {
|
1288
|
-
$validator:
|
1288
|
+
$validator: o
|
1289
1289
|
} = n;
|
1290
|
-
return `validations.${
|
1290
|
+
return `validations.${o}`;
|
1291
1291
|
},
|
1292
1292
|
messageParams: r = (n) => n
|
1293
1293
|
} = e;
|
1294
|
-
return function(
|
1294
|
+
return function(o) {
|
1295
1295
|
let {
|
1296
1296
|
withArguments: i = !1,
|
1297
1297
|
messagePath: u = a,
|
1298
|
-
messageParams:
|
1298
|
+
messageParams: d = r
|
1299
1299
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
1300
1300
|
function l(M) {
|
1301
|
-
return t(u(M),
|
1301
|
+
return t(u(M), d(G({
|
1302
1302
|
model: M.$model,
|
1303
1303
|
property: M.$property,
|
1304
1304
|
pending: M.$pending,
|
@@ -1308,9 +1308,9 @@ function ar(e) {
|
|
1308
1308
|
propertyPath: M.$propertyPath
|
1309
1309
|
}, M.$params)));
|
1310
1310
|
}
|
1311
|
-
return i && typeof
|
1312
|
-
return K(l,
|
1313
|
-
} : K(l,
|
1311
|
+
return i && typeof o == "function" ? function() {
|
1312
|
+
return K(l, o(...arguments));
|
1313
|
+
} : K(l, o);
|
1314
1314
|
};
|
1315
1315
|
}
|
1316
1316
|
const Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
@@ -1322,7 +1322,7 @@ const Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1322
1322
|
createI18nMessage: ar,
|
1323
1323
|
decimal: tr,
|
1324
1324
|
email: Ne,
|
1325
|
-
helpers:
|
1325
|
+
helpers: Z,
|
1326
1326
|
integer: qa,
|
1327
1327
|
ipAddress: wa,
|
1328
1328
|
macAddress: $a,
|
@@ -1338,7 +1338,7 @@ const Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1338
1338
|
requiredUnless: Ea,
|
1339
1339
|
sameAs: za,
|
1340
1340
|
url: ka
|
1341
|
-
}, Symbol.toStringTag, { value: "Module" })), qe =
|
1341
|
+
}, Symbol.toStringTag, { value: "Module" })), qe = Z.regex(
|
1342
1342
|
/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$ %^&*-]).{8,}$/
|
1343
1343
|
);
|
1344
1344
|
function Ye(e) {
|
@@ -1360,7 +1360,7 @@ function rr(e, t) {
|
|
1360
1360
|
}
|
1361
1361
|
function nr(e, t, a) {
|
1362
1362
|
return {
|
1363
|
-
[e]:
|
1363
|
+
[e]: Z.withMessage(a, Ke[e](t))
|
1364
1364
|
};
|
1365
1365
|
}
|
1366
1366
|
function sr() {
|
@@ -1368,7 +1368,7 @@ function sr() {
|
|
1368
1368
|
}
|
1369
1369
|
function or(e) {
|
1370
1370
|
return {
|
1371
|
-
required:
|
1371
|
+
required: Z.withMessage(e, De)
|
1372
1372
|
};
|
1373
1373
|
}
|
1374
1374
|
function ur() {
|
@@ -1376,7 +1376,7 @@ function ur() {
|
|
1376
1376
|
}
|
1377
1377
|
function ir(e) {
|
1378
1378
|
return {
|
1379
|
-
email:
|
1379
|
+
email: Z.withMessage(e, Ne)
|
1380
1380
|
};
|
1381
1381
|
}
|
1382
1382
|
function lr() {
|
@@ -1384,7 +1384,7 @@ function lr() {
|
|
1384
1384
|
}
|
1385
1385
|
function cr(e) {
|
1386
1386
|
return {
|
1387
|
-
password:
|
1387
|
+
password: Z.withMessage(e, qe)
|
1388
1388
|
};
|
1389
1389
|
}
|
1390
1390
|
function dr(e, t) {
|
@@ -1415,7 +1415,7 @@ const Lr = ["id", "name", "onSubmit"], Mr = {
|
|
1415
1415
|
class: "pdap-form-error-message"
|
1416
1416
|
}, gr = {
|
1417
1417
|
name: "PdapForm"
|
1418
|
-
}, pr = /* @__PURE__ */
|
1418
|
+
}, pr = /* @__PURE__ */ I({
|
1419
1419
|
...gr,
|
1420
1420
|
props: {
|
1421
1421
|
error: { default: null },
|
@@ -1425,77 +1425,84 @@ const Lr = ["id", "name", "onSubmit"], Mr = {
|
|
1425
1425
|
resetOn: { type: [String, Boolean], default: "submit" }
|
1426
1426
|
},
|
1427
1427
|
emits: ["submit", "change"],
|
1428
|
-
setup(e, {
|
1429
|
-
const
|
1430
|
-
|
1431
|
-
|
1432
|
-
|
1428
|
+
setup(e, { expose: t, emit: a }) {
|
1429
|
+
const r = e, n = a;
|
1430
|
+
t({
|
1431
|
+
setValues: h
|
1432
|
+
});
|
1433
|
+
const o = v(
|
1434
|
+
() => r.schema.map((s) => {
|
1435
|
+
const c = { ...s };
|
1436
|
+
return delete c.validators, c;
|
1433
1437
|
})
|
1434
|
-
),
|
1435
|
-
|
1436
|
-
switch (
|
1437
|
-
case
|
1438
|
-
return { ...
|
1439
|
-
case
|
1440
|
-
case
|
1438
|
+
), i = N(
|
1439
|
+
o.value.reduce((s, c) => {
|
1440
|
+
switch (c.type) {
|
1441
|
+
case z.CHECKBOX:
|
1442
|
+
return { ...s, [c.name]: String(c.defaultChecked) };
|
1443
|
+
case z.TEXT:
|
1444
|
+
case z.PASSWORD:
|
1441
1445
|
default:
|
1442
|
-
return { ...
|
1446
|
+
return { ...s, [c.name]: c.value };
|
1443
1447
|
}
|
1444
1448
|
}, {})
|
1445
|
-
),
|
1446
|
-
const
|
1447
|
-
(
|
1448
|
-
...
|
1449
|
-
...dr(
|
1449
|
+
), u = r.schema.reduce((s, c) => {
|
1450
|
+
const g = Object.entries(c.validators ?? {}).reduce(
|
1451
|
+
(j, [x, _]) => ({
|
1452
|
+
...j,
|
1453
|
+
...dr(x, _)
|
1450
1454
|
}),
|
1451
1455
|
{}
|
1452
1456
|
);
|
1453
1457
|
return {
|
1454
|
-
...
|
1455
|
-
[
|
1456
|
-
...
|
1458
|
+
...s,
|
1459
|
+
[c.name]: {
|
1460
|
+
...g
|
1457
1461
|
}
|
1458
1462
|
};
|
1459
|
-
}, {}),
|
1460
|
-
|
1461
|
-
|
1462
|
-
|
1463
|
-
|
1464
|
-
|
1463
|
+
}, {}), d = Jt(u, i, { $autoDirty: !1, $lazy: !0 }), l = N(r.error);
|
1464
|
+
Ie(() => {
|
1465
|
+
r.error ? l.value = r.error : l.value && d.value.$errors.length === 0 ? l.value = null : !l.value && d.value.$errors.length > 0 && (l.value = "Please update this form to correct the errors");
|
1466
|
+
}), Ie(() => {
|
1467
|
+
r.resetOn && r.resetOn !== "submit" && p();
|
1468
|
+
});
|
1469
|
+
function M(s, c) {
|
1470
|
+
const g = c.target, j = (() => {
|
1471
|
+
switch (s.type) {
|
1472
|
+
case z.CHECKBOX:
|
1473
|
+
return g.checked ? "true" : "false";
|
1465
1474
|
default:
|
1466
|
-
return
|
1475
|
+
return g.value;
|
1467
1476
|
}
|
1468
1477
|
})();
|
1469
|
-
|
1478
|
+
i.value[s.name] = j, n("change", i.value, c);
|
1470
1479
|
}
|
1471
|
-
|
1472
|
-
|
1473
|
-
}
|
1474
|
-
|
1475
|
-
|
1476
|
-
function M() {
|
1477
|
-
u.value.$reset(), s.value = Object.entries(s).reduce((m, [p]) => ({ ...m, [p]: "" }), {});
|
1480
|
+
function p() {
|
1481
|
+
d.value.$reset(), i.value = Object.entries(i).reduce((s, [c]) => ({ ...s, [c]: "" }), {});
|
1482
|
+
}
|
1483
|
+
function h(s) {
|
1484
|
+
i.value = s;
|
1478
1485
|
}
|
1479
|
-
async function
|
1480
|
-
await
|
1486
|
+
async function m(s) {
|
1487
|
+
await d.value.$validate() && (n("submit", { ...i.value }, s), r.resetOn === "submit" && p());
|
1481
1488
|
}
|
1482
|
-
return (
|
1483
|
-
id:
|
1484
|
-
name:
|
1489
|
+
return (s, c) => (y(), w("form", {
|
1490
|
+
id: s.id,
|
1491
|
+
name: s.name,
|
1485
1492
|
class: "pdap-form",
|
1486
|
-
onSubmit: me(
|
1493
|
+
onSubmit: me(m, ["prevent"])
|
1487
1494
|
}, [
|
1488
|
-
typeof
|
1489
|
-
(
|
1490
|
-
var
|
1491
|
-
return
|
1492
|
-
key:
|
1493
|
-
error: (
|
1494
|
-
value:
|
1495
|
-
onInput: (
|
1495
|
+
typeof l.value == "string" ? (y(), w("div", Mr, E(l.value), 1)) : Y("", !0),
|
1496
|
+
(y(!0), w(F, null, ce(o.value, (g) => {
|
1497
|
+
var j, x, _, T;
|
1498
|
+
return y(), S(ra, W(g, {
|
1499
|
+
key: g.name,
|
1500
|
+
error: (j = L(d)[g.name]) != null && j.$error ? (T = (_ = (x = L(d)[g.name]) == null ? void 0 : x.$errors) == null ? void 0 : _[0]) == null ? void 0 : T.$message : "",
|
1501
|
+
value: i.value[g.name],
|
1502
|
+
onInput: (O) => M(g, O)
|
1496
1503
|
}), null, 16, ["error", "value", "onInput"]);
|
1497
1504
|
}), 128)),
|
1498
|
-
H(
|
1505
|
+
H(s.$slots, "default")
|
1499
1506
|
], 40, Lr));
|
1500
1507
|
}
|
1501
1508
|
});
|
@@ -1509,7 +1516,7 @@ const yr = (e) => (gt("data-v-3158c5fc"), e = e(), pt(), e), mr = ["aria-label",
|
|
1509
1516
|
jr
|
1510
1517
|
], wr = ["aria-hidden"], hr = ["href"], vr = {
|
1511
1518
|
name: "PdapHeader"
|
1512
|
-
}, $r = /* @__PURE__ */
|
1519
|
+
}, $r = /* @__PURE__ */ I({
|
1513
1520
|
...vr,
|
1514
1521
|
setup(e) {
|
1515
1522
|
let t = re("navLinks");
|
@@ -1532,10 +1539,10 @@ const yr = (e) => (gt("data-v-3158c5fc"), e = e(), pt(), e), mr = ["aria-label",
|
|
1532
1539
|
}
|
1533
1540
|
async function n() {
|
1534
1541
|
var i, u;
|
1535
|
-
const
|
1536
|
-
!a.isExpanded && a.isMobile ? (a.isExpanded = !0,
|
1542
|
+
const o = document.querySelector("body");
|
1543
|
+
!a.isExpanded && a.isMobile ? (a.isExpanded = !0, o != null && o.classList.contains("lock-scroll") || (i = document.querySelector("body")) == null || i.classList.add("lock-scroll")) : a.isExpanded && a.isMobile && (a.isExpanded = !1, (u = document.querySelector("body")) == null || u.classList.remove("lock-scroll")), await ne();
|
1537
1544
|
}
|
1538
|
-
return (
|
1545
|
+
return (o, i) => (y(), w(F, null, [
|
1539
1546
|
f("div", {
|
1540
1547
|
"aria-label": a.isExpanded ? "close navigation menu" : "open navigation menu",
|
1541
1548
|
"aria-expanded": a.isMobile && a.isExpanded,
|
@@ -1546,26 +1553,26 @@ const yr = (e) => (gt("data-v-3158c5fc"), e = e(), pt(), e), mr = ["aria-label",
|
|
1546
1553
|
onClick: n,
|
1547
1554
|
onKeyup: je(n, ["enter"])
|
1548
1555
|
}, fr, 40, mr),
|
1549
|
-
|
1556
|
+
V(se, null, {
|
1550
1557
|
default: D(() => [
|
1551
1558
|
fe(f("nav", {
|
1552
1559
|
id: "nav",
|
1553
1560
|
"aria-hidden": !(a.isMobile && a.isExpanded),
|
1554
1561
|
class: "pdap-nav"
|
1555
1562
|
}, [
|
1556
|
-
(
|
1563
|
+
(y(!0), w(F, null, ce(L(t), (u) => (y(), w("li", {
|
1557
1564
|
key: u.text,
|
1558
1565
|
class: "pdap-nav-link-container"
|
1559
1566
|
}, [
|
1560
|
-
u.href ? (
|
1567
|
+
u.href ? (y(), w("a", {
|
1561
1568
|
key: 0,
|
1562
1569
|
class: "pdap-nav-link",
|
1563
1570
|
href: u.href,
|
1564
1571
|
target: "_blank",
|
1565
1572
|
referrerpolicy: "no-referrer",
|
1566
1573
|
onClick: n
|
1567
|
-
}, E(u.text), 9, hr)) :
|
1568
|
-
u.path ? (
|
1574
|
+
}, E(u.text), 9, hr)) : Y("", !0),
|
1575
|
+
u.path ? (y(), S(L(oe), {
|
1569
1576
|
key: 1,
|
1570
1577
|
"active-class": "pdap-nav-link-current",
|
1571
1578
|
"exact-active-class": "pdap-nav-link-current-exact",
|
@@ -1574,10 +1581,10 @@ const yr = (e) => (gt("data-v-3158c5fc"), e = e(), pt(), e), mr = ["aria-label",
|
|
1574
1581
|
onClick: n
|
1575
1582
|
}, {
|
1576
1583
|
default: D(() => [
|
1577
|
-
|
1584
|
+
C(E(u.text), 1)
|
1578
1585
|
]),
|
1579
1586
|
_: 2
|
1580
|
-
}, 1032, ["to"])) :
|
1587
|
+
}, 1032, ["to"])) : Y("", !0)
|
1581
1588
|
]))), 128))
|
1582
1589
|
], 8, wr), [
|
1583
1590
|
[Fe, a.isMobile && a.isExpanded || !a.isMobile]
|
@@ -1595,7 +1602,7 @@ const Te = (e, t) => {
|
|
1595
1602
|
return a;
|
1596
1603
|
}, Nr = /* @__PURE__ */ Te($r, [["__scopeId", "data-v-3158c5fc"]]), Dr = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI0LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjE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YXRoIGQ9Ik00ODEuNiwxMDEuNWMtNy44LDAtMTMuNS01LjYtMTMuNS0xMi45YzAtNy4xLDUuNy0xMy4xLDEzLjUtMTMuMWMzLjktMC4yLDcuNiwxLjUsMTAsNC42bC01LjEsNC43Yy0xLjItMS40LTMtMi4zLTQuOS0yLjMKCWMtMy4xLDAtNS4zLDIuNi01LjMsNi4xYzAsMywyLjEsNS45LDUuMyw1LjljMi4zLDAsMy41LTAuOSw0LjktMi41bDUuOSw0LjJDNDg5LjQsOTkuOSw0ODYuNCwxMDEuNSw0ODEuNiwxMDEuNXoiLz4KPHBhdGggZD0iTTUwMy45LDEwMC44Yy01LDAtOC4yLTMuOC04LjItOXYtOWgtMy4xdi02LjZoMy4xVjY1LjloOC45djEwLjJoNC4ydjYuNmgtNC4ydjcuNGMwLDEuOSwxLDMuMiwyLjcsMy4yaDIuMnY3LjRoLTUuNlYxMDAuOHoKCSIvPgo8cG9seWdvbiBwb2ludHM9IjkxLjcsMjAuMiA3Ni4yLDIwLjIgODguNCw4IDgzLjEsMi43IDcxLjUsMTQuMyA3MS41LDAgNjQsMCA2NCwxNC4zIDUyLjMsMi43IDQ3LDggNTkuMiwyMC4yIDQzLjcsMjAuMiA0My43LDI3LjggCgk1OC4xLDI3LjggNDcsMzguOCA1Mi4zLDQ0LjEgNjQsMzIuNSA2NCw0OCA3MS41LDQ4IDcxLjUsMzIuNSA4My4xLDQ0LjEgODguNCwzOC44IDc3LjQsMjcuOCA5MS43LDI3LjggIi8+Cjwvc3ZnPgo=", Tr = ["href"], Cr = ["src"], xr = ["src"], Ir = {
|
1597
1604
|
name: "PdapHeader"
|
1598
|
-
}, nn = /* @__PURE__ */
|
1605
|
+
}, nn = /* @__PURE__ */ I({
|
1599
1606
|
...Ir,
|
1600
1607
|
props: {
|
1601
1608
|
logoImageSrc: { default: Dr },
|
@@ -1609,56 +1616,56 @@ const Te = (e, t) => {
|
|
1609
1616
|
window.removeEventListener("resize", n);
|
1610
1617
|
});
|
1611
1618
|
function n() {
|
1612
|
-
var
|
1613
|
-
a.value && ((
|
1619
|
+
var o;
|
1620
|
+
a.value && ((o = document.querySelector(":root")) == null || o.style.setProperty(
|
1614
1621
|
"--header-height",
|
1615
1622
|
`${a.value.clientHeight}px`
|
1616
1623
|
));
|
1617
1624
|
}
|
1618
|
-
return (
|
1625
|
+
return (o, i) => (y(), w("header", {
|
1619
1626
|
ref_key: "el",
|
1620
1627
|
ref: a,
|
1621
1628
|
class: "pdap-header"
|
1622
1629
|
}, [
|
1623
|
-
L(r) ? (
|
1630
|
+
L(r) ? (y(), S(L(oe), {
|
1624
1631
|
key: 1,
|
1625
|
-
to:
|
1632
|
+
to: o.logoImageAnchorPath,
|
1626
1633
|
class: "logo"
|
1627
1634
|
}, {
|
1628
1635
|
default: D(() => [
|
1629
1636
|
f("img", {
|
1630
|
-
src:
|
1637
|
+
src: o.logoImageSrc,
|
1631
1638
|
loading: "lazy",
|
1632
1639
|
width: "250",
|
1633
1640
|
alt: "Police Data Accessibility Project Logo"
|
1634
1641
|
}, null, 8, xr)
|
1635
1642
|
]),
|
1636
1643
|
_: 1
|
1637
|
-
}, 8, ["to"])) : (
|
1644
|
+
}, 8, ["to"])) : (y(), w("a", {
|
1638
1645
|
key: 0,
|
1639
|
-
href:
|
1646
|
+
href: o.logoImageAnchorPath,
|
1640
1647
|
class: "logo"
|
1641
1648
|
}, [
|
1642
1649
|
f("img", {
|
1643
|
-
src:
|
1650
|
+
src: o.logoImageSrc,
|
1644
1651
|
loading: "lazy",
|
1645
1652
|
width: "250",
|
1646
1653
|
alt: "Police Data Accessibility Project Logo"
|
1647
1654
|
}, null, 8, Cr)
|
1648
1655
|
], 8, Tr)),
|
1649
|
-
|
1656
|
+
V(Nr)
|
1650
1657
|
], 512));
|
1651
1658
|
}
|
1652
1659
|
});
|
1653
1660
|
const Sr = /* @__PURE__ */ f("div", { class: "pdap-flex-container" }, [
|
1654
1661
|
/* @__PURE__ */ f("h2", { class: "mt-0" }, "Search our database"),
|
1655
1662
|
/* @__PURE__ */ f("p", { class: "pb-4 md:pb-8" }, [
|
1656
|
-
/* @__PURE__ */
|
1663
|
+
/* @__PURE__ */ C(" If you are looking for something specific, we may already be tracking it. "),
|
1657
1664
|
/* @__PURE__ */ f("a", { href: "https://pdap.io/data" }, "Learn more about the data here.")
|
1658
1665
|
])
|
1659
1666
|
], -1), br = { class: "pdap-quick-search-form h-full max-h-[75-vh] justify-start p-0" }, Er = { class: "max-w-[unset] text-med" }, Or = ["href"], zr = ["href"], _r = {
|
1660
1667
|
name: "QuickSearchForm"
|
1661
|
-
}, sn = /* @__PURE__ */
|
1668
|
+
}, sn = /* @__PURE__ */ I({
|
1662
1669
|
..._r,
|
1663
1670
|
props: {
|
1664
1671
|
baseUrlForRedirect: { default: "https://data-sources.pdap.io" }
|
@@ -1669,7 +1676,7 @@ const Sr = /* @__PURE__ */ f("div", { class: "pdap-flex-container" }, [
|
|
1669
1676
|
id: "search-term",
|
1670
1677
|
name: "searchTerm",
|
1671
1678
|
label: "What are you looking for?",
|
1672
|
-
type:
|
1679
|
+
type: z.TEXT,
|
1673
1680
|
placeholder: "Enter a keyword, or 'all'",
|
1674
1681
|
value: ""
|
1675
1682
|
},
|
@@ -1677,28 +1684,28 @@ const Sr = /* @__PURE__ */ f("div", { class: "pdap-flex-container" }, [
|
|
1677
1684
|
id: "location",
|
1678
1685
|
name: "location",
|
1679
1686
|
label: "From where?",
|
1680
|
-
type:
|
1687
|
+
type: z.TEXT,
|
1681
1688
|
placeholder: "Enter a place, or 'all'",
|
1682
1689
|
value: ""
|
1683
1690
|
}
|
1684
|
-
], n = N(void 0),
|
1685
|
-
function i(
|
1686
|
-
n.value && Object.values(
|
1691
|
+
], n = N(void 0), o = t.getRoutes().some((d) => d.path.includes("/search/"));
|
1692
|
+
function i(d) {
|
1693
|
+
n.value && Object.values(d).some(Boolean) && (n.value = void 0);
|
1687
1694
|
}
|
1688
|
-
function u(
|
1689
|
-
if (Object.values(
|
1695
|
+
function u(d) {
|
1696
|
+
if (Object.values(d).every((p) => !p)) {
|
1690
1697
|
n.value = "Either a search term or a location is required.";
|
1691
1698
|
return;
|
1692
1699
|
}
|
1693
|
-
let { location: l, searchTerm: M } =
|
1694
|
-
l = l && l.length > 0 ? l : "all", M = M && M.length > 0 ? M : "all",
|
1700
|
+
let { location: l, searchTerm: M } = d;
|
1701
|
+
l = l && l.length > 0 ? l : "all", M = M && M.length > 0 ? M : "all", o ? t.push(`/search/${M}/${l}`) : window.location.assign(
|
1695
1702
|
`${a.baseUrlForRedirect}/search/${M}/${l}`
|
1696
1703
|
);
|
1697
1704
|
}
|
1698
|
-
return (
|
1705
|
+
return (d, l) => (y(), w(F, null, [
|
1699
1706
|
Sr,
|
1700
1707
|
f("div", br, [
|
1701
|
-
|
1708
|
+
V(pr, {
|
1702
1709
|
id: "quick-search-form",
|
1703
1710
|
class: "flex flex-wrap gap-x-4",
|
1704
1711
|
error: n.value,
|
@@ -1708,12 +1715,12 @@ const Sr = /* @__PURE__ */ f("div", { class: "pdap-flex-container" }, [
|
|
1708
1715
|
onSubmit: u
|
1709
1716
|
}, {
|
1710
1717
|
default: D(() => [
|
1711
|
-
|
1718
|
+
V(Ge, {
|
1712
1719
|
type: "submit",
|
1713
1720
|
class: "flex-grow-0 flex-shrink-0 basis-full max-w-[unset] mt-4"
|
1714
1721
|
}, {
|
1715
1722
|
default: D(() => [
|
1716
|
-
|
1723
|
+
C("Search Data Sources")
|
1717
1724
|
]),
|
1718
1725
|
_: 1
|
1719
1726
|
})
|
@@ -1721,37 +1728,37 @@ const Sr = /* @__PURE__ */ f("div", { class: "pdap-flex-container" }, [
|
|
1721
1728
|
_: 1
|
1722
1729
|
}, 8, ["error"]),
|
1723
1730
|
f("p", Er, [
|
1724
|
-
|
1725
|
-
L(
|
1731
|
+
C(" For example, you could search for "),
|
1732
|
+
L(o) ? (y(), S(L(oe), {
|
1726
1733
|
key: 0,
|
1727
1734
|
to: "/search/stops/pittsburgh"
|
1728
1735
|
}, {
|
1729
1736
|
default: D(() => [
|
1730
|
-
|
1737
|
+
C(" stops in Pittsburgh ")
|
1731
1738
|
]),
|
1732
1739
|
_: 1
|
1733
|
-
})) : (
|
1740
|
+
})) : (y(), w("a", {
|
1734
1741
|
key: 1,
|
1735
1742
|
target: "_blank",
|
1736
1743
|
rel: "noreferrer",
|
1737
1744
|
href: `${a.baseUrlForRedirect}/search/stops/pittsburgh`
|
1738
1745
|
}, " stops in Pittsburgh ", 8, Or)),
|
1739
|
-
|
1740
|
-
L(
|
1746
|
+
C(" or "),
|
1747
|
+
L(o) ? (y(), S(L(oe), {
|
1741
1748
|
key: 2,
|
1742
1749
|
to: "/search/complaints/all"
|
1743
1750
|
}, {
|
1744
1751
|
default: D(() => [
|
1745
|
-
|
1752
|
+
C(" complaints everywhere ")
|
1746
1753
|
]),
|
1747
1754
|
_: 1
|
1748
|
-
})) : (
|
1755
|
+
})) : (y(), w("a", {
|
1749
1756
|
key: 3,
|
1750
1757
|
target: "_blank",
|
1751
1758
|
rel: "noreferrer",
|
1752
1759
|
href: `${a.baseUrlForRedirect}/search/complaints/all`
|
1753
1760
|
}, " complaints everywhere ", 8, zr)),
|
1754
|
-
|
1761
|
+
C(" . ")
|
1755
1762
|
])
|
1756
1763
|
])
|
1757
1764
|
], 64));
|
@@ -1759,14 +1766,14 @@ const Sr = /* @__PURE__ */ f("div", { class: "pdap-flex-container" }, [
|
|
1759
1766
|
});
|
1760
1767
|
const Ar = ["alt", "src"], kr = {
|
1761
1768
|
name: "TileIcon"
|
1762
|
-
}, on = /* @__PURE__ */
|
1769
|
+
}, on = /* @__PURE__ */ I({
|
1763
1770
|
...kr,
|
1764
1771
|
props: {
|
1765
1772
|
imgAltText: {},
|
1766
1773
|
imgSrc: {}
|
1767
1774
|
},
|
1768
1775
|
setup(e) {
|
1769
|
-
return (t, a) => (
|
1776
|
+
return (t, a) => (y(), w("img", {
|
1770
1777
|
class: "pdap-tile-icon",
|
1771
1778
|
alt: t.imgAltText,
|
1772
1779
|
src: t.imgSrc
|
@@ -1786,7 +1793,7 @@ const Pr = {
|
|
1786
1793
|
}
|
1787
1794
|
}, Yr = ["onKeydown"], Qr = ["id", "aria-hidden"], Rr = {
|
1788
1795
|
name: "PdapButton"
|
1789
|
-
}, un = /* @__PURE__ */
|
1796
|
+
}, un = /* @__PURE__ */ I({
|
1790
1797
|
...Rr,
|
1791
1798
|
props: {
|
1792
1799
|
defaultOpen: { type: Boolean, default: !1 },
|
@@ -1796,11 +1803,11 @@ const Pr = {
|
|
1796
1803
|
},
|
1797
1804
|
emits: ["update:open", "press"],
|
1798
1805
|
setup(e, { emit: t }) {
|
1799
|
-
const a = e, r = t, n = N(null),
|
1806
|
+
const a = e, r = t, n = N(null), o = N(null), i = N(a.defaultOpen), u = v(
|
1800
1807
|
() => a.triggerOn === ae.HOVER
|
1801
1808
|
);
|
1802
|
-
function
|
1803
|
-
r("press",
|
1809
|
+
function d(s) {
|
1810
|
+
r("press", s), a.triggerOn === ae.PRESS && l();
|
1804
1811
|
}
|
1805
1812
|
const l = () => {
|
1806
1813
|
a.disabled || (i.value = !i.value, r("update:open", i.value));
|
@@ -1808,65 +1815,65 @@ const Pr = {
|
|
1808
1815
|
function M() {
|
1809
1816
|
i.value = !0, r("update:open", !0);
|
1810
1817
|
}
|
1811
|
-
function
|
1818
|
+
function p() {
|
1812
1819
|
i.value = !1, r("update:open", !1);
|
1813
1820
|
}
|
1814
|
-
function
|
1815
|
-
var
|
1821
|
+
function h() {
|
1822
|
+
var j, x;
|
1816
1823
|
if (!n.value)
|
1817
1824
|
return;
|
1818
1825
|
n.value.style.display = "flex", n.value.style.setProperty("max-height", "max-content");
|
1819
|
-
const
|
1826
|
+
const s = n.value.scrollHeight;
|
1820
1827
|
n.value.style.display = "none", n.value.style.removeProperty("max-height");
|
1821
|
-
const
|
1828
|
+
const c = document == null ? void 0 : document.querySelector(":root"), g = (j = c == null ? void 0 : c.style) == null ? void 0 : j.getPropertyValue(
|
1822
1829
|
"--dropdown-content-max-height"
|
1823
1830
|
);
|
1824
|
-
Number((
|
1831
|
+
Number((x = g == null ? void 0 : g.match(/\d+/)) == null ? void 0 : x.join("")) >= s || n.value && c && c.style.setProperty("--dropdown-content-max-height", `${s + 16}px`);
|
1825
1832
|
}
|
1826
|
-
const
|
1833
|
+
const m = {
|
1827
1834
|
mouseenter: u.value ? M : void 0,
|
1828
1835
|
focus: u.value ? M : void 0,
|
1829
1836
|
focusin: u.value ? M : void 0,
|
1830
|
-
focusout: u.value ?
|
1831
|
-
mouseleave: u.value ?
|
1832
|
-
blur: u.value ?
|
1837
|
+
focusout: u.value ? p : void 0,
|
1838
|
+
mouseleave: u.value ? p : void 0,
|
1839
|
+
blur: u.value ? p : void 0
|
1833
1840
|
};
|
1834
1841
|
return We(() => {
|
1835
|
-
|
1836
|
-
}), (
|
1842
|
+
h();
|
1843
|
+
}), (s, c) => fe((y(), w("div", W({
|
1837
1844
|
ref_key: "dropdownRef",
|
1838
|
-
ref:
|
1845
|
+
ref: o,
|
1839
1846
|
class: "pdap-dropdown",
|
1840
1847
|
role: "presentation",
|
1841
|
-
onKeydown: je(
|
1842
|
-
}, yt(
|
1843
|
-
|
1844
|
-
"aria-controls":
|
1848
|
+
onKeydown: je(p, ["escape"])
|
1849
|
+
}, yt(m, !0)), [
|
1850
|
+
V(L(Ge), {
|
1851
|
+
"aria-controls": s.dropdownId,
|
1845
1852
|
"aria-expanded": i.value,
|
1846
|
-
disabled:
|
1853
|
+
disabled: s.disabled,
|
1847
1854
|
"aria-haspopup": "true",
|
1848
1855
|
intent: "tertiary",
|
1849
1856
|
class: le({
|
1850
1857
|
"pdap-dropdown-trigger": !0,
|
1851
|
-
"pointer-events-none":
|
1852
|
-
"cursor-not-allowed":
|
1858
|
+
"pointer-events-none": s.disabled,
|
1859
|
+
"cursor-not-allowed": s.disabled
|
1853
1860
|
}),
|
1854
1861
|
"data-test": "dropdown-trigger",
|
1855
|
-
onClick: me(
|
1856
|
-
onKeydown: je(me(
|
1862
|
+
onClick: me(d, ["prevent", "stop"]),
|
1863
|
+
onKeydown: je(me(d, ["prevent", "stop"]), ["enter", "space"])
|
1857
1864
|
}, {
|
1858
1865
|
default: D(() => [
|
1859
|
-
H(
|
1866
|
+
H(s.$slots, "trigger")
|
1860
1867
|
]),
|
1861
1868
|
_: 3
|
1862
1869
|
}, 8, ["aria-controls", "aria-expanded", "disabled", "class", "onClick", "onKeydown"]),
|
1863
|
-
|
1870
|
+
V(se, {
|
1864
1871
|
name: "dropdown",
|
1865
1872
|
appear: ""
|
1866
1873
|
}, {
|
1867
1874
|
default: D(() => [
|
1868
1875
|
fe(f("div", {
|
1869
|
-
id:
|
1876
|
+
id: s.dropdownId,
|
1870
1877
|
ref_key: "contentRef",
|
1871
1878
|
ref: n,
|
1872
1879
|
"aria-hidden": !i.value,
|
@@ -1874,7 +1881,7 @@ const Pr = {
|
|
1874
1881
|
"data-test": "dropdown-content",
|
1875
1882
|
role: "menu"
|
1876
1883
|
}, [
|
1877
|
-
H(
|
1884
|
+
H(s.$slots, "content")
|
1878
1885
|
], 8, Qr), [
|
1879
1886
|
[Fe, i.value]
|
1880
1887
|
])
|
@@ -1882,14 +1889,14 @@ const Pr = {
|
|
1882
1889
|
_: 3
|
1883
1890
|
})
|
1884
1891
|
], 16, Yr)), [
|
1885
|
-
[L(Pr),
|
1892
|
+
[L(Pr), p]
|
1886
1893
|
]);
|
1887
1894
|
}
|
1888
1895
|
});
|
1889
1896
|
function Ur(e) {
|
1890
1897
|
const t = [];
|
1891
1898
|
for (const a of e.matched) {
|
1892
|
-
const { name: r, path: n, meta:
|
1899
|
+
const { name: r, path: n, meta: o } = a, i = o.breadcrumbText ?? r;
|
1893
1900
|
i && t.push({
|
1894
1901
|
text: i,
|
1895
1902
|
path: n,
|
@@ -1900,28 +1907,28 @@ function Ur(e) {
|
|
1900
1907
|
}
|
1901
1908
|
const Vr = { "aria-label": "Breadcrumb" }, Br = { key: 1 }, Fr = {
|
1902
1909
|
name: "PdapBreadcrumbs"
|
1903
|
-
}, Wr = /* @__PURE__ */
|
1910
|
+
}, Wr = /* @__PURE__ */ I({
|
1904
1911
|
...Fr,
|
1905
1912
|
setup(e) {
|
1906
1913
|
const t = ft(), a = v(() => Ur(t));
|
1907
1914
|
return (r, n) => {
|
1908
|
-
const
|
1909
|
-
return
|
1910
|
-
|
1915
|
+
const o = Ve("router-link");
|
1916
|
+
return y(), w("nav", Vr, [
|
1917
|
+
V(mt, {
|
1911
1918
|
class: "pdap-breadcrumbs",
|
1912
1919
|
tag: "ul"
|
1913
1920
|
}, {
|
1914
1921
|
default: D(() => [
|
1915
|
-
(
|
1922
|
+
(y(!0), w(F, null, ce(a.value, (i) => (y(), w("li", {
|
1916
1923
|
key: i.text,
|
1917
1924
|
class: le({ "is-active": i.active })
|
1918
1925
|
}, [
|
1919
|
-
i.active ? (
|
1926
|
+
i.active ? (y(), w("span", Br, E(i.text), 1)) : (y(), S(o, {
|
1920
1927
|
key: 0,
|
1921
1928
|
to: i.path
|
1922
1929
|
}, {
|
1923
1930
|
default: D(() => [
|
1924
|
-
|
1931
|
+
C(E(i.text), 1)
|
1925
1932
|
]),
|
1926
1933
|
_: 2
|
1927
1934
|
}, 1032, ["to"]))
|
@@ -1948,7 +1955,7 @@ const ln = /* @__PURE__ */ Te(Wr, [["__scopeId", "data-v-e8d76c0f"]]), Gr = {
|
|
1948
1955
|
*/
|
1949
1956
|
const Kr = {
|
1950
1957
|
name: "PdapSpinner"
|
1951
|
-
}, qr = /* @__PURE__ */
|
1958
|
+
}, qr = /* @__PURE__ */ I({
|
1952
1959
|
...Kr,
|
1953
1960
|
props: {
|
1954
1961
|
color: { default: "currentColor" },
|
@@ -1957,10 +1964,10 @@ const Kr = {
|
|
1957
1964
|
show: { type: Boolean, default: !1 }
|
1958
1965
|
},
|
1959
1966
|
setup(e) {
|
1960
|
-
return (t, a) => (
|
1967
|
+
return (t, a) => (y(), S(se, { appear: "" }, {
|
1961
1968
|
default: D(() => [
|
1962
|
-
t.show ? (
|
1963
|
-
(
|
1969
|
+
t.show ? (y(), w("div", Gr, [
|
1970
|
+
(y(), w("svg", {
|
1964
1971
|
"aria-label": "loading",
|
1965
1972
|
width: t.size,
|
1966
1973
|
height: t.size,
|
@@ -1980,17 +1987,17 @@ const Kr = {
|
|
1980
1987
|
fill: t.color
|
1981
1988
|
}, null, 8, Jr)
|
1982
1989
|
], 8, Zr)),
|
1983
|
-
(
|
1990
|
+
(y(), S(se, {
|
1984
1991
|
key: t.text,
|
1985
1992
|
appear: "",
|
1986
1993
|
mode: "out-in"
|
1987
1994
|
}, {
|
1988
1995
|
default: D(() => [
|
1989
|
-
t.text && t.show ? (
|
1996
|
+
t.text && t.show ? (y(), w("p", Xr, E(t.text), 1)) : Y("", !0)
|
1990
1997
|
]),
|
1991
1998
|
_: 1
|
1992
1999
|
}))
|
1993
|
-
])) :
|
2000
|
+
])) : Y("", !0)
|
1994
2001
|
]),
|
1995
2002
|
_: 1
|
1996
2003
|
}));
|
@@ -2175,7 +2182,7 @@ export {
|
|
2175
2182
|
ra as Input,
|
2176
2183
|
Nr as Nav,
|
2177
2184
|
ae as PdapDropdownTriggerType,
|
2178
|
-
|
2185
|
+
z as PdapInputTypes,
|
2179
2186
|
sn as QuickSearchForm,
|
2180
2187
|
cn as Spinner,
|
2181
2188
|
on as TileIcon,
|