pdap-design-system 3.0.0-beta.8 → 3.0.0-beta.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Form/PdapForm.vue.d.ts +3 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +467 -460
- package/package.json +1 -1
@@ -107,7 +107,9 @@ import { PdapFormProps } from './types';
|
|
107
107
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PdapFormProps>, {
|
108
108
|
error: null;
|
109
109
|
resetOn: string;
|
110
|
-
}>, {
|
110
|
+
}>, {
|
111
|
+
setValues: <T extends Record<string, string>>(update: T) => void;
|
112
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
111
113
|
change: (...args: any[]) => void;
|
112
114
|
submit: (...args: any[]) => void;
|
113
115
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PdapFormProps>, {
|
package/dist/index.cjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),b=require("vue-router"),Oe={name:"PdapButton"},H=e.defineComponent({...Oe,props:{intent:{default:"primary"},isLoading:{type:Boolean,default:!1}},setup(t){const r=t,a=e.reactive({"pdap-button":!0,[`pdap-button-${r.intent}`]:!!r.intent,"pdap-button-loading":r.isLoading});return(n,o)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(a)},[e.renderSlot(n.$slots,"default")],2))}});const ze=e.createElementVNode("h1",null,"Oops, something went wrong!",-1),_e=e.createElementVNode("p",{class:"max-w-full","data-test":"error-boundary-message"},[e.createTextVNode(" If you keep seeing this message, please email "),e.createElementVNode("a",{href:"mailto:contact@pdap.io"},"contact@pdap.io"),e.createTextVNode(" for assistance. ")],-1),ke={name:"ErrorBoundary"},Ae=e.defineComponent({...ke,props:{component:{default:"div"},onError:{type:Function,default:void 0},params:{default:void 0}},emits:["onError"],setup(t,{emit:r}){const a=t,n=r,o=e.ref(),s=e.ref("");function l(i,d,c){var p;o.value=i,s.value=c,(p=a.onError)==null||p.call(a,i,d,c),n("onError",{error:i,vm:d,info:c})}return e.onErrorCaptured((i,d,c)=>{l(i,d,c)}),(i,d)=>o.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.component),{key:1,class:"pdap-flex-container-center h-[full]","v-bind":i.params},{default:e.withCtx(()=>[ze,_e]),_:1},8,["v-bind"])):e.renderSlot(i.$slots,"default",{key:0})}}),Pe="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI0LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMTMuOCA4Ni4xIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxMTMuOCA4Ni4xOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxwYXRoIGQ9Ik0wLDgwLjlMMjEuNSwyLjZoNS4xTDUuMSw4MC45SDB6Ii8+Cjxwb2x5Z29uIHBvaW50cz0iNzguOCwyMC40IDYxLjgsMjAuNCA3NSw3LjIgNzEuMSwzLjIgNTguNCwxNS44IDU4LjQsMCA1Mi44LDAgNTIuOCwxNS44IDQwLjIsMy4yIDM2LjIsNy4yIDQ5LjUsMjAuNCAzM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-footer-social-links"},Qe=["href"],Re={class:"pdap-footer-copyright"},Ue=e.createElementVNode("br",null,null,-1),Fe=e.createElementVNode("p",{class:"pdap-footer-copyright"},[e.createTextVNode(" PDAP is a non-profit. EIN: 85-4207132. "),e.createElementVNode("a",{href:"https://docs.pdap.io/meta/policy/pdap-privacy-policy",alt:"Privacy Policy",target:"_blank"},[e.createElementVNode("br"),e.createTextVNode(" Privacy Policy "),e.createElementVNode("i",{class:"fa fa-external-link"})]),e.createElementVNode("br"),e.createElementVNode("a",{href:"mailto:contact@pdap.io"},"contact@pdap.io")],-1),We={class:"pdap-footer-widget-links"},Ge=e.createElementVNode("a",{href:"https://www.guidestar.org/profile/85-4207132",target:"_blank"},[e.createElementVNode("img",{alt:"platinum transparency",src:"https://widgets.guidestar.org/gximage2?o=9973356&l=v4"})],-1),Ze=["href"],He=["src"],Je=["src"],Xe={name:"PdapFooter"},Ke=e.defineComponent({...Xe,props:{logoImageSrc:{default:Pe},logoImageAnchorPath:{default:"/"}},setup(t){const r=t,a=e.inject("footerLinks",[{href:"https://github.com/orgs/Police-Data-Accessibility-Project",text:"Github"},{href:"https://discord.gg/wMqex8nKZJ",text:"Discord"},{href:"https://www.linkedin.com/company/pdap",text:"LinkedIn"},{path:"/jobs",text:"Jobs"}]),n=r.logoImageAnchorPath.startsWith("/");return(o,s)=>{const l=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("footer",Be,[e.createElementVNode("div",Ye,[e.createElementVNode("ul",Ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),i=>(e.openBlock(),e.createElementBlock("li",{key:i.text,class:"pdap-footer-link-container"},[i.href?(e.openBlock(),e.createElementBlock("a",{key:0,class:"pdap-footer-social-link",href:i.href,target:"_blank",referrerpolicy:"no-referrer"},e.toDisplayString(i.text),9,Qe)):e.createCommentVNode("",!0),i.path?(e.openBlock(),e.createBlock(l,{key:1,"active-class":"pdap-footer-social-link-current","exact-active-class":"pdap-footer-social-link-current-exact",class:"pdap-footer-social-link",to:i.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.text),1)]),_:2},1032,["to"])):e.createCommentVNode("",!0)]))),128))]),e.createElementVNode("p",Re,[e.createTextVNode(" © "+e.toDisplayString(new Date().getFullYear())+" Police Data Accessibility Project",1),Ue]),Fe,e.createElementVNode("div",We,[Ge,e.unref(n)?(e.openBlock(),e.createBlock(l,{key:1,to:o.logoImageAnchorPath,class:"pdap-footer-logo"},{default:e.withCtx(()=>[e.createElementVNode("img",{src:o.logoImageSrc,loading:"lazy",width:"250",alt:"Police Data Accessibility Project Logo"},null,8,Je)]),_:1},8,["to"])):(e.openBlock(),e.createElementBlock("a",{key:0,href:o.logoImageAnchorPath,class:"pdap-footer-logo"},[e.createElementVNode("img",{src:o.logoImageSrc,loading:"lazy",width:"250",alt:"Police Data Accessibility Project Logo"},null,8,He)],8,Ze))])])])}}});function re(t,r){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),a.push.apply(a,n)}return a}function C(t){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?re(Object(a),!0).forEach(function(n){qe(t,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):re(Object(a)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(a,n))})}return t}function qe(t,r,a){return r in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a,t}function ae(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(t).reduce((a,n)=>(r.includes(n)||(a[n]=e.unref(t[n])),a),{})}function V(t){return typeof t=="function"}function et(t){return e.isReactive(t)||e.isReadonly(t)}function ge(t,r,a){let n=t;const o=r.split(".");for(let s=0;s<o.length;s++){if(!n[o[s]])return a;n=n[o[s]]}return n}function G(t,r,a){return e.computed(()=>t.some(n=>ge(r,n,{[a]:!1})[a]))}function ne(t,r,a){return e.computed(()=>t.reduce((n,o)=>{const s=ge(r,o,{[a]:!1})[a]||[];return n.concat(s)},[]))}function me(t,r,a,n){return t.call(n,e.unref(r),e.unref(a),n)}function fe(t){return t.$valid!==void 0?!t.$valid:!t}function tt(t,r,a,n,o,s,l){let{$lazy:i,$rewardEarly:d}=o,c=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],p=arguments.length>8?arguments[8]:void 0,m=arguments.length>9?arguments[9]:void 0,f=arguments.length>10?arguments[10]:void 0;const g=e.ref(!!n.value),u=e.ref(0);a.value=!1;const L=e.watch([r,n].concat(c,f),()=>{if(i&&!n.value||d&&!m.value&&!a.value)return;let M;try{M=me(t,r,p,l)}catch(y){M=Promise.reject(y)}u.value++,a.value=!!u.value,g.value=!1,Promise.resolve(M).then(y=>{u.value--,a.value=!!u.value,s.value=y,g.value=fe(y)}).catch(y=>{u.value--,a.value=!!u.value,s.value=y,g.value=!0})},{immediate:!0,deep:typeof r=="object"});return{$invalid:g,$unwatch:L}}function rt(t,r,a,n,o,s,l,i){let{$lazy:d,$rewardEarly:c}=n;const p=()=>({}),m=e.computed(()=>{if(d&&!a.value||c&&!i.value)return!1;let f=!0;try{const g=me(t,r,l,s);o.value=g,f=fe(g)}catch(g){o.value=g}return f});return{$unwatch:p,$invalid:m}}function at(t,r,a,n,o,s,l,i,d,c,p){const m=e.ref(!1),f=t.$params||{},g=e.ref(null);let u,L;t.$async?{$invalid:u,$unwatch:L}=tt(t.$validator,r,m,a,n,g,o,t.$watchTargets,d,c,p):{$invalid:u,$unwatch:L}=rt(t.$validator,r,a,n,g,o,d,c);const M=t.$message;return{$message:V(M)?e.computed(()=>M(ae({$pending:m,$invalid:u,$params:ae(f),$model:r,$response:g,$validator:s,$propertyPath:i,$property:l}))):M||"",$params:f,$pending:m,$invalid:u,$response:g,$unwatch:L}}function nt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=e.unref(t),a=Object.keys(r),n={},o={},s={};let l=null;return a.forEach(i=>{const d=r[i];switch(!0){case V(d.$validator):n[i]=d;break;case V(d):n[i]={$validator:d};break;case i==="$validationGroups":l=d;break;case i.startsWith("$"):s[i]=d;break;default:o[i]=d}}),{rules:n,nestedValidators:o,config:s,validationGroups:l}}const ot="__root";function st(t,r,a,n,o,s,l,i,d){const c=Object.keys(t),p=n.get(o,t),m=e.ref(!1),f=e.ref(!1),g=e.ref(0);if(p){if(!p.$partial)return p;p.$unwatch(),m.value=p.$dirty.value}const u={$dirty:m,$path:o,$touch:()=>{m.value||(m.value=!0)},$reset:()=>{m.value&&(m.value=!1)},$commit:()=>{}};return c.length?(c.forEach(L=>{u[L]=at(t[L],r,u.$dirty,s,l,L,a,o,d,f,g)}),u.$externalResults=e.computed(()=>i.value?[].concat(i.value).map((L,M)=>({$propertyPath:o,$property:a,$validator:"$externalResults",$uid:`${o}-externalResult-${M}`,$message:L,$params:{},$response:null,$pending:!1})):[]),u.$invalid=e.computed(()=>{const L=c.some(M=>e.unref(u[M].$invalid));return f.value=L,!!u.$externalResults.value.length||L}),u.$pending=e.computed(()=>c.some(L=>e.unref(u[L].$pending))),u.$error=e.computed(()=>u.$dirty.value?u.$pending.value||u.$invalid.value:!1),u.$silentErrors=e.computed(()=>c.filter(L=>e.unref(u[L].$invalid)).map(L=>{const M=u[L];return e.reactive({$propertyPath:o,$property:a,$validator:L,$uid:`${o}-${L}`,$message:M.$message,$params:M.$params,$response:M.$response,$pending:M.$pending})}).concat(u.$externalResults.value)),u.$errors=e.computed(()=>u.$dirty.value?u.$silentErrors.value:[]),u.$unwatch=()=>c.forEach(L=>{u[L].$unwatch()}),u.$commit=()=>{f.value=!0,g.value=Date.now()},n.set(o,t,u),u):(p&&n.set(o,t,u),u)}function ut(t,r,a,n,o,s,l){const i=Object.keys(t);return i.length?i.reduce((d,c)=>(d[c]=Z({validations:t[c],state:r,key:c,parentKey:a,resultsCache:n,globalConfig:o,instance:s,externalResults:l}),d),{}):{}}function it(t,r,a){const n=e.computed(()=>[r,a].filter(u=>u).reduce((u,L)=>u.concat(Object.values(e.unref(L))),[])),o=e.computed({get(){return t.$dirty.value||(n.value.length?n.value.every(u=>u.$dirty):!1)},set(u){t.$dirty.value=u}}),s=e.computed(()=>{const u=e.unref(t.$silentErrors)||[],L=n.value.filter(M=>(e.unref(M).$silentErrors||[]).length).reduce((M,y)=>M.concat(...y.$silentErrors),[]);return u.concat(L)}),l=e.computed(()=>{const u=e.unref(t.$errors)||[],L=n.value.filter(M=>(e.unref(M).$errors||[]).length).reduce((M,y)=>M.concat(...y.$errors),[]);return u.concat(L)}),i=e.computed(()=>n.value.some(u=>u.$invalid)||e.unref(t.$invalid)||!1),d=e.computed(()=>n.value.some(u=>e.unref(u.$pending))||e.unref(t.$pending)||!1),c=e.computed(()=>n.value.some(u=>u.$dirty)||n.value.some(u=>u.$anyDirty)||o.value),p=e.computed(()=>o.value?d.value||i.value:!1),m=()=>{t.$touch(),n.value.forEach(u=>{u.$touch()})},f=()=>{t.$commit(),n.value.forEach(u=>{u.$commit()})},g=()=>{t.$reset(),n.value.forEach(u=>{u.$reset()})};return n.value.length&&n.value.every(u=>u.$dirty)&&m(),{$dirty:o,$errors:l,$invalid:i,$anyDirty:c,$error:p,$pending:d,$touch:m,$reset:g,$silentErrors:s,$commit:f}}function Z(t){let{validations:r,state:a,key:n,parentKey:o,childResults:s,resultsCache:l,globalConfig:i={},instance:d,externalResults:c}=t;const p=o?`${o}.${n}`:n,{rules:m,nestedValidators:f,config:g,validationGroups:u}=nt(r),L=C(C({},i),g),M=n?e.computed(()=>{const w=e.unref(a);return w?e.unref(w[n]):void 0}):a,y=C({},e.unref(c)||{}),h=e.computed(()=>{const w=e.unref(c);return n?w?e.unref(w[n]):void 0:w}),_=st(m,M,n,l,p,L,d,h,a),v=ut(f,M,p,l,L,d,h),E={};u&&Object.entries(u).forEach(w=>{let[S,D]=w;E[S]={$invalid:G(D,v,"$invalid"),$error:G(D,v,"$error"),$pending:G(D,v,"$pending"),$errors:ne(D,v,"$errors"),$silentErrors:ne(D,v,"$silentErrors")}});const{$dirty:$,$errors:B,$invalid:U,$anyDirty:De,$error:Ce,$pending:F,$touch:W,$reset:Te,$silentErrors:xe,$commit:te}=it(_,v,s),Ee=n?e.computed({get:()=>e.unref(M),set:w=>{$.value=!0;const S=e.unref(a),D=e.unref(c);D&&(D[n]=y[n]),e.isRef(S[n])?S[n].value=w:S[n]=w}}):null;n&&L.$autoDirty&&e.watch(M,()=>{$.value||W();const w=e.unref(c);w&&(w[n]=y[n])},{flush:"sync"});async function Se(){return W(),L.$rewardEarly&&(te(),await e.nextTick()),await e.nextTick(),new Promise(w=>{if(!F.value)return w(!U.value);const S=e.watch(F,()=>{w(!U.value),S()})})}function Ie(w){return(s.value||{})[w]}function be(){e.isRef(c)?c.value=y:Object.keys(y).length===0?Object.keys(c).forEach(w=>{delete c[w]}):Object.assign(c,y)}return e.reactive(C(C(C({},_),{},{$model:Ee,$dirty:$,$error:Ce,$errors:B,$invalid:U,$anyDirty:De,$pending:F,$touch:W,$reset:Te,$path:p||ot,$silentErrors:xe,$validate:Se,$commit:te},s&&{$getResultsForChild:Ie,$clearExternalResults:be,$validationGroups:E}),v))}class lt{constructor(){this.storage=new Map}set(r,a,n){this.storage.set(r,{rules:a,result:n})}checkRulesValidity(r,a,n){const o=Object.keys(n),s=Object.keys(a);return s.length!==o.length||!s.every(i=>o.includes(i))?!1:s.every(i=>a[i].$params?Object.keys(a[i].$params).every(d=>e.unref(n[i].$params[d])===e.unref(a[i].$params[d])):!0)}get(r,a){const n=this.storage.get(r);if(!n)return;const{rules:o,result:s}=n,l=this.checkRulesValidity(r,a,o),i=s.$unwatch?s.$unwatch:()=>({});return l?s:{$dirty:s.$dirty,$partial:!0,$unwatch:i}}}const Y={COLLECT_ALL:!0,COLLECT_NONE:!1},oe=Symbol("vuelidate#injectChildResults"),se=Symbol("vuelidate#removeChildResults");function ct(t){let{$scope:r,instance:a}=t;const n={},o=e.ref([]),s=e.computed(()=>o.value.reduce((p,m)=>(p[m]=e.unref(n[m]),p),{}));function l(p,m){let{$registerAs:f,$scope:g,$stopPropagation:u}=m;u||r===Y.COLLECT_NONE||g===Y.COLLECT_NONE||r!==Y.COLLECT_ALL&&r!==g||(n[f]=p,o.value.push(f))}a.__vuelidateInjectInstances=[].concat(a.__vuelidateInjectInstances||[],l);function i(p){o.value=o.value.filter(m=>m!==p),delete n[p]}a.__vuelidateRemoveInstances=[].concat(a.__vuelidateRemoveInstances||[],i);const d=e.inject(oe,[]);e.provide(oe,a.__vuelidateInjectInstances);const c=e.inject(se,[]);return e.provide(se,a.__vuelidateRemoveInstances),{childResults:s,sendValidationResultsToParent:d,removeValidationResultsFromParent:c}}function ye(t){return new Proxy(t,{get(r,a){return typeof r[a]=="object"?ye(r[a]):e.computed(()=>r[a])}})}let ue=0;function dt(t,r){var a;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};arguments.length===1&&(n=t,t=void 0,r=void 0);let{$registerAs:o,$scope:s=Y.COLLECT_ALL,$stopPropagation:l,$externalResults:i,currentVueInstance:d}=n;const c=d||((a=e.getCurrentInstance())===null||a===void 0?void 0:a.proxy),p=c?c.$options:{};o||(ue+=1,o=`_vuelidate_${ue}`);const m=e.ref({}),f=new lt,{childResults:g,sendValidationResultsToParent:u,removeValidationResultsFromParent:L}=c?ct({$scope:s,instance:c}):{childResults:e.ref({})};if(!t&&p.validations){const M=p.validations;r=e.ref({}),e.onBeforeMount(()=>{r.value=c,e.watch(()=>V(M)?M.call(r.value,new ye(r.value)):M,y=>{m.value=Z({validations:y,state:r,childResults:g,resultsCache:f,globalConfig:n,instance:c,externalResults:i||c.vuelidateExternalResults})},{immediate:!0})}),n=p.validationsConfig||n}else{const M=e.isRef(t)||et(t)?t:e.reactive(t||{});e.watch(M,y=>{m.value=Z({validations:y,state:r,childResults:g,resultsCache:f,globalConfig:n,instance:c??{},externalResults:i})},{immediate:!0})}return c&&(u.forEach(M=>M(m,{$registerAs:o,$scope:s,$stopPropagation:l})),e.onBeforeUnmount(()=>L.forEach(M=>M(o)))),e.computed(()=>C(C({},e.unref(m.value)),g.value))}var N=(t=>(t.CHECKBOX="checkbox",t.TEXT="text",t.PASSWORD="password",t))(N||{});const Lt=["id","type","name","placeholder","value"],pt=e.defineComponent({__name:"InputText",props:{type:{},error:{},id:{},label:{},name:{},placeholder:{},value:{}},emits:["input"],setup(t,{emit:r}){const a=r,n=o=>{a("input",o)};return(o,s)=>(e.openBlock(),e.createElementBlock("input",e.mergeProps({id:o.id,type:o.type,name:o.name,placeholder:o.placeholder,value:o.value},o.$attrs,{onInput:n}),null,16,Lt))}}),Mt=["id","name","checked","value"],gt=e.defineComponent({__name:"InputCheckbox",props:{defaultChecked:{type:Boolean},type:{},error:{},id:{},label:{},name:{},placeholder:{},value:{}},emits:["input"],setup(t,{emit:r}){const a=r,n=o=>{a("input",o)};return(o,s)=>(e.openBlock(),e.createElementBlock("input",e.mergeProps({id:o.id,name:o.name,checked:o.value==="true",value:o.value,class:"pdap-input-checkbox",type:"checkbox"},o.$attrs,{onInput:n}),null,16,Mt))}}),mt=["id"],ft=["for"],we=e.defineComponent({__name:"PdapInput",props:{type:{},error:{},id:{},label:{},name:{},placeholder:{},value:{},defaultChecked:{type:Boolean}},setup(t){const r=t,a=e.computed(()=>`pdap-${r.name}-input-error`);return(n,o)=>{var s;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"pdap-input":!0,[`pdap-input-${n.type}`]:!0,[`pdap-input-${n.type}-checked`]:n.type===e.unref(N).CHECKBOX&&n.value==="true","pdap-input-error":Number((s=n.error)==null?void 0:s.length)>=1})},[n.type===e.unref(N).CHECKBOX?(e.openBlock(),e.createBlock(gt,e.mergeProps({key:0,class:"pdap-input-checkbox"},{...n.$attrs,...r}),null,16)):(e.openBlock(),e.createBlock(pt,e.normalizeProps(e.mergeProps({key:1},{...n.$attrs,...n.$props})),null,16)),n.error?(e.openBlock(),e.createElementBlock("div",{key:2,id:a.value,class:"pdap-input-error-message"},e.toDisplayString(n.error),9,mt)):e.createCommentVNode("",!0),e.createElementVNode("label",{class:"pdap-input-label",for:n.id},e.toDisplayString(n.label),9,ft)],2)}}});function ie(t,r){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),a.push.apply(a,n)}return a}function O(t){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?ie(Object(a),!0).forEach(function(n){yt(t,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):ie(Object(a)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(a,n))})}return t}function yt(t,r,a){return r in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a,t}function A(t){return typeof t=="function"}function Q(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function R(t){return A(t.$validator)?O({},t):{$validator:t}}function wt(t){return Q(t)&&A(t.then)}function T(t){return typeof t=="object"?t.$valid:t}function I(t){return t.$validator||t}function J(t,r){if(!Q(t))throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof t}`);if(!Q(r)&&!A(r))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const a=R(r);return a.$params=O(O({},a.$params||{}),t),a}function P(t,r){if(!A(t)&&typeof e.unref(t)!="string")throw new Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof t}`);if(!Q(r)&&!A(r))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const a=R(r);return a.$message=t,a}function jt(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const a=R(t);return O(O({},a),{},{$async:!0,$watchTargets:r})}function ht(t){return{$validator(r){for(var a=arguments.length,n=new Array(a>1?a-1:0),o=1;o<a;o++)n[o-1]=arguments[o];return e.unref(r).reduce((s,l,i)=>{const d=Object.entries(l).reduce((c,p)=>{let[m,f]=p;const g=t[m]||{},u=Object.entries(g).reduce((L,M)=>{let[y,h]=M;const v=I(h).call(this,f,l,i,...n),E=T(v);if(L.$data[y]=v,L.$data.$invalid=!E||!!L.$data.$invalid,L.$data.$error=L.$data.$invalid,!E){let $=h.$message||"";const B=h.$params||{};typeof $=="function"&&($=$({$pending:!1,$invalid:!E,$params:B,$model:f,$response:v})),L.$errors.push({$property:m,$message:$,$params:B,$response:v,$model:f,$pending:!1,$validator:y})}return{$valid:L.$valid&&E,$data:L.$data,$errors:L.$errors}},{$valid:!0,$data:{},$errors:[]});return c.$data[m]=u.$data,c.$errors[m]=u.$errors,{$valid:c.$valid&&u.$valid,$data:c.$data,$errors:c.$errors}},{$valid:!0,$data:{},$errors:{}});return{$valid:s.$valid&&d.$valid,$data:s.$data.concat(d.$data),$errors:s.$errors.concat(d.$errors)}},{$valid:!0,$data:[],$errors:[]})},$message:r=>{let{$response:a}=r;return a?a.$errors.map(n=>Object.values(n).map(o=>o.map(s=>s.$message)).reduce((o,s)=>o.concat(s),[])):[]}}}const j=t=>{if(t=e.unref(t),Array.isArray(t))return!!t.length;if(t==null)return!1;if(t===!1)return!0;if(t instanceof Date)return!isNaN(t.getTime());if(typeof t=="object"){for(let r in t)return!0;return!1}return!!String(t).length},X=t=>(t=e.unref(t),Array.isArray(t)?t.length:typeof t=="object"?Object.keys(t).length:String(t).length);function x(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return n=>(n=e.unref(n),!j(n)||r.every(o=>(o.lastIndex=0,o.test(n))))}var z=Object.freeze({__proto__:null,forEach:ht,len:X,normalizeValidatorObject:R,regex:x,req:j,unwrap:e.unref,unwrapNormalizedValidator:I,unwrapValidatorResponse:T,withAsync:jt,withMessage:P,withParams:J}),vt=x(/^[a-zA-Z]*$/),Nt={$validator:vt,$message:"The value is not alphabetical",$params:{type:"alpha"}},$t=x(/^[a-zA-Z0-9]*$/),Dt={$validator:$t,$message:"The value must be alpha-numeric",$params:{type:"alphaNum"}},Ct=x(/^\d*(\.\d+)?$/),Tt={$validator:Ct,$message:"Value must be numeric",$params:{type:"numeric"}};function xt(t,r){return a=>!j(a)||(!/\s/.test(a)||a instanceof Date)&&+e.unref(t)<=+a&&+e.unref(r)>=+a}function Et(t,r){return{$validator:xt(t,r),$message:a=>{let{$params:n}=a;return`The value must be between ${n.min} and ${n.max}`},$params:{min:t,max:r,type:"between"}}}const St=/^(?:[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;var It=x(St),K={$validator:It,$message:"Value is not a valid email address",$params:{type:"email"}};function bt(t){if(!j(t))return!0;if(typeof t!="string")return!1;const r=t.split(".");return r.length===4&&r.every(Ot)}const Ot=t=>{if(t.length>3||t.length===0||t[0]==="0"&&t!=="0"||!t.match(/^\d+$/))return!1;const r=+t|0;return r>=0&&r<=255};var zt={$validator:bt,$message:"The value is not a valid IP address",$params:{type:"ipAddress"}};function _t(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:":";return r=>{if(t=e.unref(t),!j(r))return!0;if(typeof r!="string")return!1;const a=typeof t=="string"&&t!==""?r.split(t):r.length===12||r.length===16?r.match(/.{2}/g):null;return a!==null&&(a.length===6||a.length===8)&&a.every(kt)}}const kt=t=>t.toLowerCase().match(/^[0-9a-f]{2}$/);function At(t){return{$validator:_t(t),$message:"The value is not a valid MAC Address",$params:{type:"macAddress"}}}function Pt(t){return r=>!j(r)||X(r)<=e.unref(t)}function Bt(t){return{$validator:Pt(t),$message:r=>{let{$params:a}=r;return`The maximum length allowed is ${a.max}`},$params:{max:t,type:"maxLength"}}}function Yt(t){return r=>!j(r)||X(r)>=e.unref(t)}function Vt(t){return{$validator:Yt(t),$message:r=>{let{$params:a}=r;return`This field should be at least ${a.min} characters long`},$params:{min:t,type:"minLength"}}}function Qt(t){return typeof t=="string"&&(t=t.trim()),j(t)}var q={$validator:Qt,$message:"Value is required",$params:{type:"required"}};const le=(t,r)=>t?j(typeof r=="string"?r.trim():r):!0;function Rt(t){return function(r,a){if(typeof t!="function")return le(e.unref(t),r);const n=t.call(this,r,a);return le(n,r)}}function Ut(t){return{$validator:Rt(t),$message:"The value is required",$params:{type:"requiredIf",prop:t}}}const ce=(t,r)=>t?!0:j(typeof r=="string"?r.trim():r);function Ft(t){return function(r,a){if(typeof t!="function")return ce(e.unref(t),r);const n=t.call(this,r,a);return ce(n,r)}}function Wt(t){return{$validator:Ft(t),$message:"The value is required",$params:{type:"requiredUnless",prop:t}}}function Gt(t){return r=>e.unref(r)===e.unref(t)}function Zt(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"other";return{$validator:Gt(t),$message:a=>`The value must be equal to the ${r} value`,$params:{equalTo:t,otherName:r,type:"sameAs"}}}const Ht=/^(?:(?:(?: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;var Jt=x(Ht),Xt={$validator:Jt,$message:"The value is not a valid URL address",$params:{type:"url"}};function Kt(t){return function(){for(var r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return t.reduce((o,s)=>T(o)?o:I(s).apply(this,a),!1)}}function qt(t){return function(){for(var r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return t.reduce(async(o,s)=>{const l=await o;return T(l)?l:I(s).apply(this,a)},Promise.resolve(!1))}}function er(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];const n=r.some(l=>l.$async),o=r.reduce((l,i)=>i.$watchTargets?l.concat(i.$watchTargets):l,[]);let s=()=>!1;return r.length&&(s=n?qt(r):Kt(r)),{$async:n,$validator:s,$watchTargets:o}}function tr(){return J({type:"or"},P("The value does not match any of the provided validators",er(...arguments)))}function rr(t){return function(){for(var r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return t.reduce((o,s)=>T(o)?I(s).apply(this,a):o,!0)}}function ar(t){return function(){for(var r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return t.reduce(async(o,s)=>{const l=await o;return T(l)?I(s).apply(this,a):l},Promise.resolve(!0))}}function nr(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];const n=r.some(l=>l.$async),o=r.reduce((l,i)=>i.$watchTargets?l.concat(i.$watchTargets):l,[]);let s=()=>!1;return r.length&&(s=n?ar(r):rr(r)),{$async:n,$validator:s,$watchTargets:o}}function or(){return J({type:"and"},P("The value does not match all of the provided validators",nr(...arguments)))}function sr(t){return function(r,a){if(!j(r))return!0;const n=I(t).call(this,r,a);return wt(n)?n.then(o=>!T(o)):!T(n)}}function ur(t){return{$validator:sr(t),$message:"The value does not match the provided validator",$params:{type:"not"}}}function ir(t){return r=>!j(r)||(!/\s/.test(r)||r instanceof Date)&&+r>=+e.unref(t)}function lr(t){return{$validator:ir(t),$message:r=>{let{$params:a}=r;return`The minimum value allowed is ${a.min}`},$params:{min:t,type:"minValue"}}}function cr(t){return r=>!j(r)||(!/\s/.test(r)||r instanceof Date)&&+r<=+e.unref(t)}var dr=t=>({$validator:cr(t),$message:r=>{let{$params:a}=r;return`The maximum value allowed is ${a.max}`},$params:{max:t,type:"maxValue"}}),Lr=x(/(^[0-9]*$)|(^-[0-9]+$)/),pr={$validator:Lr,$message:"Value is not an integer",$params:{type:"integer"}},Mr=x(/^[-]?\d*(\.\d+)?$/),gr={$validator:Mr,$message:"Value must be decimal",$params:{type:"decimal"}};function mr(t){let{t:r,messagePath:a=o=>{let{$validator:s}=o;return`validations.${s}`},messageParams:n=o=>o}=t;return function(s){let{withArguments:l=!1,messagePath:i=a,messageParams:d=n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};function c(p){return r(i(p),d(O({model:p.$model,property:p.$property,pending:p.$pending,invalid:p.$invalid,response:p.$response,validator:p.$validator,propertyPath:p.$propertyPath},p.$params)))}return l&&typeof s=="function"?function(){return P(c,s(...arguments))}:P(c,s)}}const je=Object.freeze(Object.defineProperty({__proto__:null,alpha:Nt,alphaNum:Dt,and:or,between:Et,createI18nMessage:mr,decimal:gr,email:K,helpers:z,integer:pr,ipAddress:zt,macAddress:At,maxLength:Bt,maxValue:dr,minLength:Vt,minValue:lr,not:ur,numeric:Tt,or:tr,required:q,requiredIf:Ut,requiredUnless:Wt,sameAs:Zt,url:Xt},Symbol.toStringTag,{value:"Module"})),he=z.regex(/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$ %^&*-]).{8,}$/);function de(t){return["maxLength","minLength"].includes(t)}function Le(t){return t==="required"}function pe(t){return t==="email"}function Me(t){return t==="password"}function fr(t,r){return{[t]:je[t](r)}}function yr(t,r,a){return{[t]:z.withMessage(a,je[t](r))}}function wr(){return{required:q}}function jr(t){return{required:z.withMessage(t,q)}}function hr(){return{email:K}}function vr(t){return{email:z.withMessage(t,K)}}function Nr(){return{password:he}}function $r(t){return{password:z.withMessage(t,he)}}function Dr(t,r){if(de(t)&&typeof r.message=="string"&&typeof r.value=="number")return yr(t,r.value,r.message);if(de(t)&&typeof r.message>"u"&&typeof r.value=="number")return fr(t,r.value);if(pe(t)&&typeof r.message=="string")return vr(r.message);if(pe(t)&&typeof r.message>"u")return hr();if(Me(t)&&typeof r.message=="string")return $r(r.message);if(Me(t)&&typeof r.message>"u")return Nr();if(Le(t)&&typeof r.message=="string")return jr(r.message);if(Le(t)&&typeof r.message>"u")return wr();throw new Error("No valid rule detected")}const Cr=["id","name","onSubmit"],Tr={key:0,class:"pdap-form-error-message"},xr={name:"PdapForm"},ve=e.defineComponent({...xr,props:{error:{default:null},id:{},name:{},schema:{},resetOn:{type:[String,Boolean],default:"submit"}},emits:["submit","change"],setup(t,{emit:r}){const a=t,n=r,o=e.computed(()=>a.schema.map(f=>{const g={...f};return delete g.validators,g})),s=e.ref(o.value.reduce((f,g)=>{switch(g.type){case N.CHECKBOX:return{...f,[g.name]:String(g.defaultChecked)};case N.TEXT:case N.PASSWORD:default:return{...f,[g.name]:g.value}}},{})),l=a.schema.reduce((f,g)=>{const u=Object.entries(g.validators??{}).reduce((L,[M,y])=>({...L,...Dr(M,y)}),{});return{...f,[g.name]:{...u}}},{}),i=dt(l,s,{$autoDirty:!1,$lazy:!0}),d=e.ref(a.error);function c(f,g){const u=g.target,L=(()=>{switch(f.type){case N.CHECKBOX:return u.checked?"true":"false";default:return u.value}})();s.value[f.name]=L,n("change",s.value)}e.watchEffect(()=>{a.error?d.value=a.error:d.value&&i.value.$errors.length===0?d.value=null:!d.value&&i.value.$errors.length>0&&(d.value="Please update this form to correct the errors")}),e.watchEffect(()=>{a.resetOn&&a.resetOn!=="submit"&&p()});function p(){i.value.$reset(),s.value=Object.entries(s).reduce((f,[g])=>({...f,[g]:""}),{})}async function m(){await i.value.$validate()&&(n("submit",{...s.value}),a.resetOn==="submit"&&p())}return(f,g)=>(e.openBlock(),e.createElementBlock("form",{id:f.id,name:f.name,class:"pdap-form",onSubmit:e.withModifiers(m,["prevent"])},[typeof d.value=="string"?(e.openBlock(),e.createElementBlock("div",Tr,e.toDisplayString(d.value),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,u=>{var L,M,y,h;return e.openBlock(),e.createBlock(we,e.mergeProps(u,{key:u.name,error:(L=e.unref(i)[u.name])!=null&&L.$error?(h=(y=(M=e.unref(i)[u.name])==null?void 0:M.$errors)==null?void 0:y[0])==null?void 0:h.$message:"",value:s.value[u.name],onInput:_=>c(u,_)}),null,16,["error","value","onInput"])}),128)),e.renderSlot(f.$slots,"default")],40,Cr))}});const Er=t=>(e.pushScopeId("data-v-3158c5fc"),t=t(),e.popScopeId(),t),Sr=["aria-label","aria-expanded","onKeyup"],Ir=Er(()=>e.createElementVNode("svg",{"aria-label":"Menu",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},[e.createElementVNode("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"})],-1)),br=[Ir],Or=["aria-hidden"],zr=["href"],_r={name:"PdapHeader"},kr=e.defineComponent({..._r,setup(t){let r=e.inject("navLinks");typeof r>"u"&&(r=[],console.error(`Hey, PDAP developer
|
2
|
-
`,"Did you forget to inject some linkData for the Nav component?"));const a=e.reactive({isExpanded:!1,isMobile:!0});e.onBeforeMount(()=>{n(),window.addEventListener("resize",n)}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",n)});async function n(){window.innerWidth<=1024?a.isMobile=!0:a.isMobile=!1,await e.nextTick()}async function o(){var l,i;const s=document.querySelector("body");!a.isExpanded&&a.isMobile?(a.isExpanded=!0,s!=null&&s.classList.contains("lock-scroll")||(l=document.querySelector("body"))==null||l.classList.add("lock-scroll")):a.isExpanded&&a.isMobile&&(a.isExpanded=!1,(i=document.querySelector("body"))==null||i.classList.remove("lock-scroll")),await e.nextTick()}return(s,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{"aria-label":a.isExpanded?"close navigation menu":"open navigation menu","aria-expanded":a.isMobile&&a.isExpanded,"aria-controls":"nav",class:"pdap-nav-open-button",role:"button",tabindex:0,onClick:o,onKeyup:e.withKeys(o,["enter"])},br,40,Sr),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("nav",{id:"nav","aria-hidden":!(a.isMobile&&a.isExpanded),class:"pdap-nav"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),i=>(e.openBlock(),e.createElementBlock("li",{key:i.text,class:"pdap-nav-link-container"},[i.href?(e.openBlock(),e.createElementBlock("a",{key:0,class:"pdap-nav-link",href:i.href,target:"_blank",referrerpolicy:"no-referrer",onClick:o},e.toDisplayString(i.text),9,zr)):e.createCommentVNode("",!0),i.path?(e.openBlock(),e.createBlock(e.unref(b.RouterLink),{key:1,"active-class":"pdap-nav-link-current","exact-active-class":"pdap-nav-link-current-exact",class:"pdap-nav-link",to:i.path,onClick:o},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.text),1)]),_:2},1032,["to"])):e.createCommentVNode("",!0)]))),128))],8,Or),[[e.vShow,a.isMobile&&a.isExpanded||!a.isMobile]])]),_:1})],64))}});const ee=(t,r)=>{const a=t.__vccOpts||t;for(const[n,o]of r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Cjwvc3ZnPgo=",Pr=["href"],Br=["src"],Yr=["src"],Vr={name:"PdapHeader"},Qr=e.defineComponent({...Vr,props:{logoImageSrc:{default:Ar},logoImageAnchorPath:{default:"/"}},setup(t){const r=t,a=e.ref(null),n=r.logoImageAnchorPath.startsWith("/");e.onMounted(()=>{o(),window.addEventListener("resize",o)}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",o)});function o(){var s;a.value&&((s=document.querySelector(":root"))==null||s.style.setProperty("--header-height",`${a.value.clientHeight}px`))}return(s,l)=>(e.openBlock(),e.createElementBlock("header",{ref_key:"el",ref:a,class:"pdap-header"},[e.unref(n)?(e.openBlock(),e.createBlock(e.unref(b.RouterLink),{key:1,to:s.logoImageAnchorPath,class:"logo"},{default:e.withCtx(()=>[e.createElementVNode("img",{src:s.logoImageSrc,loading:"lazy",width:"250",alt:"Police Data Accessibility Project Logo"},null,8,Yr)]),_:1},8,["to"])):(e.openBlock(),e.createElementBlock("a",{key:0,href:s.logoImageAnchorPath,class:"logo"},[e.createElementVNode("img",{src:s.logoImageSrc,loading:"lazy",width:"250",alt:"Police Data Accessibility Project Logo"},null,8,Br)],8,Pr)),e.createVNode(Ne)],512))}});const Rr=e.createElementVNode("div",{class:"pdap-flex-container"},[e.createElementVNode("h2",{class:"mt-0"},"Search our database"),e.createElementVNode("p",{class:"pb-4 md:pb-8"},[e.createTextVNode(" If you are looking for something specific, we may already be tracking it. "),e.createElementVNode("a",{href:"https://pdap.io/data"},"Learn more about the data here.")])],-1),Ur={class:"pdap-quick-search-form h-full max-h-[75-vh] justify-start p-0"},Fr={class:"max-w-[unset] text-med"},Wr=["href"],Gr=["href"],Zr={name:"QuickSearchForm"},Hr=e.defineComponent({...Zr,props:{baseUrlForRedirect:{default:"https://data-sources.pdap.io"}},setup(t){const r=b.useRouter(),a=t,n=[{id:"search-term",name:"searchTerm",label:"What are you looking for?",type:N.TEXT,placeholder:"Enter a keyword, or 'all'",value:""},{id:"location",name:"location",label:"From where?",type:N.TEXT,placeholder:"Enter a place, or 'all'",value:""}],o=e.ref(void 0),s=r.getRoutes().some(d=>d.path.includes("/search/"));function l(d){o.value&&Object.values(d).some(Boolean)&&(o.value=void 0)}function i(d){if(Object.values(d).every(m=>!m)){o.value="Either a search term or a location is required.";return}let{location:c,searchTerm:p}=d;c=c&&c.length>0?c:"all",p=p&&p.length>0?p:"all",s?r.push(`/search/${p}/${c}`):window.location.assign(`${a.baseUrlForRedirect}/search/${p}/${c}`)}return(d,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[Rr,e.createElementVNode("div",Ur,[e.createVNode(ve,{id:"quick-search-form",class:"flex flex-wrap gap-x-4",error:o.value,schema:n,name:"quickSearchForm",onChange:l,onSubmit:i},{default:e.withCtx(()=>[e.createVNode(H,{type:"submit",class:"flex-grow-0 flex-shrink-0 basis-full max-w-[unset] mt-4"},{default:e.withCtx(()=>[e.createTextVNode("Search Data Sources")]),_:1})]),_:1},8,["error"]),e.createElementVNode("p",Fr,[e.createTextVNode(" For example, you could search for "),e.unref(s)?(e.openBlock(),e.createBlock(e.unref(b.RouterLink),{key:0,to:"/search/stops/pittsburgh"},{default:e.withCtx(()=>[e.createTextVNode(" stops in Pittsburgh ")]),_:1})):(e.openBlock(),e.createElementBlock("a",{key:1,target:"_blank",rel:"noreferrer",href:`${a.baseUrlForRedirect}/search/stops/pittsburgh`}," stops in Pittsburgh ",8,Wr)),e.createTextVNode(" or "),e.unref(s)?(e.openBlock(),e.createBlock(e.unref(b.RouterLink),{key:2,to:"/search/complaints/all"},{default:e.withCtx(()=>[e.createTextVNode(" complaints everywhere ")]),_:1})):(e.openBlock(),e.createElementBlock("a",{key:3,target:"_blank",rel:"noreferrer",href:`${a.baseUrlForRedirect}/search/complaints/all`}," complaints everywhere ",8,Gr)),e.createTextVNode(" . ")])])],64))}});const Jr=["alt","src"],Xr={name:"TileIcon"},Kr=e.defineComponent({...Xr,props:{imgAltText:{},imgSrc:{}},setup(t){return(r,a)=>(e.openBlock(),e.createElementBlock("img",{class:"pdap-tile-icon",alt:r.imgAltText,src:r.imgSrc},null,8,Jr))}});var k=(t=>(t.PRESS="press",t.HOVER="hover",t))(k||{});const $e={beforeMount(t,r){const a=t;a.clickOutsideEvent=function(o){t===o.target||a.contains(o.target)||r.value(o)},document.addEventListener("click",a.clickOutsideEvent),document.addEventListener("keyup",a.clickOutsideEvent)},unmounted(t){t.clickOutsideEvent&&(document.removeEventListener("click",t.clickOutsideEvent),document.removeEventListener("keyup",t.clickOutsideEvent))}},qr=["onKeydown"],ea=["id","aria-hidden"],ta={name:"PdapButton"},ra=e.defineComponent({...ta,props:{defaultOpen:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dropdownId:{},triggerOn:{default:k.PRESS}},emits:["update:open","press"],setup(t,{emit:r}){const a=t,n=r,o=e.ref(null),s=e.ref(null),l=e.ref(a.defaultOpen),i=e.computed(()=>a.triggerOn===k.HOVER);function d(u){n("press",u),a.triggerOn===k.PRESS&&c()}const c=()=>{a.disabled||(l.value=!l.value,n("update:open",l.value))};function p(){l.value=!0,n("update:open",!0)}function m(){l.value=!1,n("update:open",!1)}function f(){var y,h;if(!o.value)return;o.value.style.display="flex",o.value.style.setProperty("max-height","max-content");const u=o.value.scrollHeight;o.value.style.display="none",o.value.style.removeProperty("max-height");const L=document==null?void 0:document.querySelector(":root"),M=(y=L==null?void 0:L.style)==null?void 0:y.getPropertyValue("--dropdown-content-max-height");Number((h=M==null?void 0:M.match(/\d+/))==null?void 0:h.join(""))>=u||o.value&&L&&L.style.setProperty("--dropdown-content-max-height",`${u+16}px`)}const g={mouseenter:i.value?p:void 0,focus:i.value?p:void 0,focusin:i.value?p:void 0,focusout:i.value?m:void 0,mouseleave:i.value?m:void 0,blur:i.value?m:void 0};return e.onMounted(()=>{f()}),(u,L)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",e.mergeProps({ref_key:"dropdownRef",ref:s,class:"pdap-dropdown",role:"presentation",onKeydown:e.withKeys(m,["escape"])},e.toHandlers(g,!0)),[e.createVNode(e.unref(H),{"aria-controls":u.dropdownId,"aria-expanded":l.value,disabled:u.disabled,"aria-haspopup":"true",intent:"tertiary",class:e.normalizeClass({"pdap-dropdown-trigger":!0,"pointer-events-none":u.disabled,"cursor-not-allowed":u.disabled}),"data-test":"dropdown-trigger",onClick:e.withModifiers(d,["prevent","stop"]),onKeydown:e.withKeys(e.withModifiers(d,["prevent","stop"]),["enter","space"])},{default:e.withCtx(()=>[e.renderSlot(u.$slots,"trigger")]),_:3},8,["aria-controls","aria-expanded","disabled","class","onClick","onKeydown"]),e.createVNode(e.Transition,{name:"dropdown",appear:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{id:u.dropdownId,ref_key:"contentRef",ref:o,"aria-hidden":!l.value,class:"pdap-dropdown-content","data-test":"dropdown-content",role:"menu"},[e.renderSlot(u.$slots,"content")],8,ea),[[e.vShow,l.value]])]),_:3})],16,qr)),[[e.unref($e),m]])}});function aa(t){const r=[];for(const a of t.matched){const{name:n,path:o,meta:s}=a,l=s.breadcrumbText??n;l&&r.push({text:l,path:o,active:!1})}return r.length>0&&(r[r.length-1].active=!0),r}const na={"aria-label":"Breadcrumb"},oa={key:1},sa={name:"PdapBreadcrumbs"},ua=e.defineComponent({...sa,setup(t){const r=b.useRoute(),a=e.computed(()=>aa(r));return(n,o)=>{const s=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("nav",na,[e.createVNode(e.TransitionGroup,{class:"pdap-breadcrumbs",tag:"ul"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,l=>(e.openBlock(),e.createElementBlock("li",{key:l.text,class:e.normalizeClass({"is-active":l.active})},[l.active?(e.openBlock(),e.createElementBlock("span",oa,e.toDisplayString(l.text),1)):(e.openBlock(),e.createBlock(s,{key:0,to:l.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.text),1)]),_:2},1032,["to"]))],2))),128))]),_:1})])}}});const ia=ee(ua,[["__scopeId","data-v-e8d76c0f"]]),la={key:0,class:"pdap-spinner"},ca=["width","height"],da=["stroke","fill"],La=["stroke","fill"],pa={key:0,"aria-live":"polite"};/**
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),O=require("vue-router"),Oe={name:"PdapButton"},H=e.defineComponent({...Oe,props:{intent:{default:"primary"},isLoading:{type:Boolean,default:!1}},setup(t){const r=t,a=e.reactive({"pdap-button":!0,[`pdap-button-${r.intent}`]:!!r.intent,"pdap-button-loading":r.isLoading});return(n,o)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(a)},[e.renderSlot(n.$slots,"default")],2))}});const ze=e.createElementVNode("h1",null,"Oops, something went wrong!",-1),_e=e.createElementVNode("p",{class:"max-w-full","data-test":"error-boundary-message"},[e.createTextVNode(" If you keep seeing this message, please email "),e.createElementVNode("a",{href:"mailto:contact@pdap.io"},"contact@pdap.io"),e.createTextVNode(" for assistance. ")],-1),ke={name:"ErrorBoundary"},Ae=e.defineComponent({...ke,props:{component:{default:"div"},onError:{type:Function,default:void 0},params:{default:void 0}},emits:["onError"],setup(t,{emit:r}){const a=t,n=r,o=e.ref(),u=e.ref("");function l(i,L,c){var p;o.value=i,u.value=c,(p=a.onError)==null||p.call(a,i,L,c),n("onError",{error:i,vm:L,info:c})}return e.onErrorCaptured((i,L,c)=>{l(i,L,c)}),(i,L)=>o.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.component),{key:1,class:"pdap-flex-container-center h-[full]","v-bind":i.params},{default:e.withCtx(()=>[ze,_e]),_:1},8,["v-bind"])):e.renderSlot(i.$slots,"default",{key:0})}}),Pe="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI0LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnN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41aC0xLjl2MTQuNGgxLjkKCWM0LjMsMCw2LjctMy40LDYuNy03LjJTNjQuNSw2MS41LDYwLjUsNjEuNXoiLz4KPHBhdGggZD0iTTg4LjcsODAuMUw4Nyw3NC40aC03bC0xLjgsNS44aC01LjNsOC4yLTIyLjloNC44bDguMywyMi45aC01LjVWODAuMXogTTg0LDY0LjZjLTAuMi0wLjctMC41LTEuNi0wLjUtMS44CgljMCwwLjEtMC4yLDEtMC41LDEuOGwtMS43LDUuNmg0LjRMODQsNjQuNnoiLz4KPHBhdGggZD0iTTEwNC43LDcxLjFoLTIuNnY5LjFoLTVWNTcuM2g3LjZjNS4xLDAsOC40LDIuNCw4LjQsNi43UzEwOS44LDcxLjEsMTA0LjcsNzEuMXogTTEwNC43LDYxLjVoLTIuNnY1LjNoMi42CgljMi4zLDAsMy4zLTAuOSwzLjMtMi43UzEwNi45LDYxLjUsMTA0LjcsNjEuNXoiLz4KPC9zdmc+Cg==",Be={class:"pdap-footer"},Ye={class:"pdap-flex-container-center"},Ve={class:"pdap-footer-social-links"},Qe=["href"],Re={class:"pdap-footer-copyright"},Ue=e.createElementVNode("br",null,null,-1),Fe=e.createElementVNode("p",{class:"pdap-footer-copyright"},[e.createTextVNode(" PDAP is a non-profit. EIN: 85-4207132. "),e.createElementVNode("a",{href:"https://docs.pdap.io/meta/policy/pdap-privacy-policy",alt:"Privacy Policy",target:"_blank"},[e.createElementVNode("br"),e.createTextVNode(" Privacy Policy "),e.createElementVNode("i",{class:"fa fa-external-link"})]),e.createElementVNode("br"),e.createElementVNode("a",{href:"mailto:contact@pdap.io"},"contact@pdap.io")],-1),We={class:"pdap-footer-widget-links"},Ge=e.createElementVNode("a",{href:"https://www.guidestar.org/profile/85-4207132",target:"_blank"},[e.createElementVNode("img",{alt:"platinum transparency",src:"https://widgets.guidestar.org/gximage2?o=9973356&l=v4"})],-1),Ze=["href"],He=["src"],Je=["src"],Xe={name:"PdapFooter"},Ke=e.defineComponent({...Xe,props:{logoImageSrc:{default:Pe},logoImageAnchorPath:{default:"/"}},setup(t){const r=t,a=e.inject("footerLinks",[{href:"https://github.com/orgs/Police-Data-Accessibility-Project",text:"Github"},{href:"https://discord.gg/wMqex8nKZJ",text:"Discord"},{href:"https://www.linkedin.com/company/pdap",text:"LinkedIn"},{path:"/jobs",text:"Jobs"}]),n=r.logoImageAnchorPath.startsWith("/");return(o,u)=>{const l=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("footer",Be,[e.createElementVNode("div",Ye,[e.createElementVNode("ul",Ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),i=>(e.openBlock(),e.createElementBlock("li",{key:i.text,class:"pdap-footer-link-container"},[i.href?(e.openBlock(),e.createElementBlock("a",{key:0,class:"pdap-footer-social-link",href:i.href,target:"_blank",referrerpolicy:"no-referrer"},e.toDisplayString(i.text),9,Qe)):e.createCommentVNode("",!0),i.path?(e.openBlock(),e.createBlock(l,{key:1,"active-class":"pdap-footer-social-link-current","exact-active-class":"pdap-footer-social-link-current-exact",class:"pdap-footer-social-link",to:i.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.text),1)]),_:2},1032,["to"])):e.createCommentVNode("",!0)]))),128))]),e.createElementVNode("p",Re,[e.createTextVNode(" © "+e.toDisplayString(new Date().getFullYear())+" Police Data Accessibility Project",1),Ue]),Fe,e.createElementVNode("div",We,[Ge,e.unref(n)?(e.openBlock(),e.createBlock(l,{key:1,to:o.logoImageAnchorPath,class:"pdap-footer-logo"},{default:e.withCtx(()=>[e.createElementVNode("img",{src:o.logoImageSrc,loading:"lazy",width:"250",alt:"Police Data Accessibility Project Logo"},null,8,Je)]),_:1},8,["to"])):(e.openBlock(),e.createElementBlock("a",{key:0,href:o.logoImageAnchorPath,class:"pdap-footer-logo"},[e.createElementVNode("img",{src:o.logoImageSrc,loading:"lazy",width:"250",alt:"Police Data Accessibility Project Logo"},null,8,He)],8,Ze))])])])}}});function re(t,r){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),a.push.apply(a,n)}return a}function x(t){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?re(Object(a),!0).forEach(function(n){qe(t,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):re(Object(a)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(a,n))})}return t}function qe(t,r,a){return r in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a,t}function ae(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(t).reduce((a,n)=>(r.includes(n)||(a[n]=e.unref(t[n])),a),{})}function V(t){return typeof t=="function"}function et(t){return e.isReactive(t)||e.isReadonly(t)}function ge(t,r,a){let n=t;const o=r.split(".");for(let u=0;u<o.length;u++){if(!n[o[u]])return a;n=n[o[u]]}return n}function G(t,r,a){return e.computed(()=>t.some(n=>ge(r,n,{[a]:!1})[a]))}function ne(t,r,a){return e.computed(()=>t.reduce((n,o)=>{const u=ge(r,o,{[a]:!1})[a]||[];return n.concat(u)},[]))}function me(t,r,a,n){return t.call(n,e.unref(r),e.unref(a),n)}function fe(t){return t.$valid!==void 0?!t.$valid:!t}function tt(t,r,a,n,o,u,l){let{$lazy:i,$rewardEarly:L}=o,c=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],p=arguments.length>8?arguments[8]:void 0,g=arguments.length>9?arguments[9]:void 0,y=arguments.length>10?arguments[10]:void 0;const m=e.ref(!!n.value),s=e.ref(0);a.value=!1;const d=e.watch([r,n].concat(c,y),()=>{if(i&&!n.value||L&&!g.value&&!a.value)return;let M;try{M=me(t,r,p,l)}catch(f){M=Promise.reject(f)}s.value++,a.value=!!s.value,m.value=!1,Promise.resolve(M).then(f=>{s.value--,a.value=!!s.value,u.value=f,m.value=fe(f)}).catch(f=>{s.value--,a.value=!!s.value,u.value=f,m.value=!0})},{immediate:!0,deep:typeof r=="object"});return{$invalid:m,$unwatch:d}}function rt(t,r,a,n,o,u,l,i){let{$lazy:L,$rewardEarly:c}=n;const p=()=>({}),g=e.computed(()=>{if(L&&!a.value||c&&!i.value)return!1;let y=!0;try{const m=me(t,r,l,u);o.value=m,y=fe(m)}catch(m){o.value=m}return y});return{$unwatch:p,$invalid:g}}function at(t,r,a,n,o,u,l,i,L,c,p){const g=e.ref(!1),y=t.$params||{},m=e.ref(null);let s,d;t.$async?{$invalid:s,$unwatch:d}=tt(t.$validator,r,g,a,n,m,o,t.$watchTargets,L,c,p):{$invalid:s,$unwatch:d}=rt(t.$validator,r,a,n,m,o,L,c);const M=t.$message;return{$message:V(M)?e.computed(()=>M(ae({$pending:g,$invalid:s,$params:ae(y),$model:r,$response:m,$validator:u,$propertyPath:i,$property:l}))):M||"",$params:y,$pending:g,$invalid:s,$response:m,$unwatch:d}}function nt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=e.unref(t),a=Object.keys(r),n={},o={},u={};let l=null;return a.forEach(i=>{const L=r[i];switch(!0){case V(L.$validator):n[i]=L;break;case V(L):n[i]={$validator:L};break;case i==="$validationGroups":l=L;break;case i.startsWith("$"):u[i]=L;break;default:o[i]=L}}),{rules:n,nestedValidators:o,config:u,validationGroups:l}}const ot="__root";function st(t,r,a,n,o,u,l,i,L){const c=Object.keys(t),p=n.get(o,t),g=e.ref(!1),y=e.ref(!1),m=e.ref(0);if(p){if(!p.$partial)return p;p.$unwatch(),g.value=p.$dirty.value}const s={$dirty:g,$path:o,$touch:()=>{g.value||(g.value=!0)},$reset:()=>{g.value&&(g.value=!1)},$commit:()=>{}};return c.length?(c.forEach(d=>{s[d]=at(t[d],r,s.$dirty,u,l,d,a,o,L,y,m)}),s.$externalResults=e.computed(()=>i.value?[].concat(i.value).map((d,M)=>({$propertyPath:o,$property:a,$validator:"$externalResults",$uid:`${o}-externalResult-${M}`,$message:d,$params:{},$response:null,$pending:!1})):[]),s.$invalid=e.computed(()=>{const d=c.some(M=>e.unref(s[M].$invalid));return y.value=d,!!s.$externalResults.value.length||d}),s.$pending=e.computed(()=>c.some(d=>e.unref(s[d].$pending))),s.$error=e.computed(()=>s.$dirty.value?s.$pending.value||s.$invalid.value:!1),s.$silentErrors=e.computed(()=>c.filter(d=>e.unref(s[d].$invalid)).map(d=>{const M=s[d];return e.reactive({$propertyPath:o,$property:a,$validator:d,$uid:`${o}-${d}`,$message:M.$message,$params:M.$params,$response:M.$response,$pending:M.$pending})}).concat(s.$externalResults.value)),s.$errors=e.computed(()=>s.$dirty.value?s.$silentErrors.value:[]),s.$unwatch=()=>c.forEach(d=>{s[d].$unwatch()}),s.$commit=()=>{y.value=!0,m.value=Date.now()},n.set(o,t,s),s):(p&&n.set(o,t,s),s)}function ut(t,r,a,n,o,u,l){const i=Object.keys(t);return i.length?i.reduce((L,c)=>(L[c]=Z({validations:t[c],state:r,key:c,parentKey:a,resultsCache:n,globalConfig:o,instance:u,externalResults:l}),L),{}):{}}function it(t,r,a){const n=e.computed(()=>[r,a].filter(s=>s).reduce((s,d)=>s.concat(Object.values(e.unref(d))),[])),o=e.computed({get(){return t.$dirty.value||(n.value.length?n.value.every(s=>s.$dirty):!1)},set(s){t.$dirty.value=s}}),u=e.computed(()=>{const s=e.unref(t.$silentErrors)||[],d=n.value.filter(M=>(e.unref(M).$silentErrors||[]).length).reduce((M,f)=>M.concat(...f.$silentErrors),[]);return s.concat(d)}),l=e.computed(()=>{const s=e.unref(t.$errors)||[],d=n.value.filter(M=>(e.unref(M).$errors||[]).length).reduce((M,f)=>M.concat(...f.$errors),[]);return s.concat(d)}),i=e.computed(()=>n.value.some(s=>s.$invalid)||e.unref(t.$invalid)||!1),L=e.computed(()=>n.value.some(s=>e.unref(s.$pending))||e.unref(t.$pending)||!1),c=e.computed(()=>n.value.some(s=>s.$dirty)||n.value.some(s=>s.$anyDirty)||o.value),p=e.computed(()=>o.value?L.value||i.value:!1),g=()=>{t.$touch(),n.value.forEach(s=>{s.$touch()})},y=()=>{t.$commit(),n.value.forEach(s=>{s.$commit()})},m=()=>{t.$reset(),n.value.forEach(s=>{s.$reset()})};return n.value.length&&n.value.every(s=>s.$dirty)&&g(),{$dirty:o,$errors:l,$invalid:i,$anyDirty:c,$error:p,$pending:L,$touch:g,$reset:m,$silentErrors:u,$commit:y}}function Z(t){let{validations:r,state:a,key:n,parentKey:o,childResults:u,resultsCache:l,globalConfig:i={},instance:L,externalResults:c}=t;const p=o?`${o}.${n}`:n,{rules:g,nestedValidators:y,config:m,validationGroups:s}=nt(r),d=x(x({},i),m),M=n?e.computed(()=>{const w=e.unref(a);return w?e.unref(w[n]):void 0}):a,f=x({},e.unref(c)||{}),h=e.computed(()=>{const w=e.unref(c);return n?w?e.unref(w[n]):void 0:w}),D=st(g,M,n,l,p,d,L,h,a),j=ut(y,M,p,l,d,L,h),$={};s&&Object.entries(s).forEach(w=>{let[I,T]=w;$[I]={$invalid:G(T,j,"$invalid"),$error:G(T,j,"$error"),$pending:G(T,j,"$pending"),$errors:ne(T,j,"$errors"),$silentErrors:ne(T,j,"$silentErrors")}});const{$dirty:C,$errors:B,$invalid:U,$anyDirty:De,$error:Ce,$pending:F,$touch:W,$reset:Te,$silentErrors:xe,$commit:te}=it(D,j,u),Ee=n?e.computed({get:()=>e.unref(M),set:w=>{C.value=!0;const I=e.unref(a),T=e.unref(c);T&&(T[n]=f[n]),e.isRef(I[n])?I[n].value=w:I[n]=w}}):null;n&&d.$autoDirty&&e.watch(M,()=>{C.value||W();const w=e.unref(c);w&&(w[n]=f[n])},{flush:"sync"});async function Se(){return W(),d.$rewardEarly&&(te(),await e.nextTick()),await e.nextTick(),new Promise(w=>{if(!F.value)return w(!U.value);const I=e.watch(F,()=>{w(!U.value),I()})})}function Ie(w){return(u.value||{})[w]}function be(){e.isRef(c)?c.value=f:Object.keys(f).length===0?Object.keys(c).forEach(w=>{delete c[w]}):Object.assign(c,f)}return e.reactive(x(x(x({},D),{},{$model:Ee,$dirty:C,$error:Ce,$errors:B,$invalid:U,$anyDirty:De,$pending:F,$touch:W,$reset:Te,$path:p||ot,$silentErrors:xe,$validate:Se,$commit:te},u&&{$getResultsForChild:Ie,$clearExternalResults:be,$validationGroups:$}),j))}class lt{constructor(){this.storage=new Map}set(r,a,n){this.storage.set(r,{rules:a,result:n})}checkRulesValidity(r,a,n){const o=Object.keys(n),u=Object.keys(a);return u.length!==o.length||!u.every(i=>o.includes(i))?!1:u.every(i=>a[i].$params?Object.keys(a[i].$params).every(L=>e.unref(n[i].$params[L])===e.unref(a[i].$params[L])):!0)}get(r,a){const n=this.storage.get(r);if(!n)return;const{rules:o,result:u}=n,l=this.checkRulesValidity(r,a,o),i=u.$unwatch?u.$unwatch:()=>({});return l?u:{$dirty:u.$dirty,$partial:!0,$unwatch:i}}}const Y={COLLECT_ALL:!0,COLLECT_NONE:!1},oe=Symbol("vuelidate#injectChildResults"),se=Symbol("vuelidate#removeChildResults");function ct(t){let{$scope:r,instance:a}=t;const n={},o=e.ref([]),u=e.computed(()=>o.value.reduce((p,g)=>(p[g]=e.unref(n[g]),p),{}));function l(p,g){let{$registerAs:y,$scope:m,$stopPropagation:s}=g;s||r===Y.COLLECT_NONE||m===Y.COLLECT_NONE||r!==Y.COLLECT_ALL&&r!==m||(n[y]=p,o.value.push(y))}a.__vuelidateInjectInstances=[].concat(a.__vuelidateInjectInstances||[],l);function i(p){o.value=o.value.filter(g=>g!==p),delete n[p]}a.__vuelidateRemoveInstances=[].concat(a.__vuelidateRemoveInstances||[],i);const L=e.inject(oe,[]);e.provide(oe,a.__vuelidateInjectInstances);const c=e.inject(se,[]);return e.provide(se,a.__vuelidateRemoveInstances),{childResults:u,sendValidationResultsToParent:L,removeValidationResultsFromParent:c}}function ye(t){return new Proxy(t,{get(r,a){return typeof r[a]=="object"?ye(r[a]):e.computed(()=>r[a])}})}let ue=0;function dt(t,r){var a;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};arguments.length===1&&(n=t,t=void 0,r=void 0);let{$registerAs:o,$scope:u=Y.COLLECT_ALL,$stopPropagation:l,$externalResults:i,currentVueInstance:L}=n;const c=L||((a=e.getCurrentInstance())===null||a===void 0?void 0:a.proxy),p=c?c.$options:{};o||(ue+=1,o=`_vuelidate_${ue}`);const g=e.ref({}),y=new lt,{childResults:m,sendValidationResultsToParent:s,removeValidationResultsFromParent:d}=c?ct({$scope:u,instance:c}):{childResults:e.ref({})};if(!t&&p.validations){const M=p.validations;r=e.ref({}),e.onBeforeMount(()=>{r.value=c,e.watch(()=>V(M)?M.call(r.value,new ye(r.value)):M,f=>{g.value=Z({validations:f,state:r,childResults:m,resultsCache:y,globalConfig:n,instance:c,externalResults:i||c.vuelidateExternalResults})},{immediate:!0})}),n=p.validationsConfig||n}else{const M=e.isRef(t)||et(t)?t:e.reactive(t||{});e.watch(M,f=>{g.value=Z({validations:f,state:r,childResults:m,resultsCache:y,globalConfig:n,instance:c??{},externalResults:i})},{immediate:!0})}return c&&(s.forEach(M=>M(g,{$registerAs:o,$scope:u,$stopPropagation:l})),e.onBeforeUnmount(()=>d.forEach(M=>M(o)))),e.computed(()=>x(x({},e.unref(g.value)),m.value))}var N=(t=>(t.CHECKBOX="checkbox",t.TEXT="text",t.PASSWORD="password",t))(N||{});const Lt=["id","type","name","placeholder","value"],pt=e.defineComponent({__name:"InputText",props:{type:{},error:{},id:{},label:{},name:{},placeholder:{},value:{}},emits:["input"],setup(t,{emit:r}){const a=r,n=o=>{a("input",o)};return(o,u)=>(e.openBlock(),e.createElementBlock("input",e.mergeProps({id:o.id,type:o.type,name:o.name,placeholder:o.placeholder,value:o.value},o.$attrs,{onInput:n}),null,16,Lt))}}),Mt=["id","name","checked","value"],gt=e.defineComponent({__name:"InputCheckbox",props:{defaultChecked:{type:Boolean},type:{},error:{},id:{},label:{},name:{},placeholder:{},value:{}},emits:["input"],setup(t,{emit:r}){const a=r,n=o=>{a("input",o)};return(o,u)=>(e.openBlock(),e.createElementBlock("input",e.mergeProps({id:o.id,name:o.name,checked:o.value==="true",value:o.value,class:"pdap-input-checkbox",type:"checkbox"},o.$attrs,{onInput:n}),null,16,Mt))}}),mt=["id"],ft=["for"],we=e.defineComponent({__name:"PdapInput",props:{type:{},error:{},id:{},label:{},name:{},placeholder:{},value:{},defaultChecked:{type:Boolean}},setup(t){const r=t,a=e.computed(()=>`pdap-${r.name}-input-error`);return(n,o)=>{var u;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"pdap-input":!0,[`pdap-input-${n.type}`]:!0,[`pdap-input-${n.type}-checked`]:n.type===e.unref(N).CHECKBOX&&n.value==="true","pdap-input-error":Number((u=n.error)==null?void 0:u.length)>=1})},[n.type===e.unref(N).CHECKBOX?(e.openBlock(),e.createBlock(gt,e.mergeProps({key:0,class:"pdap-input-checkbox"},{...n.$attrs,...r}),null,16)):(e.openBlock(),e.createBlock(pt,e.normalizeProps(e.mergeProps({key:1},{...n.$attrs,...n.$props})),null,16)),n.error?(e.openBlock(),e.createElementBlock("div",{key:2,id:a.value,class:"pdap-input-error-message"},e.toDisplayString(n.error),9,mt)):e.createCommentVNode("",!0),e.createElementVNode("label",{class:"pdap-input-label",for:n.id},e.toDisplayString(n.label),9,ft)],2)}}});function ie(t,r){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),a.push.apply(a,n)}return a}function z(t){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?ie(Object(a),!0).forEach(function(n){yt(t,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):ie(Object(a)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(a,n))})}return t}function yt(t,r,a){return r in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a,t}function A(t){return typeof t=="function"}function Q(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function R(t){return A(t.$validator)?z({},t):{$validator:t}}function wt(t){return Q(t)&&A(t.then)}function E(t){return typeof t=="object"?t.$valid:t}function b(t){return t.$validator||t}function J(t,r){if(!Q(t))throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof t}`);if(!Q(r)&&!A(r))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const a=R(r);return a.$params=z(z({},a.$params||{}),t),a}function P(t,r){if(!A(t)&&typeof e.unref(t)!="string")throw new Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof t}`);if(!Q(r)&&!A(r))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const a=R(r);return a.$message=t,a}function jt(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const a=R(t);return z(z({},a),{},{$async:!0,$watchTargets:r})}function ht(t){return{$validator(r){for(var a=arguments.length,n=new Array(a>1?a-1:0),o=1;o<a;o++)n[o-1]=arguments[o];return e.unref(r).reduce((u,l,i)=>{const L=Object.entries(l).reduce((c,p)=>{let[g,y]=p;const m=t[g]||{},s=Object.entries(m).reduce((d,M)=>{let[f,h]=M;const j=b(h).call(this,y,l,i,...n),$=E(j);if(d.$data[f]=j,d.$data.$invalid=!$||!!d.$data.$invalid,d.$data.$error=d.$data.$invalid,!$){let C=h.$message||"";const B=h.$params||{};typeof C=="function"&&(C=C({$pending:!1,$invalid:!$,$params:B,$model:y,$response:j})),d.$errors.push({$property:g,$message:C,$params:B,$response:j,$model:y,$pending:!1,$validator:f})}return{$valid:d.$valid&&$,$data:d.$data,$errors:d.$errors}},{$valid:!0,$data:{},$errors:[]});return c.$data[g]=s.$data,c.$errors[g]=s.$errors,{$valid:c.$valid&&s.$valid,$data:c.$data,$errors:c.$errors}},{$valid:!0,$data:{},$errors:{}});return{$valid:u.$valid&&L.$valid,$data:u.$data.concat(L.$data),$errors:u.$errors.concat(L.$errors)}},{$valid:!0,$data:[],$errors:[]})},$message:r=>{let{$response:a}=r;return a?a.$errors.map(n=>Object.values(n).map(o=>o.map(u=>u.$message)).reduce((o,u)=>o.concat(u),[])):[]}}}const v=t=>{if(t=e.unref(t),Array.isArray(t))return!!t.length;if(t==null)return!1;if(t===!1)return!0;if(t instanceof Date)return!isNaN(t.getTime());if(typeof t=="object"){for(let r in t)return!0;return!1}return!!String(t).length},X=t=>(t=e.unref(t),Array.isArray(t)?t.length:typeof t=="object"?Object.keys(t).length:String(t).length);function S(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return n=>(n=e.unref(n),!v(n)||r.every(o=>(o.lastIndex=0,o.test(n))))}var _=Object.freeze({__proto__:null,forEach:ht,len:X,normalizeValidatorObject:R,regex:S,req:v,unwrap:e.unref,unwrapNormalizedValidator:b,unwrapValidatorResponse:E,withAsync:jt,withMessage:P,withParams:J}),vt=S(/^[a-zA-Z]*$/),Nt={$validator:vt,$message:"The value is not alphabetical",$params:{type:"alpha"}},$t=S(/^[a-zA-Z0-9]*$/),Dt={$validator:$t,$message:"The value must be alpha-numeric",$params:{type:"alphaNum"}},Ct=S(/^\d*(\.\d+)?$/),Tt={$validator:Ct,$message:"Value must be numeric",$params:{type:"numeric"}};function xt(t,r){return a=>!v(a)||(!/\s/.test(a)||a instanceof Date)&&+e.unref(t)<=+a&&+e.unref(r)>=+a}function Et(t,r){return{$validator:xt(t,r),$message:a=>{let{$params:n}=a;return`The value must be between ${n.min} and ${n.max}`},$params:{min:t,max:r,type:"between"}}}const St=/^(?:[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;var It=S(St),K={$validator:It,$message:"Value is not a valid email address",$params:{type:"email"}};function bt(t){if(!v(t))return!0;if(typeof t!="string")return!1;const r=t.split(".");return r.length===4&&r.every(Ot)}const Ot=t=>{if(t.length>3||t.length===0||t[0]==="0"&&t!=="0"||!t.match(/^\d+$/))return!1;const r=+t|0;return r>=0&&r<=255};var zt={$validator:bt,$message:"The value is not a valid IP address",$params:{type:"ipAddress"}};function _t(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:":";return r=>{if(t=e.unref(t),!v(r))return!0;if(typeof r!="string")return!1;const a=typeof t=="string"&&t!==""?r.split(t):r.length===12||r.length===16?r.match(/.{2}/g):null;return a!==null&&(a.length===6||a.length===8)&&a.every(kt)}}const kt=t=>t.toLowerCase().match(/^[0-9a-f]{2}$/);function At(t){return{$validator:_t(t),$message:"The value is not a valid MAC Address",$params:{type:"macAddress"}}}function Pt(t){return r=>!v(r)||X(r)<=e.unref(t)}function Bt(t){return{$validator:Pt(t),$message:r=>{let{$params:a}=r;return`The maximum length allowed is ${a.max}`},$params:{max:t,type:"maxLength"}}}function Yt(t){return r=>!v(r)||X(r)>=e.unref(t)}function Vt(t){return{$validator:Yt(t),$message:r=>{let{$params:a}=r;return`This field should be at least ${a.min} characters long`},$params:{min:t,type:"minLength"}}}function Qt(t){return typeof t=="string"&&(t=t.trim()),v(t)}var q={$validator:Qt,$message:"Value is required",$params:{type:"required"}};const le=(t,r)=>t?v(typeof r=="string"?r.trim():r):!0;function Rt(t){return function(r,a){if(typeof t!="function")return le(e.unref(t),r);const n=t.call(this,r,a);return le(n,r)}}function Ut(t){return{$validator:Rt(t),$message:"The value is required",$params:{type:"requiredIf",prop:t}}}const ce=(t,r)=>t?!0:v(typeof r=="string"?r.trim():r);function Ft(t){return function(r,a){if(typeof t!="function")return ce(e.unref(t),r);const n=t.call(this,r,a);return ce(n,r)}}function Wt(t){return{$validator:Ft(t),$message:"The value is required",$params:{type:"requiredUnless",prop:t}}}function Gt(t){return r=>e.unref(r)===e.unref(t)}function Zt(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"other";return{$validator:Gt(t),$message:a=>`The value must be equal to the ${r} value`,$params:{equalTo:t,otherName:r,type:"sameAs"}}}const Ht=/^(?:(?:(?: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;var Jt=S(Ht),Xt={$validator:Jt,$message:"The value is not a valid URL address",$params:{type:"url"}};function Kt(t){return function(){for(var r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return t.reduce((o,u)=>E(o)?o:b(u).apply(this,a),!1)}}function qt(t){return function(){for(var r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return t.reduce(async(o,u)=>{const l=await o;return E(l)?l:b(u).apply(this,a)},Promise.resolve(!1))}}function er(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];const n=r.some(l=>l.$async),o=r.reduce((l,i)=>i.$watchTargets?l.concat(i.$watchTargets):l,[]);let u=()=>!1;return r.length&&(u=n?qt(r):Kt(r)),{$async:n,$validator:u,$watchTargets:o}}function tr(){return J({type:"or"},P("The value does not match any of the provided validators",er(...arguments)))}function rr(t){return function(){for(var r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return t.reduce((o,u)=>E(o)?b(u).apply(this,a):o,!0)}}function ar(t){return function(){for(var r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return t.reduce(async(o,u)=>{const l=await o;return E(l)?b(u).apply(this,a):l},Promise.resolve(!0))}}function nr(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];const n=r.some(l=>l.$async),o=r.reduce((l,i)=>i.$watchTargets?l.concat(i.$watchTargets):l,[]);let u=()=>!1;return r.length&&(u=n?ar(r):rr(r)),{$async:n,$validator:u,$watchTargets:o}}function or(){return J({type:"and"},P("The value does not match all of the provided validators",nr(...arguments)))}function sr(t){return function(r,a){if(!v(r))return!0;const n=b(t).call(this,r,a);return wt(n)?n.then(o=>!E(o)):!E(n)}}function ur(t){return{$validator:sr(t),$message:"The value does not match the provided validator",$params:{type:"not"}}}function ir(t){return r=>!v(r)||(!/\s/.test(r)||r instanceof Date)&&+r>=+e.unref(t)}function lr(t){return{$validator:ir(t),$message:r=>{let{$params:a}=r;return`The minimum value allowed is ${a.min}`},$params:{min:t,type:"minValue"}}}function cr(t){return r=>!v(r)||(!/\s/.test(r)||r instanceof Date)&&+r<=+e.unref(t)}var dr=t=>({$validator:cr(t),$message:r=>{let{$params:a}=r;return`The maximum value allowed is ${a.max}`},$params:{max:t,type:"maxValue"}}),Lr=S(/(^[0-9]*$)|(^-[0-9]+$)/),pr={$validator:Lr,$message:"Value is not an integer",$params:{type:"integer"}},Mr=S(/^[-]?\d*(\.\d+)?$/),gr={$validator:Mr,$message:"Value must be decimal",$params:{type:"decimal"}};function mr(t){let{t:r,messagePath:a=o=>{let{$validator:u}=o;return`validations.${u}`},messageParams:n=o=>o}=t;return function(u){let{withArguments:l=!1,messagePath:i=a,messageParams:L=n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};function c(p){return r(i(p),L(z({model:p.$model,property:p.$property,pending:p.$pending,invalid:p.$invalid,response:p.$response,validator:p.$validator,propertyPath:p.$propertyPath},p.$params)))}return l&&typeof u=="function"?function(){return P(c,u(...arguments))}:P(c,u)}}const je=Object.freeze(Object.defineProperty({__proto__:null,alpha:Nt,alphaNum:Dt,and:or,between:Et,createI18nMessage:mr,decimal:gr,email:K,helpers:_,integer:pr,ipAddress:zt,macAddress:At,maxLength:Bt,maxValue:dr,minLength:Vt,minValue:lr,not:ur,numeric:Tt,or:tr,required:q,requiredIf:Ut,requiredUnless:Wt,sameAs:Zt,url:Xt},Symbol.toStringTag,{value:"Module"})),he=_.regex(/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$ %^&*-]).{8,}$/);function de(t){return["maxLength","minLength"].includes(t)}function Le(t){return t==="required"}function pe(t){return t==="email"}function Me(t){return t==="password"}function fr(t,r){return{[t]:je[t](r)}}function yr(t,r,a){return{[t]:_.withMessage(a,je[t](r))}}function wr(){return{required:q}}function jr(t){return{required:_.withMessage(t,q)}}function hr(){return{email:K}}function vr(t){return{email:_.withMessage(t,K)}}function Nr(){return{password:he}}function $r(t){return{password:_.withMessage(t,he)}}function Dr(t,r){if(de(t)&&typeof r.message=="string"&&typeof r.value=="number")return yr(t,r.value,r.message);if(de(t)&&typeof r.message>"u"&&typeof r.value=="number")return fr(t,r.value);if(pe(t)&&typeof r.message=="string")return vr(r.message);if(pe(t)&&typeof r.message>"u")return hr();if(Me(t)&&typeof r.message=="string")return $r(r.message);if(Me(t)&&typeof r.message>"u")return Nr();if(Le(t)&&typeof r.message=="string")return jr(r.message);if(Le(t)&&typeof r.message>"u")return wr();throw new Error("No valid rule detected")}const Cr=["id","name","onSubmit"],Tr={key:0,class:"pdap-form-error-message"},xr={name:"PdapForm"},ve=e.defineComponent({...xr,props:{error:{default:null},id:{},name:{},schema:{},resetOn:{type:[String,Boolean],default:"submit"}},emits:["submit","change"],setup(t,{expose:r,emit:a}){const n=t,o=a;r({setValues:y});const u=e.computed(()=>n.schema.map(s=>{const d={...s};return delete d.validators,d})),l=e.ref(u.value.reduce((s,d)=>{switch(d.type){case N.CHECKBOX:return{...s,[d.name]:String(d.defaultChecked)};case N.TEXT:case N.PASSWORD:default:return{...s,[d.name]:d.value}}},{})),i=n.schema.reduce((s,d)=>{const M=Object.entries(d.validators??{}).reduce((f,[h,D])=>({...f,...Dr(h,D)}),{});return{...s,[d.name]:{...M}}},{}),L=dt(i,l,{$autoDirty:!1,$lazy:!0}),c=e.ref(n.error);e.watchEffect(()=>{n.error?c.value=n.error:c.value&&L.value.$errors.length===0?c.value=null:!c.value&&L.value.$errors.length>0&&(c.value="Please update this form to correct the errors")}),e.watchEffect(()=>{n.resetOn&&n.resetOn!=="submit"&&g()});function p(s,d){const M=d.target,f=(()=>{switch(s.type){case N.CHECKBOX:return M.checked?"true":"false";default:return M.value}})();l.value[s.name]=f,o("change",l.value,d)}function g(){L.value.$reset(),l.value=Object.entries(l).reduce((s,[d])=>({...s,[d]:""}),{})}function y(s){l.value=s}async function m(s){await L.value.$validate()&&(o("submit",{...l.value},s),n.resetOn==="submit"&&g())}return(s,d)=>(e.openBlock(),e.createElementBlock("form",{id:s.id,name:s.name,class:"pdap-form",onSubmit:e.withModifiers(m,["prevent"])},[typeof c.value=="string"?(e.openBlock(),e.createElementBlock("div",Tr,e.toDisplayString(c.value),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,M=>{var f,h,D,j;return e.openBlock(),e.createBlock(we,e.mergeProps(M,{key:M.name,error:(f=e.unref(L)[M.name])!=null&&f.$error?(j=(D=(h=e.unref(L)[M.name])==null?void 0:h.$errors)==null?void 0:D[0])==null?void 0:j.$message:"",value:l.value[M.name],onInput:$=>p(M,$)}),null,16,["error","value","onInput"])}),128)),e.renderSlot(s.$slots,"default")],40,Cr))}});const Er=t=>(e.pushScopeId("data-v-3158c5fc"),t=t(),e.popScopeId(),t),Sr=["aria-label","aria-expanded","onKeyup"],Ir=Er(()=>e.createElementVNode("svg",{"aria-label":"Menu",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},[e.createElementVNode("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"})],-1)),br=[Ir],Or=["aria-hidden"],zr=["href"],_r={name:"PdapHeader"},kr=e.defineComponent({..._r,setup(t){let r=e.inject("navLinks");typeof r>"u"&&(r=[],console.error(`Hey, PDAP developer
|
2
|
+
`,"Did you forget to inject some linkData for the Nav component?"));const a=e.reactive({isExpanded:!1,isMobile:!0});e.onBeforeMount(()=>{n(),window.addEventListener("resize",n)}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",n)});async function n(){window.innerWidth<=1024?a.isMobile=!0:a.isMobile=!1,await e.nextTick()}async function o(){var l,i;const u=document.querySelector("body");!a.isExpanded&&a.isMobile?(a.isExpanded=!0,u!=null&&u.classList.contains("lock-scroll")||(l=document.querySelector("body"))==null||l.classList.add("lock-scroll")):a.isExpanded&&a.isMobile&&(a.isExpanded=!1,(i=document.querySelector("body"))==null||i.classList.remove("lock-scroll")),await e.nextTick()}return(u,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{"aria-label":a.isExpanded?"close navigation menu":"open navigation menu","aria-expanded":a.isMobile&&a.isExpanded,"aria-controls":"nav",class:"pdap-nav-open-button",role:"button",tabindex:0,onClick:o,onKeyup:e.withKeys(o,["enter"])},br,40,Sr),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("nav",{id:"nav","aria-hidden":!(a.isMobile&&a.isExpanded),class:"pdap-nav"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),i=>(e.openBlock(),e.createElementBlock("li",{key:i.text,class:"pdap-nav-link-container"},[i.href?(e.openBlock(),e.createElementBlock("a",{key:0,class:"pdap-nav-link",href:i.href,target:"_blank",referrerpolicy:"no-referrer",onClick:o},e.toDisplayString(i.text),9,zr)):e.createCommentVNode("",!0),i.path?(e.openBlock(),e.createBlock(e.unref(O.RouterLink),{key:1,"active-class":"pdap-nav-link-current","exact-active-class":"pdap-nav-link-current-exact",class:"pdap-nav-link",to:i.path,onClick:o},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.text),1)]),_:2},1032,["to"])):e.createCommentVNode("",!0)]))),128))],8,Or),[[e.vShow,a.isMobile&&a.isExpanded||!a.isMobile]])]),_:1})],64))}});const ee=(t,r)=>{const a=t.__vccOpts||t;for(const[n,o]of r)a[n]=o;return a},Ne=ee(kr,[["__scopeId","data-v-3158c5fc"]]),Ar="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI0LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MDkuNCAxMTEuNyIgc3R5bGU9ImVuYWJsZS1iYWNrZ3J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DUuMyw1LjljMi4zLDAsMy41LTAuOSw0LjktMi41bDUuOSw0LjJDNDg5LjQsOTkuOSw0ODYuNCwxMDEuNSw0ODEuNiwxMDEuNXoiLz4KPHBhdGggZD0iTTUwMy45LDEwMC44Yy01LDAtOC4yLTMuOC04LjItOXYtOWgtMy4xdi02LjZoMy4xVjY1LjloOC45djEwLjJoNC4ydjYuNmgtNC4ydjcuNGMwLDEuOSwxLDMuMiwyLjcsMy4yaDIuMnY3LjRoLTUuNlYxMDAuOHoKCSIvPgo8cG9seWdvbiBwb2ludHM9IjkxLjcsMjAuMiA3Ni4yLDIwLjIgODguNCw4IDgzLjEsMi43IDcxLjUsMTQuMyA3MS41LDAgNjQsMCA2NCwxNC4zIDUyLjMsMi43IDQ3LDggNTkuMiwyMC4yIDQzLjcsMjAuMiA0My43LDI3LjggCgk1OC4xLDI3LjggNDcsMzguOCA1Mi4zLDQ0LjEgNjQsMzIuNSA2NCw0OCA3MS41LDQ4IDcxLjUsMzIuNSA4My4xLDQ0LjEgODguNCwzOC44IDc3LjQsMjcuOCA5MS43LDI3LjggIi8+Cjwvc3ZnPgo=",Pr=["href"],Br=["src"],Yr=["src"],Vr={name:"PdapHeader"},Qr=e.defineComponent({...Vr,props:{logoImageSrc:{default:Ar},logoImageAnchorPath:{default:"/"}},setup(t){const r=t,a=e.ref(null),n=r.logoImageAnchorPath.startsWith("/");e.onMounted(()=>{o(),window.addEventListener("resize",o)}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",o)});function o(){var u;a.value&&((u=document.querySelector(":root"))==null||u.style.setProperty("--header-height",`${a.value.clientHeight}px`))}return(u,l)=>(e.openBlock(),e.createElementBlock("header",{ref_key:"el",ref:a,class:"pdap-header"},[e.unref(n)?(e.openBlock(),e.createBlock(e.unref(O.RouterLink),{key:1,to:u.logoImageAnchorPath,class:"logo"},{default:e.withCtx(()=>[e.createElementVNode("img",{src:u.logoImageSrc,loading:"lazy",width:"250",alt:"Police Data Accessibility Project Logo"},null,8,Yr)]),_:1},8,["to"])):(e.openBlock(),e.createElementBlock("a",{key:0,href:u.logoImageAnchorPath,class:"logo"},[e.createElementVNode("img",{src:u.logoImageSrc,loading:"lazy",width:"250",alt:"Police Data Accessibility Project Logo"},null,8,Br)],8,Pr)),e.createVNode(Ne)],512))}});const Rr=e.createElementVNode("div",{class:"pdap-flex-container"},[e.createElementVNode("h2",{class:"mt-0"},"Search our database"),e.createElementVNode("p",{class:"pb-4 md:pb-8"},[e.createTextVNode(" If you are looking for something specific, we may already be tracking it. "),e.createElementVNode("a",{href:"https://pdap.io/data"},"Learn more about the data here.")])],-1),Ur={class:"pdap-quick-search-form h-full max-h-[75-vh] justify-start p-0"},Fr={class:"max-w-[unset] text-med"},Wr=["href"],Gr=["href"],Zr={name:"QuickSearchForm"},Hr=e.defineComponent({...Zr,props:{baseUrlForRedirect:{default:"https://data-sources.pdap.io"}},setup(t){const r=O.useRouter(),a=t,n=[{id:"search-term",name:"searchTerm",label:"What are you looking for?",type:N.TEXT,placeholder:"Enter a keyword, or 'all'",value:""},{id:"location",name:"location",label:"From where?",type:N.TEXT,placeholder:"Enter a place, or 'all'",value:""}],o=e.ref(void 0),u=r.getRoutes().some(L=>L.path.includes("/search/"));function l(L){o.value&&Object.values(L).some(Boolean)&&(o.value=void 0)}function i(L){if(Object.values(L).every(g=>!g)){o.value="Either a search term or a location is required.";return}let{location:c,searchTerm:p}=L;c=c&&c.length>0?c:"all",p=p&&p.length>0?p:"all",u?r.push(`/search/${p}/${c}`):window.location.assign(`${a.baseUrlForRedirect}/search/${p}/${c}`)}return(L,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[Rr,e.createElementVNode("div",Ur,[e.createVNode(ve,{id:"quick-search-form",class:"flex flex-wrap gap-x-4",error:o.value,schema:n,name:"quickSearchForm",onChange:l,onSubmit:i},{default:e.withCtx(()=>[e.createVNode(H,{type:"submit",class:"flex-grow-0 flex-shrink-0 basis-full max-w-[unset] mt-4"},{default:e.withCtx(()=>[e.createTextVNode("Search Data Sources")]),_:1})]),_:1},8,["error"]),e.createElementVNode("p",Fr,[e.createTextVNode(" For example, you could search for "),e.unref(u)?(e.openBlock(),e.createBlock(e.unref(O.RouterLink),{key:0,to:"/search/stops/pittsburgh"},{default:e.withCtx(()=>[e.createTextVNode(" stops in Pittsburgh ")]),_:1})):(e.openBlock(),e.createElementBlock("a",{key:1,target:"_blank",rel:"noreferrer",href:`${a.baseUrlForRedirect}/search/stops/pittsburgh`}," stops in Pittsburgh ",8,Wr)),e.createTextVNode(" or "),e.unref(u)?(e.openBlock(),e.createBlock(e.unref(O.RouterLink),{key:2,to:"/search/complaints/all"},{default:e.withCtx(()=>[e.createTextVNode(" complaints everywhere ")]),_:1})):(e.openBlock(),e.createElementBlock("a",{key:3,target:"_blank",rel:"noreferrer",href:`${a.baseUrlForRedirect}/search/complaints/all`}," complaints everywhere ",8,Gr)),e.createTextVNode(" . ")])])],64))}});const Jr=["alt","src"],Xr={name:"TileIcon"},Kr=e.defineComponent({...Xr,props:{imgAltText:{},imgSrc:{}},setup(t){return(r,a)=>(e.openBlock(),e.createElementBlock("img",{class:"pdap-tile-icon",alt:r.imgAltText,src:r.imgSrc},null,8,Jr))}});var k=(t=>(t.PRESS="press",t.HOVER="hover",t))(k||{});const $e={beforeMount(t,r){const a=t;a.clickOutsideEvent=function(o){t===o.target||a.contains(o.target)||r.value(o)},document.addEventListener("click",a.clickOutsideEvent),document.addEventListener("keyup",a.clickOutsideEvent)},unmounted(t){t.clickOutsideEvent&&(document.removeEventListener("click",t.clickOutsideEvent),document.removeEventListener("keyup",t.clickOutsideEvent))}},qr=["onKeydown"],ea=["id","aria-hidden"],ta={name:"PdapButton"},ra=e.defineComponent({...ta,props:{defaultOpen:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dropdownId:{},triggerOn:{default:k.PRESS}},emits:["update:open","press"],setup(t,{emit:r}){const a=t,n=r,o=e.ref(null),u=e.ref(null),l=e.ref(a.defaultOpen),i=e.computed(()=>a.triggerOn===k.HOVER);function L(s){n("press",s),a.triggerOn===k.PRESS&&c()}const c=()=>{a.disabled||(l.value=!l.value,n("update:open",l.value))};function p(){l.value=!0,n("update:open",!0)}function g(){l.value=!1,n("update:open",!1)}function y(){var f,h;if(!o.value)return;o.value.style.display="flex",o.value.style.setProperty("max-height","max-content");const s=o.value.scrollHeight;o.value.style.display="none",o.value.style.removeProperty("max-height");const d=document==null?void 0:document.querySelector(":root"),M=(f=d==null?void 0:d.style)==null?void 0:f.getPropertyValue("--dropdown-content-max-height");Number((h=M==null?void 0:M.match(/\d+/))==null?void 0:h.join(""))>=s||o.value&&d&&d.style.setProperty("--dropdown-content-max-height",`${s+16}px`)}const m={mouseenter:i.value?p:void 0,focus:i.value?p:void 0,focusin:i.value?p:void 0,focusout:i.value?g:void 0,mouseleave:i.value?g:void 0,blur:i.value?g:void 0};return e.onMounted(()=>{y()}),(s,d)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",e.mergeProps({ref_key:"dropdownRef",ref:u,class:"pdap-dropdown",role:"presentation",onKeydown:e.withKeys(g,["escape"])},e.toHandlers(m,!0)),[e.createVNode(e.unref(H),{"aria-controls":s.dropdownId,"aria-expanded":l.value,disabled:s.disabled,"aria-haspopup":"true",intent:"tertiary",class:e.normalizeClass({"pdap-dropdown-trigger":!0,"pointer-events-none":s.disabled,"cursor-not-allowed":s.disabled}),"data-test":"dropdown-trigger",onClick:e.withModifiers(L,["prevent","stop"]),onKeydown:e.withKeys(e.withModifiers(L,["prevent","stop"]),["enter","space"])},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"trigger")]),_:3},8,["aria-controls","aria-expanded","disabled","class","onClick","onKeydown"]),e.createVNode(e.Transition,{name:"dropdown",appear:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{id:s.dropdownId,ref_key:"contentRef",ref:o,"aria-hidden":!l.value,class:"pdap-dropdown-content","data-test":"dropdown-content",role:"menu"},[e.renderSlot(s.$slots,"content")],8,ea),[[e.vShow,l.value]])]),_:3})],16,qr)),[[e.unref($e),g]])}});function aa(t){const r=[];for(const a of t.matched){const{name:n,path:o,meta:u}=a,l=u.breadcrumbText??n;l&&r.push({text:l,path:o,active:!1})}return r.length>0&&(r[r.length-1].active=!0),r}const na={"aria-label":"Breadcrumb"},oa={key:1},sa={name:"PdapBreadcrumbs"},ua=e.defineComponent({...sa,setup(t){const r=O.useRoute(),a=e.computed(()=>aa(r));return(n,o)=>{const u=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("nav",na,[e.createVNode(e.TransitionGroup,{class:"pdap-breadcrumbs",tag:"ul"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,l=>(e.openBlock(),e.createElementBlock("li",{key:l.text,class:e.normalizeClass({"is-active":l.active})},[l.active?(e.openBlock(),e.createElementBlock("span",oa,e.toDisplayString(l.text),1)):(e.openBlock(),e.createBlock(u,{key:0,to:l.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.text),1)]),_:2},1032,["to"]))],2))),128))]),_:1})])}}});const ia=ee(ua,[["__scopeId","data-v-e8d76c0f"]]),la={key:0,class:"pdap-spinner"},ca=["width","height"],da=["stroke","fill"],La=["stroke","fill"],pa={key:0,"aria-live":"polite"};/**
|
3
3
|
* # `Spinner`
|
4
4
|
* Loading spinner component
|
5
5
|
*
|