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