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.
@@ -1,4 +1,3 @@
1
- import { PdapNavProps } from './types';
2
1
  /**
3
2
  * # `Nav`
4
3
  *
@@ -36,14 +35,5 @@ import { PdapNavProps } from './types';
36
35
  *}
37
36
  *</scriptt>
38
37
  */
39
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<PdapNavProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PdapNavProps>>>, {}, {}>;
38
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
40
39
  export default _default;
41
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
42
- type __VLS_TypePropsToRuntimeProps<T> = {
43
- [K in keyof T]-?: {} extends Pick<T, K> ? {
44
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
45
- } : {
46
- type: import('vue').PropType<T[K]>;
47
- required: true;
48
- };
49
- };
@@ -3,9 +3,6 @@ export interface PdapLinkData {
3
3
  path?: string;
4
4
  text: string;
5
5
  }
6
- export interface PdapNavProps {
7
- topPosition?: number;
8
- }
9
6
  export interface PdapNavState {
10
7
  isExpanded: boolean;
11
8
  isMobile: boolean | undefined;
@@ -54,3 +54,24 @@ export declare const tailwindConfig: {
54
54
  };
55
55
  };
56
56
  };
57
+ export declare const stylelintConfig: {
58
+ extends: string[];
59
+ rules: {
60
+ 'at-rule-no-unknown': (boolean | {
61
+ ignoreAtRules: string[];
62
+ })[];
63
+ 'comment-empty-line-before': null;
64
+ 'declaration-block-trailing-semicolon': null;
65
+ 'no-descending-specificity': null;
66
+ "a11y/no-text-align-justify": boolean;
67
+ "a11y/font-size-is-readable": boolean;
68
+ "a11y/media-prefers-color-scheme": boolean;
69
+ "a11y/line-height-is-vertical-rhythmed": boolean;
70
+ "a11y/no-display-none": boolean;
71
+ "a11y/no-obsolete-element": boolean;
72
+ };
73
+ overrides: {
74
+ files: string[];
75
+ extends: string[];
76
+ }[];
77
+ };
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),z=require("vue-router"),Oe={name:"PdapButton"},H=e.defineComponent({...Oe,props:{intent:{default:"primary"},isLoading:{type:Boolean,default:!1}},setup(t){const r=t,n=e.reactive({"pdap-button":!0,[`pdap-button-${r.intent}`]:!!r.intent,"pdap-button-loading":r.isLoading});return(a,o)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(n)},[e.renderSlot(a.$slots,"default")],2))}});const ke=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),be={name:"ErrorBoundary"},Ae=e.defineComponent({...be,props:{component:{default:"div"},onError:{type:Function,default:void 0},params:{default:void 0}},emits:["onError"],setup(t,{emit:r}){const n=t,a=r,o=e.ref(),s=e.ref("");function c(i,l,d){var M;o.value=i,s.value=d,(M=n.onError)==null||M.call(n,i,l,d),a("onError",{error:i,vm:l,info:d})}return e.onErrorCaptured((i,l,d)=>{c(i,l,d)}),(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(()=>[ke,_e]),_:1},8,["v-bind"])):e.renderSlot(i.$slots,"default",{key:0})}}),Pe="data:image/svg+xml;base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mi4xLDYxLjV6Ii8+CjxwYXRoIGQ9Ik02MC41LDgwLjFoLTYuOVY1Ny4zaDYuOWM2LjUsMCwxMS45LDQsMTEuOSwxMS40QzcyLjQsNzYuMiw2Ni42LDgwLjEsNjAuNSw4MC4xeiBNNjAuNSw2MS41aC0xLjl2MTQuNGgxLjkKCWM0LjMsMCw2LjctMy40LDYuNy03LjJTNjQuNSw2MS41LDYwLjUsNjEuNXoiLz4KPHBhdGggZD0iTTg4LjcsODAuMUw4Nyw3NC40aC03bC0xLjgsNS44aC01LjNsOC4yLTIyLjloNC44bDguMywyMi45aC01LjVWODAuMXogTTg0LDY0LjZjLTAuMi0wLjctMC41LTEuNi0wLjUtMS44CgljMCwwLjEtMC4yLDEtMC41LDEuOGwtMS43LDUuNmg0LjRMODQsNjQuNnoiLz4KPHBhdGggZD0iTTEwNC43LDcxLjFoLTIuNnY5LjFoLTVWNTcuM2g3LjZjNS4xLDAsOC40LDIuNCw4LjQsNi43UzEwOS44LDcxLjEsMTA0LjcsNzEuMXogTTEwNC43LDYxLjVoLTIuNnY1LjNoMi42CgljMi4zLDAsMy4zLTAuOSwzLjMtMi43UzEwNi45LDYxLjUsMTA0LjcsNjEuNXoiLz4KPC9zdmc+Cg==",Ye={class:"pdap-footer"},Be={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",{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,n=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"}]),a=r.logoImageAnchorPath.startsWith("/");return(o,s)=>{const c=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("footer",Ye,[e.createElementVNode("div",Be,[e.createElementVNode("ul",Ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n),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(c,{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(a)?(e.openBlock(),e.createBlock(c,{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 te(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,a)}return n}function C(t){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?te(Object(n),!0).forEach(function(a){qe(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function qe(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function re(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(t).reduce((n,a)=>(r.includes(a)||(n[a]=e.unref(t[a])),n),{})}function V(t){return typeof t=="function"}function et(t){return e.isReactive(t)||e.isReadonly(t)}function pe(t,r,n){let a=t;const o=r.split(".");for(let s=0;s<o.length;s++){if(!a[o[s]])return n;a=a[o[s]]}return a}function G(t,r,n){return e.computed(()=>t.some(a=>pe(r,a,{[n]:!1})[n]))}function ne(t,r,n){return e.computed(()=>t.reduce((a,o)=>{const s=pe(r,o,{[n]:!1})[n]||[];return a.concat(s)},[]))}function me(t,r,n,a){return t.call(a,e.unref(r),e.unref(n),a)}function ge(t){return t.$valid!==void 0?!t.$valid:!t}function tt(t,r,n,a,o,s,c){let{$lazy:i,$rewardEarly:l}=o,d=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],M=arguments.length>8?arguments[8]:void 0,g=arguments.length>9?arguments[9]:void 0,f=arguments.length>10?arguments[10]:void 0;const m=e.ref(!!a.value),u=e.ref(0);n.value=!1;const L=e.watch([r,a].concat(d,f),()=>{if(i&&!a.value||l&&!g.value&&!n.value)return;let p;try{p=me(t,r,M,c)}catch(j){p=Promise.reject(j)}u.value++,n.value=!!u.value,m.value=!1,Promise.resolve(p).then(j=>{u.value--,n.value=!!u.value,s.value=j,m.value=ge(j)}).catch(j=>{u.value--,n.value=!!u.value,s.value=j,m.value=!0})},{immediate:!0,deep:typeof r=="object"});return{$invalid:m,$unwatch:L}}function rt(t,r,n,a,o,s,c,i){let{$lazy:l,$rewardEarly:d}=a;const M=()=>({}),g=e.computed(()=>{if(l&&!n.value||d&&!i.value)return!1;let f=!0;try{const m=me(t,r,c,s);o.value=m,f=ge(m)}catch(m){o.value=m}return f});return{$unwatch:M,$invalid:g}}function nt(t,r,n,a,o,s,c,i,l,d,M){const g=e.ref(!1),f=t.$params||{},m=e.ref(null);let u,L;t.$async?{$invalid:u,$unwatch:L}=tt(t.$validator,r,g,n,a,m,o,t.$watchTargets,l,d,M):{$invalid:u,$unwatch:L}=rt(t.$validator,r,n,a,m,o,l,d);const p=t.$message;return{$message:V(p)?e.computed(()=>p(re({$pending:g,$invalid:u,$params:re(f),$model:r,$response:m,$validator:s,$propertyPath:i,$property:c}))):p||"",$params:f,$pending:g,$invalid:u,$response:m,$unwatch:L}}function at(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=e.unref(t),n=Object.keys(r),a={},o={},s={};let c=null;return n.forEach(i=>{const l=r[i];switch(!0){case V(l.$validator):a[i]=l;break;case V(l):a[i]={$validator:l};break;case i==="$validationGroups":c=l;break;case i.startsWith("$"):s[i]=l;break;default:o[i]=l}}),{rules:a,nestedValidators:o,config:s,validationGroups:c}}const ot="__root";function st(t,r,n,a,o,s,c,i,l){const d=Object.keys(t),M=a.get(o,t),g=e.ref(!1),f=e.ref(!1),m=e.ref(0);if(M){if(!M.$partial)return M;M.$unwatch(),g.value=M.$dirty.value}const u={$dirty:g,$path:o,$touch:()=>{g.value||(g.value=!0)},$reset:()=>{g.value&&(g.value=!1)},$commit:()=>{}};return d.length?(d.forEach(L=>{u[L]=nt(t[L],r,u.$dirty,s,c,L,n,o,l,f,m)}),u.$externalResults=e.computed(()=>i.value?[].concat(i.value).map((L,p)=>({$propertyPath:o,$property:n,$validator:"$externalResults",$uid:`${o}-externalResult-${p}`,$message:L,$params:{},$response:null,$pending:!1})):[]),u.$invalid=e.computed(()=>{const L=d.some(p=>e.unref(u[p].$invalid));return f.value=L,!!u.$externalResults.value.length||L}),u.$pending=e.computed(()=>d.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(()=>d.filter(L=>e.unref(u[L].$invalid)).map(L=>{const p=u[L];return e.reactive({$propertyPath:o,$property:n,$validator:L,$uid:`${o}-${L}`,$message:p.$message,$params:p.$params,$response:p.$response,$pending:p.$pending})}).concat(u.$externalResults.value)),u.$errors=e.computed(()=>u.$dirty.value?u.$silentErrors.value:[]),u.$unwatch=()=>d.forEach(L=>{u[L].$unwatch()}),u.$commit=()=>{f.value=!0,m.value=Date.now()},a.set(o,t,u),u):(M&&a.set(o,t,u),u)}function ut(t,r,n,a,o,s,c){const i=Object.keys(t);return i.length?i.reduce((l,d)=>(l[d]=Z({validations:t[d],state:r,key:d,parentKey:n,resultsCache:a,globalConfig:o,instance:s,externalResults:c}),l),{}):{}}function it(t,r,n){const a=e.computed(()=>[r,n].filter(u=>u).reduce((u,L)=>u.concat(Object.values(e.unref(L))),[])),o=e.computed({get(){return t.$dirty.value||(a.value.length?a.value.every(u=>u.$dirty):!1)},set(u){t.$dirty.value=u}}),s=e.computed(()=>{const u=e.unref(t.$silentErrors)||[],L=a.value.filter(p=>(e.unref(p).$silentErrors||[]).length).reduce((p,j)=>p.concat(...j.$silentErrors),[]);return u.concat(L)}),c=e.computed(()=>{const u=e.unref(t.$errors)||[],L=a.value.filter(p=>(e.unref(p).$errors||[]).length).reduce((p,j)=>p.concat(...j.$errors),[]);return u.concat(L)}),i=e.computed(()=>a.value.some(u=>u.$invalid)||e.unref(t.$invalid)||!1),l=e.computed(()=>a.value.some(u=>e.unref(u.$pending))||e.unref(t.$pending)||!1),d=e.computed(()=>a.value.some(u=>u.$dirty)||a.value.some(u=>u.$anyDirty)||o.value),M=e.computed(()=>o.value?l.value||i.value:!1),g=()=>{t.$touch(),a.value.forEach(u=>{u.$touch()})},f=()=>{t.$commit(),a.value.forEach(u=>{u.$commit()})},m=()=>{t.$reset(),a.value.forEach(u=>{u.$reset()})};return a.value.length&&a.value.every(u=>u.$dirty)&&g(),{$dirty:o,$errors:c,$invalid:i,$anyDirty:d,$error:M,$pending:l,$touch:g,$reset:m,$silentErrors:s,$commit:f}}function Z(t){let{validations:r,state:n,key:a,parentKey:o,childResults:s,resultsCache:c,globalConfig:i={},instance:l,externalResults:d}=t;const M=o?`${o}.${a}`:a,{rules:g,nestedValidators:f,config:m,validationGroups:u}=at(r),L=C(C({},i),m),p=a?e.computed(()=>{const y=e.unref(n);return y?e.unref(y[a]):void 0}):n,j=C({},e.unref(d)||{}),h=e.computed(()=>{const y=e.unref(d);return a?y?e.unref(y[a]):void 0:y}),_=st(g,p,a,c,M,L,l,h,n),N=ut(f,p,M,c,L,l,h),E={};u&&Object.entries(u).forEach(y=>{let[S,D]=y;E[S]={$invalid:G(D,N,"$invalid"),$error:G(D,N,"$error"),$pending:G(D,N,"$pending"),$errors:ne(D,N,"$errors"),$silentErrors:ne(D,N,"$silentErrors")}});const{$dirty:$,$errors:Y,$invalid:U,$anyDirty:De,$error:Ce,$pending:F,$touch:W,$reset:Te,$silentErrors:xe,$commit:ee}=it(_,N,s),Ee=a?e.computed({get:()=>e.unref(p),set:y=>{$.value=!0;const S=e.unref(n),D=e.unref(d);D&&(D[a]=j[a]),e.isRef(S[a])?S[a].value=y:S[a]=y}}):null;a&&L.$autoDirty&&e.watch(p,()=>{$.value||W();const y=e.unref(d);y&&(y[a]=j[a])},{flush:"sync"});async function Se(){return W(),L.$rewardEarly&&(ee(),await e.nextTick()),await e.nextTick(),new Promise(y=>{if(!F.value)return y(!U.value);const S=e.watch(F,()=>{y(!U.value),S()})})}function Ie(y){return(s.value||{})[y]}function ze(){e.isRef(d)?d.value=j:Object.keys(j).length===0?Object.keys(d).forEach(y=>{delete d[y]}):Object.assign(d,j)}return e.reactive(C(C(C({},_),{},{$model:Ee,$dirty:$,$error:Ce,$errors:Y,$invalid:U,$anyDirty:De,$pending:F,$touch:W,$reset:Te,$path:M||ot,$silentErrors:xe,$validate:Se,$commit:ee},s&&{$getResultsForChild:Ie,$clearExternalResults:ze,$validationGroups:E}),N))}class ct{constructor(){this.storage=new Map}set(r,n,a){this.storage.set(r,{rules:n,result:a})}checkRulesValidity(r,n,a){const o=Object.keys(a),s=Object.keys(n);return s.length!==o.length||!s.every(i=>o.includes(i))?!1:s.every(i=>n[i].$params?Object.keys(n[i].$params).every(l=>e.unref(a[i].$params[l])===e.unref(n[i].$params[l])):!0)}get(r,n){const a=this.storage.get(r);if(!a)return;const{rules:o,result:s}=a,c=this.checkRulesValidity(r,n,o),i=s.$unwatch?s.$unwatch:()=>({});return c?s:{$dirty:s.$dirty,$partial:!0,$unwatch:i}}}const B={COLLECT_ALL:!0,COLLECT_NONE:!1},ae=Symbol("vuelidate#injectChildResults"),oe=Symbol("vuelidate#removeChildResults");function lt(t){let{$scope:r,instance:n}=t;const a={},o=e.ref([]),s=e.computed(()=>o.value.reduce((M,g)=>(M[g]=e.unref(a[g]),M),{}));function c(M,g){let{$registerAs:f,$scope:m,$stopPropagation:u}=g;u||r===B.COLLECT_NONE||m===B.COLLECT_NONE||r!==B.COLLECT_ALL&&r!==m||(a[f]=M,o.value.push(f))}n.__vuelidateInjectInstances=[].concat(n.__vuelidateInjectInstances||[],c);function i(M){o.value=o.value.filter(g=>g!==M),delete a[M]}n.__vuelidateRemoveInstances=[].concat(n.__vuelidateRemoveInstances||[],i);const l=e.inject(ae,[]);e.provide(ae,n.__vuelidateInjectInstances);const d=e.inject(oe,[]);return e.provide(oe,n.__vuelidateRemoveInstances),{childResults:s,sendValidationResultsToParent:l,removeValidationResultsFromParent:d}}function fe(t){return new Proxy(t,{get(r,n){return typeof r[n]=="object"?fe(r[n]):e.computed(()=>r[n])}})}let se=0;function dt(t,r){var n;let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};arguments.length===1&&(a=t,t=void 0,r=void 0);let{$registerAs:o,$scope:s=B.COLLECT_ALL,$stopPropagation:c,$externalResults:i,currentVueInstance:l}=a;const d=l||((n=e.getCurrentInstance())===null||n===void 0?void 0:n.proxy),M=d?d.$options:{};o||(se+=1,o=`_vuelidate_${se}`);const g=e.ref({}),f=new ct,{childResults:m,sendValidationResultsToParent:u,removeValidationResultsFromParent:L}=d?lt({$scope:s,instance:d}):{childResults:e.ref({})};if(!t&&M.validations){const p=M.validations;r=e.ref({}),e.onBeforeMount(()=>{r.value=d,e.watch(()=>V(p)?p.call(r.value,new fe(r.value)):p,j=>{g.value=Z({validations:j,state:r,childResults:m,resultsCache:f,globalConfig:a,instance:d,externalResults:i||d.vuelidateExternalResults})},{immediate:!0})}),a=M.validationsConfig||a}else{const p=e.isRef(t)||et(t)?t:e.reactive(t||{});e.watch(p,j=>{g.value=Z({validations:j,state:r,childResults:m,resultsCache:f,globalConfig:a,instance:d??{},externalResults:i})},{immediate:!0})}return d&&(u.forEach(p=>p(g,{$registerAs:o,$scope:s,$stopPropagation:c})),e.onBeforeUnmount(()=>L.forEach(p=>p(o)))),e.computed(()=>C(C({},e.unref(g.value)),m.value))}var v=(t=>(t.CHECKBOX="checkbox",t.TEXT="text",t.PASSWORD="password",t))(v||{});const Lt=["id","type","name","placeholder","value"],Mt=e.defineComponent({__name:"InputText",props:{type:{},error:{},id:{},label:{},name:{},placeholder:{},value:{}},emits:["change","input"],setup(t,{emit:r}){const n=r,a=s=>{n("change",s)},o=s=>{n("input",s)};return(s,c)=>(e.openBlock(),e.createElementBlock("input",e.mergeProps({id:s.id,type:s.type,name:s.name,placeholder:s.placeholder,value:s.value},s.$attrs,{onChange:a,onInput:o}),null,16,Lt))}}),pt=["id","name","checked","value"],mt=e.defineComponent({__name:"InputCheckbox",props:{defaultChecked:{type:Boolean},type:{},error:{},id:{},label:{},name:{},placeholder:{},value:{}},emits:["change"],setup(t,{emit:r}){const n=r,a=o=>{n("change",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,{onChange:a}),null,16,pt))}}),gt=["id"],ft=["for"],je=e.defineComponent({__name:"PdapInput",props:{type:{},error:{},id:{},label:{},name:{},placeholder:{},value:{},defaultChecked:{type:Boolean}},setup(t){const r=t,n=e.computed(()=>`pdap-${r.name}-input-error`);return(a,o)=>{var s;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"pdap-input":!0,[`pdap-input-${a.type}`]:!0,[`pdap-input-${a.type}-checked`]:a.type===e.unref(v).CHECKBOX&&a.value==="true","pdap-input-error":Number((s=a.error)==null?void 0:s.length)>=1})},[a.type===e.unref(v).CHECKBOX?(e.openBlock(),e.createBlock(mt,e.mergeProps({key:0,class:"pdap-input-checkbox"},{...a.$attrs,...r}),null,16)):(e.openBlock(),e.createBlock(Mt,e.normalizeProps(e.mergeProps({key:1},{...a.$attrs,...a.$props})),null,16)),a.error?(e.openBlock(),e.createElementBlock("div",{key:2,id:n.value,class:"pdap-input-error-message"},e.toDisplayString(a.error),9,gt)):e.createCommentVNode("",!0),e.createElementVNode("label",{class:"pdap-input-label",for:a.id},e.toDisplayString(a.label),9,ft)],2)}}});function ue(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,a)}return n}function O(t){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?ue(Object(n),!0).forEach(function(a){jt(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function jt(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,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 yt(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 n=R(r);return n.$params=O(O({},n.$params||{}),t),n}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 n=R(r);return n.$message=t,n}function wt(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const n=R(t);return O(O({},n),{},{$async:!0,$watchTargets:r})}function ht(t){return{$validator(r){for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];return e.unref(r).reduce((s,c,i)=>{const l=Object.entries(c).reduce((d,M)=>{let[g,f]=M;const m=t[g]||{},u=Object.entries(m).reduce((L,p)=>{let[j,h]=p;const N=I(h).call(this,f,c,i,...a),E=T(N);if(L.$data[j]=N,L.$data.$invalid=!E||!!L.$data.$invalid,L.$data.$error=L.$data.$invalid,!E){let $=h.$message||"";const Y=h.$params||{};typeof $=="function"&&($=$({$pending:!1,$invalid:!E,$params:Y,$model:f,$response:N})),L.$errors.push({$property:g,$message:$,$params:Y,$response:N,$model:f,$pending:!1,$validator:j})}return{$valid:L.$valid&&E,$data:L.$data,$errors:L.$errors}},{$valid:!0,$data:{},$errors:[]});return d.$data[g]=u.$data,d.$errors[g]=u.$errors,{$valid:d.$valid&&u.$valid,$data:d.$data,$errors:d.$errors}},{$valid:!0,$data:{},$errors:{}});return{$valid:s.$valid&&l.$valid,$data:s.$data.concat(l.$data),$errors:s.$errors.concat(l.$errors)}},{$valid:!0,$data:[],$errors:[]})},$message:r=>{let{$response:n}=r;return n?n.$errors.map(a=>Object.values(a).map(o=>o.map(s=>s.$message)).reduce((o,s)=>o.concat(s),[])):[]}}}const w=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),n=0;n<t;n++)r[n]=arguments[n];return a=>(a=e.unref(a),!w(a)||r.every(o=>(o.lastIndex=0,o.test(a))))}var k=Object.freeze({__proto__:null,forEach:ht,len:X,normalizeValidatorObject:R,regex:x,req:w,unwrap:e.unref,unwrapNormalizedValidator:I,unwrapValidatorResponse:T,withAsync:wt,withMessage:P,withParams:J}),Nt=x(/^[a-zA-Z]*$/),vt={$validator:Nt,$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 n=>!w(n)||(!/\s/.test(n)||n instanceof Date)&&+e.unref(t)<=+n&&+e.unref(r)>=+n}function Et(t,r){return{$validator:xt(t,r),$message:n=>{let{$params:a}=n;return`The value must be between ${a.min} and ${a.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 zt(t){if(!w(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 kt={$validator:zt,$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),!w(r))return!0;if(typeof r!="string")return!1;const n=typeof t=="string"&&t!==""?r.split(t):r.length===12||r.length===16?r.match(/.{2}/g):null;return n!==null&&(n.length===6||n.length===8)&&n.every(bt)}}const bt=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=>!w(r)||X(r)<=e.unref(t)}function Yt(t){return{$validator:Pt(t),$message:r=>{let{$params:n}=r;return`The maximum length allowed is ${n.max}`},$params:{max:t,type:"maxLength"}}}function Bt(t){return r=>!w(r)||X(r)>=e.unref(t)}function Vt(t){return{$validator:Bt(t),$message:r=>{let{$params:n}=r;return`This field should be at least ${n.min} characters long`},$params:{min:t,type:"minLength"}}}function Qt(t){return typeof t=="string"&&(t=t.trim()),w(t)}var q={$validator:Qt,$message:"Value is required",$params:{type:"required"}};const ie=(t,r)=>t?w(typeof r=="string"?r.trim():r):!0;function Rt(t){return function(r,n){if(typeof t!="function")return ie(e.unref(t),r);const a=t.call(this,r,n);return ie(a,r)}}function Ut(t){return{$validator:Rt(t),$message:"The value is required",$params:{type:"requiredIf",prop:t}}}const ce=(t,r)=>t?!0:w(typeof r=="string"?r.trim():r);function Ft(t){return function(r,n){if(typeof t!="function")return ce(e.unref(t),r);const a=t.call(this,r,n);return ce(a,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:n=>`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,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t.reduce((o,s)=>T(o)?o:I(s).apply(this,n),!1)}}function qt(t){return function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t.reduce(async(o,s)=>{const c=await o;return T(c)?c:I(s).apply(this,n)},Promise.resolve(!1))}}function er(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];const a=r.some(c=>c.$async),o=r.reduce((c,i)=>i.$watchTargets?c.concat(i.$watchTargets):c,[]);let s=()=>!1;return r.length&&(s=a?qt(r):Kt(r)),{$async:a,$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,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t.reduce((o,s)=>T(o)?I(s).apply(this,n):o,!0)}}function nr(t){return function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t.reduce(async(o,s)=>{const c=await o;return T(c)?I(s).apply(this,n):c},Promise.resolve(!0))}}function ar(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];const a=r.some(c=>c.$async),o=r.reduce((c,i)=>i.$watchTargets?c.concat(i.$watchTargets):c,[]);let s=()=>!1;return r.length&&(s=a?nr(r):rr(r)),{$async:a,$validator:s,$watchTargets:o}}function or(){return J({type:"and"},P("The value does not match all of the provided validators",ar(...arguments)))}function sr(t){return function(r,n){if(!w(r))return!0;const a=I(t).call(this,r,n);return yt(a)?a.then(o=>!T(o)):!T(a)}}function ur(t){return{$validator:sr(t),$message:"The value does not match the provided validator",$params:{type:"not"}}}function ir(t){return r=>!w(r)||(!/\s/.test(r)||r instanceof Date)&&+r>=+e.unref(t)}function cr(t){return{$validator:ir(t),$message:r=>{let{$params:n}=r;return`The minimum value allowed is ${n.min}`},$params:{min:t,type:"minValue"}}}function lr(t){return r=>!w(r)||(!/\s/.test(r)||r instanceof Date)&&+r<=+e.unref(t)}var dr=t=>({$validator:lr(t),$message:r=>{let{$params:n}=r;return`The maximum value allowed is ${n.max}`},$params:{max:t,type:"maxValue"}}),Lr=x(/(^[0-9]*$)|(^-[0-9]+$)/),Mr={$validator:Lr,$message:"Value is not an integer",$params:{type:"integer"}},pr=x(/^[-]?\d*(\.\d+)?$/),mr={$validator:pr,$message:"Value must be decimal",$params:{type:"decimal"}};function gr(t){let{t:r,messagePath:n=o=>{let{$validator:s}=o;return`validations.${s}`},messageParams:a=o=>o}=t;return function(s){let{withArguments:c=!1,messagePath:i=n,messageParams:l=a}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};function d(M){return r(i(M),l(O({model:M.$model,property:M.$property,pending:M.$pending,invalid:M.$invalid,response:M.$response,validator:M.$validator,propertyPath:M.$propertyPath},M.$params)))}return c&&typeof s=="function"?function(){return P(d,s(...arguments))}:P(d,s)}}const ye=Object.freeze(Object.defineProperty({__proto__:null,alpha:vt,alphaNum:Dt,and:or,between:Et,createI18nMessage:gr,decimal:mr,email:K,helpers:k,integer:Mr,ipAddress:kt,macAddress:At,maxLength:Yt,maxValue:dr,minLength:Vt,minValue:cr,not:ur,numeric:Tt,or:tr,required:q,requiredIf:Ut,requiredUnless:Wt,sameAs:Zt,url:Xt},Symbol.toStringTag,{value:"Module"})),we=k.regex(/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$ %^&*-]).{8,}$/);function le(t){return["maxLength","minLength"].includes(t)}function de(t){return t==="required"}function Le(t){return t==="email"}function Me(t){return t==="password"}function fr(t,r){return{[t]:ye[t](r)}}function jr(t,r,n){return{[t]:k.withMessage(n,ye[t](r))}}function yr(){return{required:q}}function wr(t){return{required:k.withMessage(t,q)}}function hr(){return{email:K}}function Nr(t){return{email:k.withMessage(t,K)}}function vr(){return{password:we}}function $r(t){return{password:k.withMessage(t,we)}}function Dr(t,r){if(le(t)&&typeof r.message=="string"&&typeof r.value=="number")return jr(t,r.value,r.message);if(le(t)&&typeof r.message>"u"&&typeof r.value=="number")return fr(t,r.value);if(Le(t)&&typeof r.message=="string")return Nr(r.message);if(Le(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 vr();if(de(t)&&typeof r.message=="string")return wr(r.message);if(de(t)&&typeof r.message>"u")return yr();throw new Error("No valid rule detected")}const Cr=["id","name"],Tr={key:0,class:"pdap-form-error-message"},xr={name:"PdapForm"},he=e.defineComponent({...xr,props:{error:{default:null},id:{},name:{},schema:{}},emits:["submit","change"],setup(t,{emit:r}){const n=t,a=r,o=e.computed(()=>n.schema.map(f=>{const m={...f};return delete m.validators,m})),s=e.ref(o.value.reduce((f,m)=>{switch(m.type){case v.CHECKBOX:return{...f,[m.name]:String(m.defaultChecked)};case v.TEXT:case v.PASSWORD:default:return{...f,[m.name]:m.value}}},{})),c=n.schema.reduce((f,m)=>{const u=Object.entries(m.validators??{}).reduce((L,[p,j])=>({...L,...Dr(p,j)}),{});return{...f,[m.name]:{...u}}},{}),i=dt(c,s,{$autoDirty:!1,$lazy:!0}),l=e.ref(n.error);function d(f,m){const u=m.target,L=u.type===v.CHECKBOX&&typeof u.checked=="boolean"?u.checked.toString():u.value;s.value[f]=L,M()}e.watchEffect(()=>{n.error?l.value=n.error:l.value&&i.value.$errors.length===0?l.value=null:!l.value&&i.value.$errors.length>0&&(l.value="Please update this form to correct the errors")}),e.watchEffect(()=>{});function M(){a("change",{...s.value})}async function g(f){if(await i.value.$validate()){a("submit",{...s.value}),i.value.$reset(),f.target.reset(),s.value=Object.entries(s).reduce((L,[p])=>({...L,[p]:""}),{});return}}return(f,m)=>(e.openBlock(),e.createElementBlock("form",{id:f.id,name:f.name,class:"pdap-form",onChange:M,onSubmit:m[0]||(m[0]=e.withModifiers(u=>g(u),["prevent"]))},[typeof l.value=="string"?(e.openBlock(),e.createElementBlock("div",Tr,e.toDisplayString(l.value),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,u=>{var L,p,j,h;return e.openBlock(),e.createBlock(je,e.mergeProps(u,{key:u.name,error:(L=e.unref(i)[u.name])!=null&&L.$error?(h=(j=(p=e.unref(i)[u.name])==null?void 0:p.$errors)==null?void 0:j[0])==null?void 0:h.$message:"",value:s.value[u.name],onChange:_=>d(u.name,_)}),null,16,["error","value","onChange"])}),128)),e.renderSlot(f.$slots,"default")],40,Cr))}});const Er=e.createElementVNode("svg",{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),Sr=[Er],Ir=["aria-expanded"],zr=["href"],Or={name:"PdapHeader"},Ne=e.defineComponent({...Or,props:{topPosition:{}},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 n=e.reactive({isExpanded:!1,isMobile:!0}),a=e.reactive({"pdap-nav":!0});e.onBeforeMount(()=>{o(),window.addEventListener("resize",o)}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",o)});async function o(){window.innerWidth<=1024?n.isMobile=!0:n.isMobile=!1,await e.nextTick()}async function s(){var i,l;const c=document.querySelector("body");!n.isExpanded&&n.isMobile?(n.isExpanded=!0,c!=null&&c.classList.contains("lock-scroll")||(i=document.querySelector("body"))==null||i.classList.add("lock-scroll")):n.isExpanded&&n.isMobile&&(n.isExpanded=!1,(l=document.querySelector("body"))==null||l.classList.remove("lock-scroll")),await e.nextTick()}return(c,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{"aria-controls":"nav",class:"pdap-nav-open-button",role:"button",onClick:s},Sr),e.createElementVNode("nav",{id:"nav","aria-expanded":n.isMobile&&n.isExpanded||!n.isMobile,class:e.normalizeClass(a),style:e.normalizeStyle(n.isMobile?{top:`${c.topPosition}px`}:{})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),l=>(e.openBlock(),e.createElementBlock("li",{key:l.text,class:"pdap-nav-link-container"},[l.href?(e.openBlock(),e.createElementBlock("a",{key:0,class:"pdap-nav-link",href:l.href,target:"_blank",referrerpolicy:"no-referrer",onClick:s},e.toDisplayString(l.text),9,zr)):e.createCommentVNode("",!0),l.path?(e.openBlock(),e.createBlock(e.unref(z.RouterLink),{key:1,"active-class":"pdap-nav-link-current","exact-active-class":"pdap-nav-link-current-exact",class:"pdap-nav-link",to:l.path,onClick:s},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.text),1)]),_:2},1032,["to"])):e.createCommentVNode("",!0)]))),128))],14,Ir)],64))}});const kr="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI0LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MDkuNCAxMTEuNyIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTA5LjQgMTExLjc7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHBhdGggZD0iTTAsMTAwLjhMMjYuOCwzLjJoOS4zTDkuNCwxMDAuOEgweiIvPgo8cGF0aCBkPSJNMTIzLjIsMjdoLTQuN3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My4xdi02LjZoMy4xVjY1LjloOC45djEwLjJoNC4ydjYuNmgtNC4ydjcuNGMwLDEuOSwxLDMuMiwyLjcsMy4yaDIuMnY3LjRoLTUuNlYxMDAuOHoKCSIvPgo8cG9seWdvbiBwb2ludHM9IjkxLjcsMjAuMiA3Ni4yLDIwLjIgODguNCw4IDgzLjEsMi43IDcxLjUsMTQuMyA3MS41LDAgNjQsMCA2NCwxNC4zIDUyLjMsMi43IDQ3LDggNTkuMiwyMC4yIDQzLjcsMjAuMiA0My43LDI3LjggCgk1OC4xLDI3LjggNDcsMzguOCA1Mi4zLDQ0LjEgNjQsMzIuNSA2NCw0OCA3MS41LDQ4IDcxLjUsMzIuNSA4My4xLDQ0LjEgODguNCwzOC44IDc3LjQsMjcuOCA5MS43LDI3LjggIi8+Cjwvc3ZnPgo=",_r=["href"],br=["src"],Ar=["src"],Pr={name:"PdapHeader"},Yr=e.defineComponent({...Pr,props:{logoImageSrc:{default:kr},logoImageAnchorPath:{default:"/"}},setup(t){const r=t,n=e.ref(),a=e.ref(null),o=r.logoImageAnchorPath.startsWith("/");e.onMounted(()=>{s(),window.addEventListener("resize",s)}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",s)});function s(){a.value&&(n.value=a.value.offsetHeight)}return(c,i)=>(e.openBlock(),e.createElementBlock("header",{ref_key:"el",ref:a,class:"pdap-header"},[e.unref(o)?(e.openBlock(),e.createBlock(e.unref(z.RouterLink),{key:1,to:c.logoImageAnchorPath,class:"logo"},{default:e.withCtx(()=>[e.createElementVNode("img",{src:c.logoImageSrc,loading:"lazy",width:"250",alt:"Police Data Accessibility Project Logo"},null,8,Ar)]),_:1},8,["to"])):(e.openBlock(),e.createElementBlock("a",{key:0,href:c.logoImageAnchorPath,class:"logo"},[e.createElementVNode("img",{src:c.logoImageSrc,loading:"lazy",width:"250",alt:"Police Data Accessibility Project Logo"},null,8,br)],8,_r)),e.createVNode(Ne,{"top-position":n.value},null,8,["top-position"])],512))}});const Br=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),Vr={class:"pdap-quick-search-form h-full max-h-[75-vh] justify-start p-0"},Qr={class:"max-w-[unset] text-med"},Rr=["href"],Ur=["href"],Fr={name:"QuickSearchForm"},Wr=e.defineComponent({...Fr,props:{baseUrlForRedirect:{default:"https://data-sources.pdap.io"}},setup(t){const r=z.useRouter(),n=t,a=[{id:"search-term",name:"searchTerm",label:"What are you looking for?",type:v.TEXT,placeholder:"Enter a keyword, or 'all'",value:""},{id:"location",name:"location",label:"From where?",type:v.TEXT,placeholder:"Enter a place, or 'all'",value:""}],o=e.ref(void 0),s=r.getRoutes().some(l=>l.path.includes("/search/"));function c(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:d,searchTerm:M}=l;d=d&&d.length>0?d:"all",M=M&&M.length>0?M:"all",s?r.push(`/search/${M}/${d}`):window.location.assign(`${n.baseUrlForRedirect}/search/${M}/${d}`)}return(l,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[Br,e.createElementVNode("div",Vr,[e.createVNode(he,{id:"quick-search-form",class:"flex flex-wrap gap-x-4",error:o.value,schema:a,name:"quickSearchForm",onChange:c,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",Qr,[e.createTextVNode(" For example, you could search for "),e.unref(s)?(e.openBlock(),e.createBlock(e.unref(z.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:`${n.baseUrlForRedirect}/search/stops/pittsburgh`}," stops in Pittsburgh ",8,Rr)),e.createTextVNode(" or "),e.unref(s)?(e.openBlock(),e.createBlock(e.unref(z.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:`${n.baseUrlForRedirect}/search/complaints/all`}," complaints everywhere ",8,Ur)),e.createTextVNode(" . ")])])],64))}});const Gr=["alt","src"],Zr={name:"TileIcon"},Hr=e.defineComponent({...Zr,props:{imgAltText:{},imgSrc:{}},setup(t){return(r,n)=>(e.openBlock(),e.createElementBlock("img",{class:"pdap-tile-icon",alt:r.imgAltText,src:r.imgSrc},null,8,Gr))}});var b=(t=>(t.PRESS="press",t.HOVER="hover",t))(b||{});const ve={beforeMount(t,r){const n=t;n.clickOutsideEvent=function(o){t===o.target||n.contains(o.target)||r.value(o)},document.addEventListener("click",n.clickOutsideEvent),document.addEventListener("keyup",n.clickOutsideEvent)},unmounted(t){t.clickOutsideEvent&&(document.removeEventListener("click",t.clickOutsideEvent),document.removeEventListener("keyup",t.clickOutsideEvent))}},Jr=["onKeydown"],Xr=["id","aria-hidden"],Kr={name:"PdapButton"},qr=e.defineComponent({...Kr,props:{defaultOpen:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dropdownId:{},triggerOn:{default:b.PRESS}},emits:["update:open","press"],setup(t,{emit:r}){const n=t,a=r,o=e.ref(null),s=e.ref(null),c=e.ref(n.defaultOpen),i=e.computed(()=>n.triggerOn===b.HOVER);function l(u){a("press",u),n.triggerOn===b.PRESS&&d()}const d=()=>{n.disabled||(c.value=!c.value,a("update:open",c.value))};function M(){c.value=!0,a("update:open",!0)}function g(){c.value=!1,a("update:open",!1)}function f(){var j,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"),p=(j=L==null?void 0:L.style)==null?void 0:j.getPropertyValue("--dropdown-content-max-height");Number((h=p==null?void 0:p.match(/\d+/))==null?void 0:h.join(""))>=u||o.value&&L&&L.style.setProperty("--dropdown-content-max-height",`${u+16}px`)}const m={mouseenter:i.value?M:void 0,focus:i.value?M:void 0,focusin:i.value?M:void 0,focusout:i.value?g:void 0,mouseleave:i.value?g:void 0,blur:i.value?g: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",onKeydown:e.withKeys(g,["escape"])},e.toHandlers(m,!0)),[e.createVNode(e.unref(H),{"aria-controls":u.dropdownId,"aria-expanded":c.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(l,["prevent","stop"]),onKeydown:e.withKeys(e.withModifiers(l,["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":!c.value,class:"pdap-dropdown-content","data-test":"dropdown-content",role:"menu"},[e.renderSlot(u.$slots,"content")],8,Xr),[[e.vShow,c.value]])]),_:3})],16,Jr)),[[e.unref(ve),g]])}});function en(t){const r=[];for(const n of t.matched){const{name:a,path:o,meta:s}=n,c=s.breadcrumbText??a;c&&r.push({text:c,path:o,active:!1})}return r.length>0&&(r[r.length-1].active=!0),r}const tn={"aria-label":"Breadcrumb"},rn={key:1},nn={name:"PdapBreadcrumbs"},an=e.defineComponent({...nn,setup(t){const r=z.useRoute(),n=e.computed(()=>en(r));return(a,o)=>{const s=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("nav",tn,[e.createVNode(e.TransitionGroup,{class:"pdap-breadcrumbs",name:"pdap-breadcrumbs",tag:"ul"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,c=>(e.openBlock(),e.createElementBlock("li",{key:c.text,class:e.normalizeClass({"is-active":c.active})},[c.active?(e.openBlock(),e.createElementBlock("span",rn,e.toDisplayString(c.text),1)):(e.openBlock(),e.createBlock(s,{key:0,to:c.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.text),1)]),_:2},1032,["to"]))],2))),128))]),_:1})])}}});const $e=(t,r)=>{const n=t.__vccOpts||t;for(const[a,o]of r)n[a]=o;return n},on=$e(an,[["__scopeId","data-v-ee7ae25b"]]),sn={class:"pdap-spinner"},un=["width","height"],cn=["stroke","fill"],ln=["stroke","fill"],dn={key:0,"aria-live":"polite"};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),z=require("vue-router"),Oe={name:"PdapButton"},H=e.defineComponent({...Oe,props:{intent:{default:"primary"},isLoading:{type:Boolean,default:!1}},setup(t){const r=t,n=e.reactive({"pdap-button":!0,[`pdap-button-${r.intent}`]:!!r.intent,"pdap-button-loading":r.isLoading});return(a,o)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(n)},[e.renderSlot(a.$slots,"default")],2))}});const _e=e.createElementVNode("h1",null,"Oops, something went wrong!",-1),ke=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),be={name:"ErrorBoundary"},Ae=e.defineComponent({...be,props:{component:{default:"div"},onError:{type:Function,default:void 0},params:{default:void 0}},emits:["onError"],setup(t,{emit:r}){const n=t,a=r,o=e.ref(),s=e.ref("");function c(i,d,l){var M;o.value=i,s.value=l,(M=n.onError)==null||M.call(n,i,d,l),a("onError",{error:i,vm:d,info:l})}return e.onErrorCaptured((i,d,l)=>{c(i,d,l)}),(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(()=>[_e,ke]),_:1},8,["v-bind"])):e.renderSlot(i.$slots,"default",{key:0})}}),Pe="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI0LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMTMuOCA4Ni4xIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxMTMuOCA4Ni4xOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxwYXRoIGQ9Ik0wLDgwLjlMMjEuNSwyLjZoNS4xTDUuMSw4MC45SDB6Ii8+Cjxwb2x5Z29uIHBvaW50cz0iNzguOCwyMC40IDYxLjgsMjAuNCA3NSw3LjIgNzEuMSwzLjIgNTguNCwxNS44IDU4LjQsMCA1Mi44LDAgNTIuOCwxNS44IDQwLjIsMy4yIDM2LjIsNy4yIDQ5LjUsMjAuNCAzMi41LDIwLjQgCgkzMi41LDI2IDQ4LjMsMjYgMzYuMiwzOCA0MC4yLDQyIDUyLjgsMjkuMyA1Mi44LDQ2LjMgNTguNCw0Ni4zIDU4LjQsMjkuMyA3MS4xLDQyIDc1LDM4IDYzLDI2IDc4LjgsMjYgIi8+CjxwYXRoIGQ9Ik00Mi4xLDcxLjFoLTIuNnY5LjFoLTVWNTcuM2g3LjZjNS4xLDAsOC40LDIuNCw4LjQsNi43UzQ3LjMsNzEuMSw0Mi4xLDcxLjF6IE00Mi4xLDYxLjVoLTIuNnY1LjNoMi42CgljMi4zLDAsMy4zLTAuOSwzLjMtMi43UzQ0LjMsNjEuNSw0Mi4xLDYxLjV6Ii8+CjxwYXRoIGQ9Ik02MC41LDgwLjFoLTYuOVY1Ny4zaDYuOWM2LjUsMCwxMS45LDQsMTEuOSwxMS40QzcyLjQsNzYuMiw2Ni42LDgwLjEsNjAuNSw4MC4xeiBNNjAuNSw2MS41aC0xLjl2MTQuNGgxLjkKCWM0LjMsMCw2LjctMy40LDYuNy03LjJTNjQuNSw2MS41LDYwLjUsNjEuNXoiLz4KPHBhdGggZD0iTTg4LjcsODAuMUw4Nyw3NC40aC03bC0xLjgsNS44aC01LjNsOC4yLTIyLjloNC44bDguMywyMi45aC01LjVWODAuMXogTTg0LDY0LjZjLTAuMi0wLjctMC41LTEuNi0wLjUtMS44CgljMCwwLjEtMC4yLDEtMC41LDEuOGwtMS43LDUuNmg0LjRMODQsNjQuNnoiLz4KPHBhdGggZD0iTTEwNC43LDcxLjFoLTIuNnY5LjFoLTVWNTcuM2g3LjZjNS4xLDAsOC40LDIuNCw4LjQsNi43UzEwOS44LDcxLjEsMTA0LjcsNzEuMXogTTEwNC43LDYxLjVoLTIuNnY1LjNoMi42CgljMi4zLDAsMy4zLTAuOSwzLjMtMi43UzEwNi45LDYxLjUsMTA0LjcsNjEuNXoiLz4KPC9zdmc+Cg==",Ye={class:"pdap-footer"},Be={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,n=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"}]),a=r.logoImageAnchorPath.startsWith("/");return(o,s)=>{const c=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("footer",Ye,[e.createElementVNode("div",Be,[e.createElementVNode("ul",Ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n),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(c,{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(a)?(e.openBlock(),e.createBlock(c,{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 n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,a)}return n}function C(t){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?re(Object(n),!0).forEach(function(a){qe(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function qe(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function ne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(t).reduce((n,a)=>(r.includes(a)||(n[a]=e.unref(t[a])),n),{})}function V(t){return typeof t=="function"}function et(t){return e.isReactive(t)||e.isReadonly(t)}function me(t,r,n){let a=t;const o=r.split(".");for(let s=0;s<o.length;s++){if(!a[o[s]])return n;a=a[o[s]]}return a}function G(t,r,n){return e.computed(()=>t.some(a=>me(r,a,{[n]:!1})[n]))}function ae(t,r,n){return e.computed(()=>t.reduce((a,o)=>{const s=me(r,o,{[n]:!1})[n]||[];return a.concat(s)},[]))}function ge(t,r,n,a){return t.call(a,e.unref(r),e.unref(n),a)}function fe(t){return t.$valid!==void 0?!t.$valid:!t}function tt(t,r,n,a,o,s,c){let{$lazy:i,$rewardEarly:d}=o,l=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],M=arguments.length>8?arguments[8]:void 0,g=arguments.length>9?arguments[9]:void 0,f=arguments.length>10?arguments[10]:void 0;const m=e.ref(!!a.value),u=e.ref(0);n.value=!1;const L=e.watch([r,a].concat(l,f),()=>{if(i&&!a.value||d&&!g.value&&!n.value)return;let p;try{p=ge(t,r,M,c)}catch(y){p=Promise.reject(y)}u.value++,n.value=!!u.value,m.value=!1,Promise.resolve(p).then(y=>{u.value--,n.value=!!u.value,s.value=y,m.value=fe(y)}).catch(y=>{u.value--,n.value=!!u.value,s.value=y,m.value=!0})},{immediate:!0,deep:typeof r=="object"});return{$invalid:m,$unwatch:L}}function rt(t,r,n,a,o,s,c,i){let{$lazy:d,$rewardEarly:l}=a;const M=()=>({}),g=e.computed(()=>{if(d&&!n.value||l&&!i.value)return!1;let f=!0;try{const m=ge(t,r,c,s);o.value=m,f=fe(m)}catch(m){o.value=m}return f});return{$unwatch:M,$invalid:g}}function nt(t,r,n,a,o,s,c,i,d,l,M){const g=e.ref(!1),f=t.$params||{},m=e.ref(null);let u,L;t.$async?{$invalid:u,$unwatch:L}=tt(t.$validator,r,g,n,a,m,o,t.$watchTargets,d,l,M):{$invalid:u,$unwatch:L}=rt(t.$validator,r,n,a,m,o,d,l);const p=t.$message;return{$message:V(p)?e.computed(()=>p(ne({$pending:g,$invalid:u,$params:ne(f),$model:r,$response:m,$validator:s,$propertyPath:i,$property:c}))):p||"",$params:f,$pending:g,$invalid:u,$response:m,$unwatch:L}}function at(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=e.unref(t),n=Object.keys(r),a={},o={},s={};let c=null;return n.forEach(i=>{const d=r[i];switch(!0){case V(d.$validator):a[i]=d;break;case V(d):a[i]={$validator:d};break;case i==="$validationGroups":c=d;break;case i.startsWith("$"):s[i]=d;break;default:o[i]=d}}),{rules:a,nestedValidators:o,config:s,validationGroups:c}}const ot="__root";function st(t,r,n,a,o,s,c,i,d){const l=Object.keys(t),M=a.get(o,t),g=e.ref(!1),f=e.ref(!1),m=e.ref(0);if(M){if(!M.$partial)return M;M.$unwatch(),g.value=M.$dirty.value}const u={$dirty:g,$path:o,$touch:()=>{g.value||(g.value=!0)},$reset:()=>{g.value&&(g.value=!1)},$commit:()=>{}};return l.length?(l.forEach(L=>{u[L]=nt(t[L],r,u.$dirty,s,c,L,n,o,d,f,m)}),u.$externalResults=e.computed(()=>i.value?[].concat(i.value).map((L,p)=>({$propertyPath:o,$property:n,$validator:"$externalResults",$uid:`${o}-externalResult-${p}`,$message:L,$params:{},$response:null,$pending:!1})):[]),u.$invalid=e.computed(()=>{const L=l.some(p=>e.unref(u[p].$invalid));return f.value=L,!!u.$externalResults.value.length||L}),u.$pending=e.computed(()=>l.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(()=>l.filter(L=>e.unref(u[L].$invalid)).map(L=>{const p=u[L];return e.reactive({$propertyPath:o,$property:n,$validator:L,$uid:`${o}-${L}`,$message:p.$message,$params:p.$params,$response:p.$response,$pending:p.$pending})}).concat(u.$externalResults.value)),u.$errors=e.computed(()=>u.$dirty.value?u.$silentErrors.value:[]),u.$unwatch=()=>l.forEach(L=>{u[L].$unwatch()}),u.$commit=()=>{f.value=!0,m.value=Date.now()},a.set(o,t,u),u):(M&&a.set(o,t,u),u)}function ut(t,r,n,a,o,s,c){const i=Object.keys(t);return i.length?i.reduce((d,l)=>(d[l]=Z({validations:t[l],state:r,key:l,parentKey:n,resultsCache:a,globalConfig:o,instance:s,externalResults:c}),d),{}):{}}function it(t,r,n){const a=e.computed(()=>[r,n].filter(u=>u).reduce((u,L)=>u.concat(Object.values(e.unref(L))),[])),o=e.computed({get(){return t.$dirty.value||(a.value.length?a.value.every(u=>u.$dirty):!1)},set(u){t.$dirty.value=u}}),s=e.computed(()=>{const u=e.unref(t.$silentErrors)||[],L=a.value.filter(p=>(e.unref(p).$silentErrors||[]).length).reduce((p,y)=>p.concat(...y.$silentErrors),[]);return u.concat(L)}),c=e.computed(()=>{const u=e.unref(t.$errors)||[],L=a.value.filter(p=>(e.unref(p).$errors||[]).length).reduce((p,y)=>p.concat(...y.$errors),[]);return u.concat(L)}),i=e.computed(()=>a.value.some(u=>u.$invalid)||e.unref(t.$invalid)||!1),d=e.computed(()=>a.value.some(u=>e.unref(u.$pending))||e.unref(t.$pending)||!1),l=e.computed(()=>a.value.some(u=>u.$dirty)||a.value.some(u=>u.$anyDirty)||o.value),M=e.computed(()=>o.value?d.value||i.value:!1),g=()=>{t.$touch(),a.value.forEach(u=>{u.$touch()})},f=()=>{t.$commit(),a.value.forEach(u=>{u.$commit()})},m=()=>{t.$reset(),a.value.forEach(u=>{u.$reset()})};return a.value.length&&a.value.every(u=>u.$dirty)&&g(),{$dirty:o,$errors:c,$invalid:i,$anyDirty:l,$error:M,$pending:d,$touch:g,$reset:m,$silentErrors:s,$commit:f}}function Z(t){let{validations:r,state:n,key:a,parentKey:o,childResults:s,resultsCache:c,globalConfig:i={},instance:d,externalResults:l}=t;const M=o?`${o}.${a}`:a,{rules:g,nestedValidators:f,config:m,validationGroups:u}=at(r),L=C(C({},i),m),p=a?e.computed(()=>{const j=e.unref(n);return j?e.unref(j[a]):void 0}):n,y=C({},e.unref(l)||{}),h=e.computed(()=>{const j=e.unref(l);return a?j?e.unref(j[a]):void 0:j}),k=st(g,p,a,c,M,L,d,h,n),N=ut(f,p,M,c,L,d,h),E={};u&&Object.entries(u).forEach(j=>{let[S,D]=j;E[S]={$invalid:G(D,N,"$invalid"),$error:G(D,N,"$error"),$pending:G(D,N,"$pending"),$errors:ae(D,N,"$errors"),$silentErrors:ae(D,N,"$silentErrors")}});const{$dirty:$,$errors:Y,$invalid:U,$anyDirty:De,$error:Ce,$pending:F,$touch:W,$reset:Te,$silentErrors:xe,$commit:te}=it(k,N,s),Ee=a?e.computed({get:()=>e.unref(p),set:j=>{$.value=!0;const S=e.unref(n),D=e.unref(l);D&&(D[a]=y[a]),e.isRef(S[a])?S[a].value=j:S[a]=j}}):null;a&&L.$autoDirty&&e.watch(p,()=>{$.value||W();const j=e.unref(l);j&&(j[a]=y[a])},{flush:"sync"});async function Se(){return W(),L.$rewardEarly&&(te(),await e.nextTick()),await e.nextTick(),new Promise(j=>{if(!F.value)return j(!U.value);const S=e.watch(F,()=>{j(!U.value),S()})})}function Ie(j){return(s.value||{})[j]}function ze(){e.isRef(l)?l.value=y:Object.keys(y).length===0?Object.keys(l).forEach(j=>{delete l[j]}):Object.assign(l,y)}return e.reactive(C(C(C({},k),{},{$model:Ee,$dirty:$,$error:Ce,$errors:Y,$invalid:U,$anyDirty:De,$pending:F,$touch:W,$reset:Te,$path:M||ot,$silentErrors:xe,$validate:Se,$commit:te},s&&{$getResultsForChild:Ie,$clearExternalResults:ze,$validationGroups:E}),N))}class ct{constructor(){this.storage=new Map}set(r,n,a){this.storage.set(r,{rules:n,result:a})}checkRulesValidity(r,n,a){const o=Object.keys(a),s=Object.keys(n);return s.length!==o.length||!s.every(i=>o.includes(i))?!1:s.every(i=>n[i].$params?Object.keys(n[i].$params).every(d=>e.unref(a[i].$params[d])===e.unref(n[i].$params[d])):!0)}get(r,n){const a=this.storage.get(r);if(!a)return;const{rules:o,result:s}=a,c=this.checkRulesValidity(r,n,o),i=s.$unwatch?s.$unwatch:()=>({});return c?s:{$dirty:s.$dirty,$partial:!0,$unwatch:i}}}const B={COLLECT_ALL:!0,COLLECT_NONE:!1},oe=Symbol("vuelidate#injectChildResults"),se=Symbol("vuelidate#removeChildResults");function lt(t){let{$scope:r,instance:n}=t;const a={},o=e.ref([]),s=e.computed(()=>o.value.reduce((M,g)=>(M[g]=e.unref(a[g]),M),{}));function c(M,g){let{$registerAs:f,$scope:m,$stopPropagation:u}=g;u||r===B.COLLECT_NONE||m===B.COLLECT_NONE||r!==B.COLLECT_ALL&&r!==m||(a[f]=M,o.value.push(f))}n.__vuelidateInjectInstances=[].concat(n.__vuelidateInjectInstances||[],c);function i(M){o.value=o.value.filter(g=>g!==M),delete a[M]}n.__vuelidateRemoveInstances=[].concat(n.__vuelidateRemoveInstances||[],i);const d=e.inject(oe,[]);e.provide(oe,n.__vuelidateInjectInstances);const l=e.inject(se,[]);return e.provide(se,n.__vuelidateRemoveInstances),{childResults:s,sendValidationResultsToParent:d,removeValidationResultsFromParent:l}}function ye(t){return new Proxy(t,{get(r,n){return typeof r[n]=="object"?ye(r[n]):e.computed(()=>r[n])}})}let ue=0;function dt(t,r){var n;let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};arguments.length===1&&(a=t,t=void 0,r=void 0);let{$registerAs:o,$scope:s=B.COLLECT_ALL,$stopPropagation:c,$externalResults:i,currentVueInstance:d}=a;const l=d||((n=e.getCurrentInstance())===null||n===void 0?void 0:n.proxy),M=l?l.$options:{};o||(ue+=1,o=`_vuelidate_${ue}`);const g=e.ref({}),f=new ct,{childResults:m,sendValidationResultsToParent:u,removeValidationResultsFromParent:L}=l?lt({$scope:s,instance:l}):{childResults:e.ref({})};if(!t&&M.validations){const p=M.validations;r=e.ref({}),e.onBeforeMount(()=>{r.value=l,e.watch(()=>V(p)?p.call(r.value,new ye(r.value)):p,y=>{g.value=Z({validations:y,state:r,childResults:m,resultsCache:f,globalConfig:a,instance:l,externalResults:i||l.vuelidateExternalResults})},{immediate:!0})}),a=M.validationsConfig||a}else{const p=e.isRef(t)||et(t)?t:e.reactive(t||{});e.watch(p,y=>{g.value=Z({validations:y,state:r,childResults:m,resultsCache:f,globalConfig:a,instance:l??{},externalResults:i})},{immediate:!0})}return l&&(u.forEach(p=>p(g,{$registerAs:o,$scope:s,$stopPropagation:c})),e.onBeforeUnmount(()=>L.forEach(p=>p(o)))),e.computed(()=>C(C({},e.unref(g.value)),m.value))}var v=(t=>(t.CHECKBOX="checkbox",t.TEXT="text",t.PASSWORD="password",t))(v||{});const Lt=["id","type","name","placeholder","value"],Mt=e.defineComponent({__name:"InputText",props:{type:{},error:{},id:{},label:{},name:{},placeholder:{},value:{}},emits:["change","input"],setup(t,{emit:r}){const n=r,a=s=>{n("change",s)},o=s=>{n("input",s)};return(s,c)=>(e.openBlock(),e.createElementBlock("input",e.mergeProps({id:s.id,type:s.type,name:s.name,placeholder:s.placeholder,value:s.value},s.$attrs,{onChange:a,onInput:o}),null,16,Lt))}}),pt=["id","name","checked","value"],mt=e.defineComponent({__name:"InputCheckbox",props:{defaultChecked:{type:Boolean},type:{},error:{},id:{},label:{},name:{},placeholder:{},value:{}},emits:["change"],setup(t,{emit:r}){const n=r,a=o=>{n("change",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,{onChange:a}),null,16,pt))}}),gt=["id"],ft=["for"],je=e.defineComponent({__name:"PdapInput",props:{type:{},error:{},id:{},label:{},name:{},placeholder:{},value:{},defaultChecked:{type:Boolean}},setup(t){const r=t,n=e.computed(()=>`pdap-${r.name}-input-error`);return(a,o)=>{var s;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"pdap-input":!0,[`pdap-input-${a.type}`]:!0,[`pdap-input-${a.type}-checked`]:a.type===e.unref(v).CHECKBOX&&a.value==="true","pdap-input-error":Number((s=a.error)==null?void 0:s.length)>=1})},[a.type===e.unref(v).CHECKBOX?(e.openBlock(),e.createBlock(mt,e.mergeProps({key:0,class:"pdap-input-checkbox"},{...a.$attrs,...r}),null,16)):(e.openBlock(),e.createBlock(Mt,e.normalizeProps(e.mergeProps({key:1},{...a.$attrs,...a.$props})),null,16)),a.error?(e.openBlock(),e.createElementBlock("div",{key:2,id:n.value,class:"pdap-input-error-message"},e.toDisplayString(a.error),9,gt)):e.createCommentVNode("",!0),e.createElementVNode("label",{class:"pdap-input-label",for:a.id},e.toDisplayString(a.label),9,ft)],2)}}});function ie(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,a)}return n}function O(t){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?ie(Object(n),!0).forEach(function(a){yt(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function yt(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,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 jt(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 n=R(r);return n.$params=O(O({},n.$params||{}),t),n}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 n=R(r);return n.$message=t,n}function wt(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const n=R(t);return O(O({},n),{},{$async:!0,$watchTargets:r})}function ht(t){return{$validator(r){for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];return e.unref(r).reduce((s,c,i)=>{const d=Object.entries(c).reduce((l,M)=>{let[g,f]=M;const m=t[g]||{},u=Object.entries(m).reduce((L,p)=>{let[y,h]=p;const N=I(h).call(this,f,c,i,...a),E=T(N);if(L.$data[y]=N,L.$data.$invalid=!E||!!L.$data.$invalid,L.$data.$error=L.$data.$invalid,!E){let $=h.$message||"";const Y=h.$params||{};typeof $=="function"&&($=$({$pending:!1,$invalid:!E,$params:Y,$model:f,$response:N})),L.$errors.push({$property:g,$message:$,$params:Y,$response:N,$model:f,$pending:!1,$validator:y})}return{$valid:L.$valid&&E,$data:L.$data,$errors:L.$errors}},{$valid:!0,$data:{},$errors:[]});return l.$data[g]=u.$data,l.$errors[g]=u.$errors,{$valid:l.$valid&&u.$valid,$data:l.$data,$errors:l.$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:n}=r;return n?n.$errors.map(a=>Object.values(a).map(o=>o.map(s=>s.$message)).reduce((o,s)=>o.concat(s),[])):[]}}}const w=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),n=0;n<t;n++)r[n]=arguments[n];return a=>(a=e.unref(a),!w(a)||r.every(o=>(o.lastIndex=0,o.test(a))))}var _=Object.freeze({__proto__:null,forEach:ht,len:X,normalizeValidatorObject:R,regex:x,req:w,unwrap:e.unref,unwrapNormalizedValidator:I,unwrapValidatorResponse:T,withAsync:wt,withMessage:P,withParams:J}),Nt=x(/^[a-zA-Z]*$/),vt={$validator:Nt,$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 n=>!w(n)||(!/\s/.test(n)||n instanceof Date)&&+e.unref(t)<=+n&&+e.unref(r)>=+n}function Et(t,r){return{$validator:xt(t,r),$message:n=>{let{$params:a}=n;return`The value must be between ${a.min} and ${a.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 zt(t){if(!w(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 _t={$validator:zt,$message:"The value is not a valid IP address",$params:{type:"ipAddress"}};function kt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:":";return r=>{if(t=e.unref(t),!w(r))return!0;if(typeof r!="string")return!1;const n=typeof t=="string"&&t!==""?r.split(t):r.length===12||r.length===16?r.match(/.{2}/g):null;return n!==null&&(n.length===6||n.length===8)&&n.every(bt)}}const bt=t=>t.toLowerCase().match(/^[0-9a-f]{2}$/);function At(t){return{$validator:kt(t),$message:"The value is not a valid MAC Address",$params:{type:"macAddress"}}}function Pt(t){return r=>!w(r)||X(r)<=e.unref(t)}function Yt(t){return{$validator:Pt(t),$message:r=>{let{$params:n}=r;return`The maximum length allowed is ${n.max}`},$params:{max:t,type:"maxLength"}}}function Bt(t){return r=>!w(r)||X(r)>=e.unref(t)}function Vt(t){return{$validator:Bt(t),$message:r=>{let{$params:n}=r;return`This field should be at least ${n.min} characters long`},$params:{min:t,type:"minLength"}}}function Qt(t){return typeof t=="string"&&(t=t.trim()),w(t)}var q={$validator:Qt,$message:"Value is required",$params:{type:"required"}};const ce=(t,r)=>t?w(typeof r=="string"?r.trim():r):!0;function Rt(t){return function(r,n){if(typeof t!="function")return ce(e.unref(t),r);const a=t.call(this,r,n);return ce(a,r)}}function Ut(t){return{$validator:Rt(t),$message:"The value is required",$params:{type:"requiredIf",prop:t}}}const le=(t,r)=>t?!0:w(typeof r=="string"?r.trim():r);function Ft(t){return function(r,n){if(typeof t!="function")return le(e.unref(t),r);const a=t.call(this,r,n);return le(a,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:n=>`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,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t.reduce((o,s)=>T(o)?o:I(s).apply(this,n),!1)}}function qt(t){return function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t.reduce(async(o,s)=>{const c=await o;return T(c)?c:I(s).apply(this,n)},Promise.resolve(!1))}}function er(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];const a=r.some(c=>c.$async),o=r.reduce((c,i)=>i.$watchTargets?c.concat(i.$watchTargets):c,[]);let s=()=>!1;return r.length&&(s=a?qt(r):Kt(r)),{$async:a,$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,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t.reduce((o,s)=>T(o)?I(s).apply(this,n):o,!0)}}function nr(t){return function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t.reduce(async(o,s)=>{const c=await o;return T(c)?I(s).apply(this,n):c},Promise.resolve(!0))}}function ar(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];const a=r.some(c=>c.$async),o=r.reduce((c,i)=>i.$watchTargets?c.concat(i.$watchTargets):c,[]);let s=()=>!1;return r.length&&(s=a?nr(r):rr(r)),{$async:a,$validator:s,$watchTargets:o}}function or(){return J({type:"and"},P("The value does not match all of the provided validators",ar(...arguments)))}function sr(t){return function(r,n){if(!w(r))return!0;const a=I(t).call(this,r,n);return jt(a)?a.then(o=>!T(o)):!T(a)}}function ur(t){return{$validator:sr(t),$message:"The value does not match the provided validator",$params:{type:"not"}}}function ir(t){return r=>!w(r)||(!/\s/.test(r)||r instanceof Date)&&+r>=+e.unref(t)}function cr(t){return{$validator:ir(t),$message:r=>{let{$params:n}=r;return`The minimum value allowed is ${n.min}`},$params:{min:t,type:"minValue"}}}function lr(t){return r=>!w(r)||(!/\s/.test(r)||r instanceof Date)&&+r<=+e.unref(t)}var dr=t=>({$validator:lr(t),$message:r=>{let{$params:n}=r;return`The maximum value allowed is ${n.max}`},$params:{max:t,type:"maxValue"}}),Lr=x(/(^[0-9]*$)|(^-[0-9]+$)/),Mr={$validator:Lr,$message:"Value is not an integer",$params:{type:"integer"}},pr=x(/^[-]?\d*(\.\d+)?$/),mr={$validator:pr,$message:"Value must be decimal",$params:{type:"decimal"}};function gr(t){let{t:r,messagePath:n=o=>{let{$validator:s}=o;return`validations.${s}`},messageParams:a=o=>o}=t;return function(s){let{withArguments:c=!1,messagePath:i=n,messageParams:d=a}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};function l(M){return r(i(M),d(O({model:M.$model,property:M.$property,pending:M.$pending,invalid:M.$invalid,response:M.$response,validator:M.$validator,propertyPath:M.$propertyPath},M.$params)))}return c&&typeof s=="function"?function(){return P(l,s(...arguments))}:P(l,s)}}const we=Object.freeze(Object.defineProperty({__proto__:null,alpha:vt,alphaNum:Dt,and:or,between:Et,createI18nMessage:gr,decimal:mr,email:K,helpers:_,integer:Mr,ipAddress:_t,macAddress:At,maxLength:Yt,maxValue:dr,minLength:Vt,minValue:cr,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 Me(t){return t==="email"}function pe(t){return t==="password"}function fr(t,r){return{[t]:we[t](r)}}function yr(t,r,n){return{[t]:_.withMessage(n,we[t](r))}}function jr(){return{required:q}}function wr(t){return{required:_.withMessage(t,q)}}function hr(){return{email:K}}function Nr(t){return{email:_.withMessage(t,K)}}function vr(){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(Me(t)&&typeof r.message=="string")return Nr(r.message);if(Me(t)&&typeof r.message>"u")return hr();if(pe(t)&&typeof r.message=="string")return $r(r.message);if(pe(t)&&typeof r.message>"u")return vr();if(Le(t)&&typeof r.message=="string")return wr(r.message);if(Le(t)&&typeof r.message>"u")return jr();throw new Error("No valid rule detected")}const Cr=["id","name"],Tr={key:0,class:"pdap-form-error-message"},xr={name:"PdapForm"},Ne=e.defineComponent({...xr,props:{error:{default:null},id:{},name:{},schema:{}},emits:["submit","change"],setup(t,{emit:r}){const n=t,a=r,o=e.computed(()=>n.schema.map(f=>{const m={...f};return delete m.validators,m})),s=e.ref(o.value.reduce((f,m)=>{switch(m.type){case v.CHECKBOX:return{...f,[m.name]:String(m.defaultChecked)};case v.TEXT:case v.PASSWORD:default:return{...f,[m.name]:m.value}}},{})),c=n.schema.reduce((f,m)=>{const u=Object.entries(m.validators??{}).reduce((L,[p,y])=>({...L,...Dr(p,y)}),{});return{...f,[m.name]:{...u}}},{}),i=dt(c,s,{$autoDirty:!1,$lazy:!0}),d=e.ref(n.error);function l(f,m){const u=m.target,L=u.type===v.CHECKBOX&&typeof u.checked=="boolean"?u.checked.toString():u.value;s.value[f]=L,M()}e.watchEffect(()=>{n.error?d.value=n.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(()=>{});function M(){a("change",{...s.value})}async function g(f){if(await i.value.$validate()){a("submit",{...s.value}),i.value.$reset(),f.target.reset(),s.value=Object.entries(s).reduce((L,[p])=>({...L,[p]:""}),{});return}}return(f,m)=>(e.openBlock(),e.createElementBlock("form",{id:f.id,name:f.name,class:"pdap-form",onChange:M,onSubmit:m[0]||(m[0]=e.withModifiers(u=>g(u),["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,p,y,h;return e.openBlock(),e.createBlock(je,e.mergeProps(u,{key:u.name,error:(L=e.unref(i)[u.name])!=null&&L.$error?(h=(y=(p=e.unref(i)[u.name])==null?void 0:p.$errors)==null?void 0:y[0])==null?void 0:h.$message:"",value:s.value[u.name],onChange:k=>l(u.name,k)}),null,16,["error","value","onChange"])}),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)),zr=[Ir],Or=["aria-hidden"],_r=["href"],kr={name:"PdapHeader"},br=e.defineComponent({...kr,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 n=e.reactive({isExpanded:!1,isMobile:!0});e.onBeforeMount(()=>{a(),window.addEventListener("resize",a)}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",a)});async function a(){window.innerWidth<=1024?n.isMobile=!0:n.isMobile=!1,await e.nextTick()}async function o(){var c,i;const s=document.querySelector("body");!n.isExpanded&&n.isMobile?(n.isExpanded=!0,s!=null&&s.classList.contains("lock-scroll")||(c=document.querySelector("body"))==null||c.classList.add("lock-scroll")):n.isExpanded&&n.isMobile&&(n.isExpanded=!1,(i=document.querySelector("body"))==null||i.classList.remove("lock-scroll")),await e.nextTick()}return(s,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{"aria-label":n.isExpanded?"close navigation menu":"open navigation menu","aria-expanded":n.isMobile&&n.isExpanded,"aria-controls":"nav",class:"pdap-nav-open-button",role:"button",tabindex:0,onClick:o,onKeyup:e.withKeys(o,["enter"])},zr,40,Sr),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("nav",{id:"nav","aria-hidden":!(n.isMobile&&n.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,_r)):e.createCommentVNode("",!0),i.path?(e.openBlock(),e.createBlock(e.unref(z.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,n.isMobile&&n.isExpanded||!n.isMobile]])]),_:1})],64))}});const ee=(t,r)=>{const n=t.__vccOpts||t;for(const[a,o]of r)n[a]=o;return n},ve=ee(br,[["__scopeId","data-v-3158c5fc"]]),Ar="data:image/svg+xml;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e.defineComponent({...Vr,props:{logoImageSrc:{default:Ar},logoImageAnchorPath:{default:"/"}},setup(t){const r=t,n=e.ref(null),a=r.logoImageAnchorPath.startsWith("/");e.onMounted(()=>{console.debug("on mounted"),o(),window.addEventListener("resize",o)}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",o)});function o(){var s;n.value&&((s=document.querySelector(":root"))==null||s.style.setProperty("--header-height",`${n.value.clientHeight}px`))}return(s,c)=>(e.openBlock(),e.createElementBlock("header",{ref_key:"el",ref:n,class:"pdap-header"},[e.unref(a)?(e.openBlock(),e.createBlock(e.unref(z.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,Br)]),_: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,Yr)],8,Pr)),e.createVNode(ve)],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=z.useRouter(),n=t,a=[{id:"search-term",name:"searchTerm",label:"What are you looking for?",type:v.TEXT,placeholder:"Enter a keyword, or 'all'",value:""},{id:"location",name:"location",label:"From where?",type:v.TEXT,placeholder:"Enter a place, or 'all'",value:""}],o=e.ref(void 0),s=r.getRoutes().some(d=>d.path.includes("/search/"));function c(d){o.value&&Object.values(d).some(Boolean)&&(o.value=void 0)}function i(d){if(Object.values(d).every(g=>!g)){o.value="Either a search term or a location is required.";return}let{location:l,searchTerm:M}=d;l=l&&l.length>0?l:"all",M=M&&M.length>0?M:"all",s?r.push(`/search/${M}/${l}`):window.location.assign(`${n.baseUrlForRedirect}/search/${M}/${l}`)}return(d,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[Rr,e.createElementVNode("div",Ur,[e.createVNode(Ne,{id:"quick-search-form",class:"flex flex-wrap gap-x-4",error:o.value,schema:a,name:"quickSearchForm",onChange:c,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(z.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:`${n.baseUrlForRedirect}/search/stops/pittsburgh`}," stops in Pittsburgh ",8,Wr)),e.createTextVNode(" or "),e.unref(s)?(e.openBlock(),e.createBlock(e.unref(z.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:`${n.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,n)=>(e.openBlock(),e.createElementBlock("img",{class:"pdap-tile-icon",alt:r.imgAltText,src:r.imgSrc},null,8,Jr))}});var b=(t=>(t.PRESS="press",t.HOVER="hover",t))(b||{});const $e={beforeMount(t,r){const n=t;n.clickOutsideEvent=function(o){t===o.target||n.contains(o.target)||r.value(o)},document.addEventListener("click",n.clickOutsideEvent),document.addEventListener("keyup",n.clickOutsideEvent)},unmounted(t){t.clickOutsideEvent&&(document.removeEventListener("click",t.clickOutsideEvent),document.removeEventListener("keyup",t.clickOutsideEvent))}},qr=["onKeydown"],en=["id","aria-hidden"],tn={name:"PdapButton"},rn=e.defineComponent({...tn,props:{defaultOpen:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dropdownId:{},triggerOn:{default:b.PRESS}},emits:["update:open","press"],setup(t,{emit:r}){const n=t,a=r,o=e.ref(null),s=e.ref(null),c=e.ref(n.defaultOpen),i=e.computed(()=>n.triggerOn===b.HOVER);function d(u){a("press",u),n.triggerOn===b.PRESS&&l()}const l=()=>{n.disabled||(c.value=!c.value,a("update:open",c.value))};function M(){c.value=!0,a("update:open",!0)}function g(){c.value=!1,a("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"),p=(y=L==null?void 0:L.style)==null?void 0:y.getPropertyValue("--dropdown-content-max-height");Number((h=p==null?void 0:p.match(/\d+/))==null?void 0:h.join(""))>=u||o.value&&L&&L.style.setProperty("--dropdown-content-max-height",`${u+16}px`)}const m={mouseenter:i.value?M:void 0,focus:i.value?M:void 0,focusin:i.value?M:void 0,focusout:i.value?g:void 0,mouseleave:i.value?g:void 0,blur:i.value?g: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(g,["escape"])},e.toHandlers(m,!0)),[e.createVNode(e.unref(H),{"aria-controls":u.dropdownId,"aria-expanded":c.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":!c.value,class:"pdap-dropdown-content","data-test":"dropdown-content",role:"menu"},[e.renderSlot(u.$slots,"content")],8,en),[[e.vShow,c.value]])]),_:3})],16,qr)),[[e.unref($e),g]])}});function nn(t){const r=[];for(const n of t.matched){const{name:a,path:o,meta:s}=n,c=s.breadcrumbText??a;c&&r.push({text:c,path:o,active:!1})}return r.length>0&&(r[r.length-1].active=!0),r}const an={"aria-label":"Breadcrumb"},on={key:1},sn={name:"PdapBreadcrumbs"},un=e.defineComponent({...sn,setup(t){const r=z.useRoute(),n=e.computed(()=>nn(r));return(a,o)=>{const s=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("nav",an,[e.createVNode(e.TransitionGroup,{class:"pdap-breadcrumbs",tag:"ul"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,c=>(e.openBlock(),e.createElementBlock("li",{key:c.text,class:e.normalizeClass({"is-active":c.active})},[c.active?(e.openBlock(),e.createElementBlock("span",on,e.toDisplayString(c.text),1)):(e.openBlock(),e.createBlock(s,{key:0,to:c.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.text),1)]),_:2},1032,["to"]))],2))),128))]),_:1})])}}});const cn=ee(un,[["__scopeId","data-v-e8d76c0f"]]),ln={class:"pdap-spinner"},dn=["width","height"],Ln=["stroke","fill"],Mn=["stroke","fill"],pn={key:0,"aria-live":"polite"};/**
3
3
  * # `Spinner`
4
4
  * Loading spinner component
5
5
  *
6
6
  * @preserve
7
- */const Ln={name:"PdapSpinner"},Mn=e.defineComponent({...Ln,props:{color:{default:"currentColor"},size:{default:24},text:{default:""},show:{type:Boolean,default:!1}},setup(t){return(r,n)=>(e.openBlock(),e.createElementBlock("div",sn,[e.createVNode(e.Transition,{appear:""},{default:e.withCtx(()=>[r.show?(e.openBlock(),e.createElementBlock("svg",{key:0,width:r.size,height:r.size,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z",opacity:".25",stroke:r.color,fill:r.color},null,8,cn),e.createElementVNode("path",{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",class:"pdap-spinner-innards",stroke:r.color,fill:r.color},null,8,ln)],8,un)):e.createCommentVNode("",!0)]),_:1}),(e.openBlock(),e.createBlock(e.Transition,{key:r.text,appear:"",mode:"out-in"},{default:e.withCtx(()=>[r.text&&r.show?(e.openBlock(),e.createElementBlock("p",dn,e.toDisplayString(r.text),1)):e.createCommentVNode("",!0)]),_:1}))]))}});const pn=$e(Mn,[["__scopeId","data-v-215ea644"]]);const mn={content:["./src/**/*.vue","./src/**/*.css"],theme:{extend:{colors:{brand:{blue:{light:"rgba(var(--color-brand-blue-light)/<alpha-value>)",medium:"rgba(var(--color-brand-blue-medium)/<alpha-value>)"},gold:"rgba(var(--color-brand-gold)/<alpha-value>)",wine:"rgba(var(--color-brand-wine)/<alpha-value>)"},neutral:{50:"rgba(var(--color-neutral-50)/<alpha-value>)",100:"rgba(var(--color-neutral-100)/<alpha-value>)",200:"rgba(var(--color-neutral-200)/<alpha-value>)",300:"rgba(var(--color-neutral-300)/<alpha-value>)",400:"rgba(var(--color-neutral-400)/<alpha-value>)",500:"rgba(var(--color-neutral-500)/<alpha-value>)",600:"rgba(var(--color-neutral-600)/<alpha-value>)",700:"rgba(var(--color-neutral-700)/<alpha-value>)",800:"rgba(var(--color-neutral-800)/<alpha-value>)",900:"rgba(var(--color-neutral-900)/<alpha-value>)",950:"rgba(var(--color-neutral-950)/<alpha-value>)"}},brightness:{85:".85"},maxWidth:{"4xl":"59rem"},screens:{xs:"500px"}},fontFamily:{sans:['"Libre Franklin"',"ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto","Oxygen","Ubuntu","Cantarell",'"Fira Sans"','"Droid Sans"','"Helvetica Neue"',"sans-serif"],serif:["ui-serif","Georgia"],mono:['"Source Code Pro"',"monospace","ui-monospace","SFMono-Regular"]},fontSize:{xs:"0.75rem",sm:"0.875rem",med:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.75rem","4xl":"2rem","5xl":"2.625rem","6xl":"3rem"}}};exports.Breadcrumbs=on;exports.Button=H;exports.Dropdown=qr;exports.ErrorBoundary=Ae;exports.Footer=Ke;exports.Form=he;exports.Header=Yr;exports.Input=je;exports.Nav=Ne;exports.PdapDropdownTriggerType=b;exports.PdapInputTypes=v;exports.QuickSearchForm=Wr;exports.Spinner=pn;exports.TileIcon=Hr;exports.tailwindConfig=mn;exports.vOnClickOutside=ve;
7
+ */const mn={name:"PdapSpinner"},gn=e.defineComponent({...mn,props:{color:{default:"currentColor"},size:{default:24},text:{default:""},show:{type:Boolean,default:!1}},setup(t){return(r,n)=>(e.openBlock(),e.createElementBlock("div",ln,[e.createVNode(e.Transition,{appear:""},{default:e.withCtx(()=>[r.show?(e.openBlock(),e.createElementBlock("svg",{key:0,"aria-label":"loading",width:r.size,height:r.size,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z",opacity:".25",stroke:r.color,fill:r.color},null,8,Ln),e.createElementVNode("path",{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",class:"pdap-spinner-innards",stroke:r.color,fill:r.color},null,8,Mn)],8,dn)):e.createCommentVNode("",!0)]),_:1}),(e.openBlock(),e.createBlock(e.Transition,{key:r.text,appear:"",mode:"out-in"},{default:e.withCtx(()=>[r.text&&r.show?(e.openBlock(),e.createElementBlock("p",pn,e.toDisplayString(r.text),1)):e.createCommentVNode("",!0)]),_:1}))]))}});const fn=ee(gn,[["__scopeId","data-v-079c81b7"]]);const yn={content:["./src/**/*.vue","./src/**/*.css"],theme:{extend:{colors:{brand:{blue:{light:"rgba(var(--color-brand-blue-light)/<alpha-value>)",medium:"rgba(var(--color-brand-blue-medium)/<alpha-value>)"},gold:"rgba(var(--color-brand-gold)/<alpha-value>)",wine:"rgba(var(--color-brand-wine)/<alpha-value>)"},neutral:{50:"rgba(var(--color-neutral-50)/<alpha-value>)",100:"rgba(var(--color-neutral-100)/<alpha-value>)",200:"rgba(var(--color-neutral-200)/<alpha-value>)",300:"rgba(var(--color-neutral-300)/<alpha-value>)",400:"rgba(var(--color-neutral-400)/<alpha-value>)",500:"rgba(var(--color-neutral-500)/<alpha-value>)",600:"rgba(var(--color-neutral-600)/<alpha-value>)",700:"rgba(var(--color-neutral-700)/<alpha-value>)",800:"rgba(var(--color-neutral-800)/<alpha-value>)",900:"rgba(var(--color-neutral-900)/<alpha-value>)",950:"rgba(var(--color-neutral-950)/<alpha-value>)"}},brightness:{85:".85"},maxWidth:{"4xl":"59rem"},screens:{xs:"500px"}},fontFamily:{sans:['"Libre Franklin"',"ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto","Oxygen","Ubuntu","Cantarell",'"Fira Sans"','"Droid Sans"','"Helvetica Neue"',"sans-serif"],serif:["ui-serif","Georgia"],mono:['"Source Code Pro"',"monospace","ui-monospace","SFMono-Regular"]},fontSize:{xs:"0.75rem",sm:"0.875rem",med:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.75rem","4xl":"2rem","5xl":"2.625rem","6xl":"3rem"}}},jn={extends:["stylelint-config-standard","@ronilaukkarinen/stylelint-a11y/recommended"],rules:{"at-rule-no-unknown":[!0,{ignoreAtRules:["tailwind","apply","variants","responsive","screen"]}],"comment-empty-line-before":null,"declaration-block-trailing-semicolon":null,"no-descending-specificity":null,"a11y/no-text-align-justify":!0,"a11y/font-size-is-readable":!0,"a11y/media-prefers-color-scheme":!0,"a11y/line-height-is-vertical-rhythmed":!0,"a11y/no-display-none":!0,"a11y/no-obsolete-element":!0},overrides:[{files:["**/*.vue"],extends:["stylelint-config-standard-vue"]}]};exports.Breadcrumbs=cn;exports.Button=H;exports.Dropdown=rn;exports.ErrorBoundary=Ae;exports.Footer=Ke;exports.Form=Ne;exports.Header=Qr;exports.Input=je;exports.Nav=ve;exports.PdapDropdownTriggerType=b;exports.PdapInputTypes=v;exports.QuickSearchForm=Hr;exports.Spinner=fn;exports.TileIcon=Kr;exports.stylelintConfig=jn;exports.tailwindConfig=yn;exports.vOnClickOutside=$e;