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