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