pdap-design-system 2.0.2 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  import { PdapFormProps } from './types';
2
- declare const v$: import("vue").Ref<import("@vuelidate/core").Validation<{}, Record<string, unknown>>>;
2
+ declare const v$: import("vue").Ref<import("@vuelidate/core").Validation<{}, Record<string, string>>>;
3
3
  export type VuelidateInstance = typeof v$.value;
4
4
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PdapFormProps>, {
5
5
  error: null;
@@ -1,4 +1,4 @@
1
- import { PdapInputCheckboxProps, PdapInputTextProps } from '../Input/types';
1
+ import { PdapInputBaseProps } from '../Input/types';
2
2
  export type PdapLengthRules = 'maxLength' | 'minLength';
3
3
  export interface PdapFormValidator<T> {
4
4
  message?: string;
@@ -15,14 +15,10 @@ export interface PdapFormValidators {
15
15
  minLength: PdapFormValidator<number>;
16
16
  required: PdapFormValidator<boolean>;
17
17
  }
18
- export interface PdapFormSchemaEntryInputCheckbox extends PdapInputCheckboxProps {
18
+ export interface PdapFormInputProps extends Exclude<PdapInputBaseProps, 'error'> {
19
19
  validators?: Partial<PdapFormValidators>;
20
20
  }
21
- export interface PdapFormSchemaEntryInputText extends PdapInputTextProps {
22
- validators?: Partial<PdapFormValidators>;
23
- }
24
- export type PdapFormSchemaEntry = PdapFormSchemaEntryInputCheckbox | PdapFormSchemaEntryInputText;
25
- export type PdapFormSchema = PdapFormSchemaEntry[];
21
+ export type PdapFormSchema = PdapFormInputProps[];
26
22
  export type PdapFormData = Record<string, unknown>;
27
23
  /**
28
24
  * PDAP Form props interface.
@@ -1,7 +1,11 @@
1
1
  import { PdapInputBaseProps } from './types';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<PdapInputBaseProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PdapInputBaseProps>>>, {}, {}>, {
3
- default?(_: {}): any;
4
- }>;
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PdapInputBaseProps>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ change: (val: string) => void;
4
+ input: (val: string) => void;
5
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PdapInputBaseProps>, {}>>> & {
6
+ onChange?: ((val: string) => any) | undefined;
7
+ onInput?: ((val: string) => any) | undefined;
8
+ }, {}, {}>;
5
9
  export default _default;
6
10
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
7
11
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -12,8 +16,11 @@ type __VLS_TypePropsToRuntimeProps<T> = {
12
16
  required: true;
13
17
  };
14
18
  };
15
- type __VLS_WithTemplateSlots<T, S> = T & {
16
- new (): {
17
- $slots: S;
18
- };
19
+ type __VLS_WithDefaults<P, D> = {
20
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
21
+ default: D[K];
22
+ }> : P[K];
19
23
  };
24
+ type __VLS_Prettify<T> = {
25
+ [K in keyof T]: T[K];
26
+ } & {};
@@ -3,18 +3,18 @@ export declare enum PdapInputTypes {
3
3
  TEXT = "text"
4
4
  }
5
5
  export interface PdapInputBaseProps {
6
+ error?: string;
6
7
  id: string;
7
8
  label: string;
8
9
  name: string;
9
- error: string;
10
+ placeholder?: string;
11
+ type: PdapInputTypes;
12
+ value?: string;
13
+ defaultChecked?: boolean;
10
14
  }
11
15
  export interface PdapInputTextProps extends PdapInputBaseProps {
12
- placeholder?: string;
13
16
  type: PdapInputTypes.TEXT;
14
- value: string;
15
17
  }
16
18
  export interface PdapInputCheckboxProps extends PdapInputBaseProps {
17
- defaultChecked: boolean;
18
19
  type: PdapInputTypes.CHECKBOX;
19
- value: string;
20
20
  }
@@ -5,8 +5,6 @@ export { Form } from './Form';
5
5
  export { GridContainer } from './GridContainer';
6
6
  export { GridItem } from './GridItem';
7
7
  export { Input } from './Input';
8
- export { InputCheckbox } from './Input/Checkbox';
9
- export { InputText } from './Input/Text';
10
8
  export { Header } from './Header';
11
9
  export { Nav } from './Nav';
12
10
  export { QuickSearchForm } from './QuickSearchForm';
package/dist/index.cjs CHANGED
@@ -1,2 +1,3 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),U=require("vue-router"),le=t.defineComponent({__name:"PdapButton",props:{intent:{default:"primary"},isLoading:{type:Boolean,default:!1}},setup(e){const n=e,r=t.reactive({"pdap-button":!0,[`pdap-button-${n.intent}`]:!!n.intent,"pdap-button-loading":n.isLoading});return(a,o)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(r)},[t.renderSlot(a.$slots,"default")],2))}});const W=t.defineComponent({__name:"FlexContainer",props:{alignment:{default:"start"},component:{default:"div"}},setup(e){const n=e,r=t.reactive({"pdap-flex-container":!0,[`pdap-flex-container-${n.alignment}`]:!0});return(a,o)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(a.component),{class:t.normalizeClass(r)},{default:t.withCtx(()=>[t.renderSlot(a.$slots,"default")]),_:3},8,["class"]))}});const Re={class:"pdap-footer"},Oe={class:"pdap-footer-social-links"},Ve=["href"],Be=t.createElementVNode("p",{class:"pdap-footer-copyright"},[t.createTextVNode(" © 2023 Police Data Accessibility Project"),t.createElementVNode("br")],-1),je=t.createElementVNode("p",{class:"pdap-footer-copyright"},[t.createTextVNode(" PDAP is a non-profit. EIN: 85-4207132. "),t.createElementVNode("a",{href:"https://docs.pdap.io/meta/policy/pdap-privacy-policy",alt:"Privacy Policy"}," Privacy Policy"),t.createTextVNode(". "),t.createElementVNode("a",{href:"mailto:contact@pdap.io"},"contact@pdap.io")],-1),Ie={class:"pdap-footer-widget-links"},Te=t.createElementVNode("a",{href:"https://www.guidestar.org/profile/85-4207132",target:"_blank"},[t.createElementVNode("img",{src:"https://widgets.guidestar.org/gximage2?o=9973356&l=v4"})],-1),Ae=["href"],Ne=["src"],Se=["src"],Le=t.defineComponent({__name:"PdapFooter",props:{logoImageSrc:{default:"node_modules/pdap-design-system/dist/images/acronym.svg"},logoImageAnchorPath:{default:"/"}},setup(e){const n=e,r=t.inject("footerLinks",[{href:"https://github.com/orgs/Police-Data-Accessibility-Project",text:"Github"},{href:"ttps://discord.gg/wMqex8nKZJ",text:"Discord"},{href:"https://www.linkedin.com/company/pdap",text:"LinkedIn"},{path:"/jobs",text:"Jobs"}]),a=n.logoImageAnchorPath.startsWith("/");return(o,s)=>{const i=t.resolveComponent("router-link");return t.openBlock(),t.createElementBlock("footer",Re,[t.createVNode(W,{alignment:"center"},{default:t.withCtx(()=>[t.createElementVNode("ul",Oe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(r),c=>(t.openBlock(),t.createElementBlock("li",{key:c.text,class:"pdap-footer-link-container"},[c.href?(t.openBlock(),t.createElementBlock("a",{key:0,class:"pdap-footer-social-link",href:c.href,target:"_blank",referrerpolicy:"no-referrer"},t.toDisplayString(c.text),9,Ve)):t.createCommentVNode("",!0),c.path?(t.openBlock(),t.createBlock(i,{key:1,"active-class":"pdap-footer-social-link-current","exact-active-class":"pdap-footer-social-link-current-exact",class:"pdap-footer-social-link",to:c.path},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.text),1)]),_:2},1032,["to"])):t.createCommentVNode("",!0)]))),128))]),Be,je,t.createElementVNode("div",Ie,[Te,t.unref(a)?(t.openBlock(),t.createBlock(i,{key:1,to:o.logoImageAnchorPath,class:"pdap-footer-logo"},{default:t.withCtx(()=>[t.createElementVNode("img",{src:o.logoImageSrc,loading:"lazy",width:"250",alt:"Police Data Accessibility Project Logo"},null,8,Se)]),_:1},8,["to"])):(t.openBlock(),t.createElementBlock("a",{key:0,href:o.logoImageAnchorPath,class:"pdap-footer-logo"},[t.createElementVNode("img",{src:o.logoImageSrc,loading:"lazy",width:"250",alt:"Police Data Accessibility Project Logo"},null,8,Ne)],8,Ae))])]),_:1})])}}});function Y(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function P(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Y(Object(r),!0).forEach(function(a){De(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function De(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function ee(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(e).reduce((r,a)=>(n.includes(a)||(r[a]=t.unref(e[a])),r),{})}function S(e){return typeof e=="function"}function ze(e){return t.isReactive(e)||t.isReadonly(e)}function ue(e,n,r){let a=e;const o=n.split(".");for(let s=0;s<o.length;s++){if(!a[o[s]])return r;a=a[o[s]]}return a}function H(e,n,r){return t.computed(()=>e.some(a=>ue(n,a,{[r]:!1})[r]))}function te(e,n,r){return t.computed(()=>e.reduce((a,o)=>{const s=ue(n,o,{[r]:!1})[r]||[];return a.concat(s)},[]))}function de(e,n,r,a){return e.call(a,t.unref(n),t.unref(r),a)}function pe(e){return e.$valid!==void 0?!e.$valid:!e}function Me(e,n,r,a,o,s,i){let{$lazy:c,$rewardEarly:d}=o,u=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],p=arguments.length>8?arguments[8]:void 0,f=arguments.length>9?arguments[9]:void 0,h=arguments.length>10?arguments[10]:void 0;const g=t.ref(!!a.value),l=t.ref(0);r.value=!1;const m=t.watch([n,a].concat(u,h),()=>{if(c&&!a.value||d&&!f.value&&!r.value)return;let $;try{$=de(e,n,p,i)}catch(v){$=Promise.reject(v)}l.value++,r.value=!!l.value,g.value=!1,Promise.resolve($).then(v=>{l.value--,r.value=!!l.value,s.value=v,g.value=pe(v)}).catch(v=>{l.value--,r.value=!!l.value,s.value=v,g.value=!0})},{immediate:!0,deep:typeof n=="object"});return{$invalid:g,$unwatch:m}}function Fe(e,n,r,a,o,s,i,c){let{$lazy:d,$rewardEarly:u}=a;const p=()=>({}),f=t.computed(()=>{if(d&&!r.value||u&&!c.value)return!1;let h=!0;try{const g=de(e,n,i,s);o.value=g,h=pe(g)}catch(g){o.value=g}return h});return{$unwatch:p,$invalid:f}}function qe(e,n,r,a,o,s,i,c,d,u,p){const f=t.ref(!1),h=e.$params||{},g=t.ref(null);let l,m;e.$async?{$invalid:l,$unwatch:m}=Me(e.$validator,n,f,r,a,g,o,e.$watchTargets,d,u,p):{$invalid:l,$unwatch:m}=Fe(e.$validator,n,r,a,g,o,d,u);const $=e.$message;return{$message:S($)?t.computed(()=>$(ee({$pending:f,$invalid:l,$params:ee(h),$model:n,$response:g,$validator:s,$propertyPath:c,$property:i}))):$||"",$params:h,$pending:f,$invalid:l,$response:g,$unwatch:m}}function He(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=t.unref(e),r=Object.keys(n),a={},o={},s={};let i=null;return r.forEach(c=>{const d=n[c];switch(!0){case S(d.$validator):a[c]=d;break;case S(d):a[c]={$validator:d};break;case c==="$validationGroups":i=d;break;case c.startsWith("$"):s[c]=d;break;default:o[c]=d}}),{rules:a,nestedValidators:o,config:s,validationGroups:i}}const Ge="__root";function Ue(e,n,r,a,o,s,i,c,d){const u=Object.keys(e),p=a.get(o,e),f=t.ref(!1),h=t.ref(!1),g=t.ref(0);if(p){if(!p.$partial)return p;p.$unwatch(),f.value=p.$dirty.value}const l={$dirty:f,$path:o,$touch:()=>{f.value||(f.value=!0)},$reset:()=>{f.value&&(f.value=!1)},$commit:()=>{}};return u.length?(u.forEach(m=>{l[m]=qe(e[m],n,l.$dirty,s,i,m,r,o,d,h,g)}),l.$externalResults=t.computed(()=>c.value?[].concat(c.value).map((m,$)=>({$propertyPath:o,$property:r,$validator:"$externalResults",$uid:`${o}-externalResult-${$}`,$message:m,$params:{},$response:null,$pending:!1})):[]),l.$invalid=t.computed(()=>{const m=u.some($=>t.unref(l[$].$invalid));return h.value=m,!!l.$externalResults.value.length||m}),l.$pending=t.computed(()=>u.some(m=>t.unref(l[m].$pending))),l.$error=t.computed(()=>l.$dirty.value?l.$pending.value||l.$invalid.value:!1),l.$silentErrors=t.computed(()=>u.filter(m=>t.unref(l[m].$invalid)).map(m=>{const $=l[m];return t.reactive({$propertyPath:o,$property:r,$validator:m,$uid:`${o}-${m}`,$message:$.$message,$params:$.$params,$response:$.$response,$pending:$.$pending})}).concat(l.$externalResults.value)),l.$errors=t.computed(()=>l.$dirty.value?l.$silentErrors.value:[]),l.$unwatch=()=>u.forEach(m=>{l[m].$unwatch()}),l.$commit=()=>{h.value=!0,g.value=Date.now()},a.set(o,e,l),l):(p&&a.set(o,e,l),l)}function We(e,n,r,a,o,s,i){const c=Object.keys(e);return c.length?c.reduce((d,u)=>(d[u]=G({validations:e[u],state:n,key:u,parentKey:r,resultsCache:a,globalConfig:o,instance:s,externalResults:i}),d),{}):{}}function Xe(e,n,r){const a=t.computed(()=>[n,r].filter(l=>l).reduce((l,m)=>l.concat(Object.values(t.unref(m))),[])),o=t.computed({get(){return e.$dirty.value||(a.value.length?a.value.every(l=>l.$dirty):!1)},set(l){e.$dirty.value=l}}),s=t.computed(()=>{const l=t.unref(e.$silentErrors)||[],m=a.value.filter($=>(t.unref($).$silentErrors||[]).length).reduce(($,v)=>$.concat(...v.$silentErrors),[]);return l.concat(m)}),i=t.computed(()=>{const l=t.unref(e.$errors)||[],m=a.value.filter($=>(t.unref($).$errors||[]).length).reduce(($,v)=>$.concat(...v.$errors),[]);return l.concat(m)}),c=t.computed(()=>a.value.some(l=>l.$invalid)||t.unref(e.$invalid)||!1),d=t.computed(()=>a.value.some(l=>t.unref(l.$pending))||t.unref(e.$pending)||!1),u=t.computed(()=>a.value.some(l=>l.$dirty)||a.value.some(l=>l.$anyDirty)||o.value),p=t.computed(()=>o.value?d.value||c.value:!1),f=()=>{e.$touch(),a.value.forEach(l=>{l.$touch()})},h=()=>{e.$commit(),a.value.forEach(l=>{l.$commit()})},g=()=>{e.$reset(),a.value.forEach(l=>{l.$reset()})};return a.value.length&&a.value.every(l=>l.$dirty)&&f(),{$dirty:o,$errors:i,$invalid:c,$anyDirty:u,$error:p,$pending:d,$touch:f,$reset:g,$silentErrors:s,$commit:h}}function G(e){let{validations:n,state:r,key:a,parentKey:o,childResults:s,resultsCache:i,globalConfig:c={},instance:d,externalResults:u}=e;const p=o?`${o}.${a}`:a,{rules:f,nestedValidators:h,config:g,validationGroups:l}=He(n),m=P(P({},c),g),$=a?t.computed(()=>{const y=t.unref(r);return y?t.unref(y[a]):void 0}):r,v=P({},t.unref(u)||{}),V=t.computed(()=>{const y=t.unref(u);return a?y?t.unref(y[a]):void 0:y}),z=Ue(f,$,a,i,p,m,d,V,r),w=We(h,$,p,i,m,d,V),k={};l&&Object.entries(l).forEach(y=>{let[R,x]=y;k[R]={$invalid:H(x,w,"$invalid"),$error:H(x,w,"$error"),$pending:H(x,w,"$pending"),$errors:te(x,w,"$errors"),$silentErrors:te(x,w,"$silentErrors")}});const{$dirty:b,$errors:A,$invalid:M,$anyDirty:_e,$error:we,$pending:F,$touch:q,$reset:be,$silentErrors:xe,$commit:J}=Xe(z,w,s),Pe=a?t.computed({get:()=>t.unref($),set:y=>{b.value=!0;const R=t.unref(r),x=t.unref(u);x&&(x[a]=v[a]),t.isRef(R[a])?R[a].value=y:R[a]=y}}):null;a&&m.$autoDirty&&t.watch($,()=>{b.value||q();const y=t.unref(u);y&&(y[a]=v[a])},{flush:"sync"});async function Ee(){return q(),m.$rewardEarly&&(J(),await t.nextTick()),await t.nextTick(),new Promise(y=>{if(!F.value)return y(!M.value);const R=t.watch(F,()=>{y(!M.value),R()})})}function Ce(y){return(s.value||{})[y]}function ke(){t.isRef(u)?u.value=v:Object.keys(v).length===0?Object.keys(u).forEach(y=>{delete u[y]}):Object.assign(u,v)}return t.reactive(P(P(P({},z),{},{$model:Pe,$dirty:b,$error:we,$errors:A,$invalid:M,$anyDirty:_e,$pending:F,$touch:q,$reset:be,$path:p||Ge,$silentErrors:xe,$validate:Ee,$commit:J},s&&{$getResultsForChild:Ce,$clearExternalResults:ke,$validationGroups:k}),w))}class Ke{constructor(){this.storage=new Map}set(n,r,a){this.storage.set(n,{rules:r,result:a})}checkRulesValidity(n,r,a){const o=Object.keys(a),s=Object.keys(r);return s.length!==o.length||!s.every(c=>o.includes(c))?!1:s.every(c=>r[c].$params?Object.keys(r[c].$params).every(d=>t.unref(a[c].$params[d])===t.unref(r[c].$params[d])):!0)}get(n,r){const a=this.storage.get(n);if(!a)return;const{rules:o,result:s}=a,i=this.checkRulesValidity(n,r,o),c=s.$unwatch?s.$unwatch:()=>({});return i?s:{$dirty:s.$dirty,$partial:!0,$unwatch:c}}}const N={COLLECT_ALL:!0,COLLECT_NONE:!1},ne=Symbol("vuelidate#injectChildResults"),re=Symbol("vuelidate#removeChildResults");function Qe(e){let{$scope:n,instance:r}=e;const a={},o=t.ref([]),s=t.computed(()=>o.value.reduce((p,f)=>(p[f]=t.unref(a[f]),p),{}));function i(p,f){let{$registerAs:h,$scope:g,$stopPropagation:l}=f;l||n===N.COLLECT_NONE||g===N.COLLECT_NONE||n!==N.COLLECT_ALL&&n!==g||(a[h]=p,o.value.push(h))}r.__vuelidateInjectInstances=[].concat(r.__vuelidateInjectInstances||[],i);function c(p){o.value=o.value.filter(f=>f!==p),delete a[p]}r.__vuelidateRemoveInstances=[].concat(r.__vuelidateRemoveInstances||[],c);const d=t.inject(ne,[]);t.provide(ne,r.__vuelidateInjectInstances);const u=t.inject(re,[]);return t.provide(re,r.__vuelidateRemoveInstances),{childResults:s,sendValidationResultsToParent:d,removeValidationResultsFromParent:u}}function me(e){return new Proxy(e,{get(n,r){return typeof n[r]=="object"?me(n[r]):t.computed(()=>n[r])}})}let ae=0;function Ze(e,n){var r;let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};arguments.length===1&&(a=e,e=void 0,n=void 0);let{$registerAs:o,$scope:s=N.COLLECT_ALL,$stopPropagation:i,$externalResults:c,currentVueInstance:d}=a;const u=d||((r=t.getCurrentInstance())===null||r===void 0?void 0:r.proxy),p=u?u.$options:{};o||(ae+=1,o=`_vuelidate_${ae}`);const f=t.ref({}),h=new Ke,{childResults:g,sendValidationResultsToParent:l,removeValidationResultsFromParent:m}=u?Qe({$scope:s,instance:u}):{childResults:t.ref({})};if(!e&&p.validations){const $=p.validations;n=t.ref({}),t.onBeforeMount(()=>{n.value=u,t.watch(()=>S($)?$.call(n.value,new me(n.value)):$,v=>{f.value=G({validations:v,state:n,childResults:g,resultsCache:h,globalConfig:a,instance:u,externalResults:c||u.vuelidateExternalResults})},{immediate:!0})}),a=p.validationsConfig||a}else{const $=t.isRef(e)||ze(e)?e:t.reactive(e||{});t.watch($,v=>{f.value=G({validations:v,state:n,childResults:g,resultsCache:h,globalConfig:a,instance:u??{},externalResults:c})},{immediate:!0})}return u&&(l.forEach($=>$(f,{$registerAs:o,$scope:s,$stopPropagation:i})),t.onBeforeUnmount(()=>m.forEach($=>$(o)))),t.computed(()=>P(P({},t.unref(f.value)),g.value))}const Je=["for"],Ye=["id"],fe=t.defineComponent({__name:"PdapInput",props:{id:{},label:{},name:{},error:{}},setup(e){const n=e,r=t.computed(()=>`pdap-${n.name}-input-error`);return t.watchEffect(()=>{console.debug(`Hello from PDAP Input ${n.name} rendered at ${window.location.pathname}`,{props:n})}),(a,o)=>{var s;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"pdap-input":!0,"pdap-input-error":((s=a.error)==null?void 0:s.length)>=1})},[t.renderSlot(a.$slots,"default"),t.createElementVNode("label",{class:"pdap-input-label",for:a.id},t.toDisplayString(a.label),9,Je),a.error?(t.openBlock(),t.createElementBlock("div",{key:0,id:r.value,class:"pdap-input-error-message"},t.toDisplayString(a.error),9,Ye)):t.createCommentVNode("",!0)],2)}}});const et=["id","name","value","placeholder"],$e=t.defineComponent({__name:"InputText",props:{placeholder:{},type:{},value:{},id:{},label:{},name:{},error:{}},emits:["input"],setup(e,{emit:n}){const r=e,a=n,o=s=>{a("input",s.target.value)};return t.watchEffect(()=>{console.debug(`Hello from PDAP InputText ${r.name} rendered at ${window.location.pathname}`,{props:r})}),(s,i)=>(t.openBlock(),t.createElementBlock("input",{id:s.id,type:"text",name:s.name,value:s.value,placeholder:s.placeholder,onInput:o},null,40,et))}}),tt=["id","name","checked","value"],he=t.defineComponent({__name:"InputCheckbox",props:{defaultChecked:{type:Boolean},type:{},value:{},id:{},label:{},name:{},error:{}},emits:["change"],setup(e,{emit:n}){const r=e,a=n,o=s=>{a("change",s.target.checked.toString())};return t.watchEffect(()=>{console.debug(`Hello from PDAP InputCheckbox ${r.name} rendered at ${window.location.pathname}`,{props:r})}),(s,i)=>(t.openBlock(),t.createElementBlock("input",{id:s.id,class:"pdap-input-checkbox",name:s.name,checked:s.defaultChecked,value:s.value,type:"checkbox",onChange:o},null,40,tt))}});var B=(e=>(e.CHECKBOX="checkbox",e.TEXT="text",e))(B||{});const nt={[B.CHECKBOX]:"InputCheckbox",[B.TEXT]:"InputText"},rt={name:"InputsGenerator",components:{InputText:$e,InputCheckbox:he,PdapInput:fe},props:{schema:{type:Object},values:{type:Object},v$:{type:Object}},emits:["blur","input"],setup(e,{emit:n}){n("input"),n("blur")},data(){return{formData:this.values||{},INPUT_COMPONENT_MAP:nt,v:this.$props.v$}},methods:{updateForm(e,n){this.formData[e]=n,this.$emit("input",this.formData)},updateValidations(e){var n,r;(r=(n=this.v$)==null?void 0:n.value)==null||r[e].$touch}}},at=(e,n)=>{const r=e.__vccOpts||e;for(const[a,o]of n)r[a]=o;return r};function ot(e,n,r,a,o,s){const i=t.resolveComponent("PdapInput");return t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.schema,c=>{var d,u,p,f;return t.openBlock(),t.createBlock(i,{id:c.id,key:c.name,error:(f=(p=(u=(d=o.v)==null?void 0:d[c.name])==null?void 0:u.$errors)==null?void 0:p[0])==null?void 0:f.$message,name:c.name,label:c.label},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.INPUT_COMPONENT_MAP[c.type]),t.mergeProps(c,{value:o.formData[c.name],onBlur:h=>s.updateValidations(c.name),onInput:h=>s.updateForm(c.name,h)}),null,16,["value","onBlur","onInput"]))]),_:2},1032,["id","error","name","label"])}),128)}const st=at(rt,[["render",ot]]);function oe(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function j(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?oe(Object(r),!0).forEach(function(a){it(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oe(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function it(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function I(e){return typeof e=="function"}function L(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function D(e){return I(e.$validator)?j({},e):{$validator:e}}function ct(e){return L(e)&&I(e.then)}function E(e){return typeof e=="object"?e.$valid:e}function O(e){return e.$validator||e}function X(e,n){if(!L(e))throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof e}`);if(!L(n)&&!I(n))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const r=D(n);return r.$params=j(j({},r.$params||{}),e),r}function T(e,n){if(!I(e)&&typeof t.unref(e)!="string")throw new Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof e}`);if(!L(n)&&!I(n))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const r=D(n);return r.$message=e,r}function lt(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=D(e);return j(j({},r),{},{$async:!0,$watchTargets:n})}function ut(e){return{$validator(n){for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];return t.unref(n).reduce((s,i,c)=>{const d=Object.entries(i).reduce((u,p)=>{let[f,h]=p;const g=e[f]||{},l=Object.entries(g).reduce((m,$)=>{let[v,V]=$;const w=O(V).call(this,h,i,c,...a),k=E(w);if(m.$data[v]=w,m.$data.$invalid=!k||!!m.$data.$invalid,m.$data.$error=m.$data.$invalid,!k){let b=V.$message||"";const A=V.$params||{};typeof b=="function"&&(b=b({$pending:!1,$invalid:!k,$params:A,$model:h,$response:w})),m.$errors.push({$property:f,$message:b,$params:A,$response:w,$model:h,$pending:!1,$validator:v})}return{$valid:m.$valid&&k,$data:m.$data,$errors:m.$errors}},{$valid:!0,$data:{},$errors:[]});return u.$data[f]=l.$data,u.$errors[f]=l.$errors,{$valid:u.$valid&&l.$valid,$data:u.$data,$errors:u.$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:n=>{let{$response:r}=n;return r?r.$errors.map(a=>Object.values(a).map(o=>o.map(s=>s.$message)).reduce((o,s)=>o.concat(s),[])):[]}}}const _=e=>{if(e=t.unref(e),Array.isArray(e))return!!e.length;if(e==null)return!1;if(e===!1)return!0;if(e instanceof Date)return!isNaN(e.getTime());if(typeof e=="object"){for(let n in e)return!0;return!1}return!!String(e).length},K=e=>(e=t.unref(e),Array.isArray(e)?e.length:typeof e=="object"?Object.keys(e).length:String(e).length);function C(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return a=>(a=t.unref(a),!_(a)||n.every(o=>(o.lastIndex=0,o.test(a))))}var Q=Object.freeze({__proto__:null,forEach:ut,len:K,normalizeValidatorObject:D,regex:C,req:_,unwrap:t.unref,unwrapNormalizedValidator:O,unwrapValidatorResponse:E,withAsync:lt,withMessage:T,withParams:X}),dt=C(/^[a-zA-Z]*$/),pt={$validator:dt,$message:"The value is not alphabetical",$params:{type:"alpha"}},mt=C(/^[a-zA-Z0-9]*$/),ft={$validator:mt,$message:"The value must be alpha-numeric",$params:{type:"alphaNum"}},$t=C(/^\d*(\.\d+)?$/),ht={$validator:$t,$message:"Value must be numeric",$params:{type:"numeric"}};function gt(e,n){return r=>!_(r)||(!/\s/.test(r)||r instanceof Date)&&+t.unref(e)<=+r&&+t.unref(n)>=+r}function vt(e,n){return{$validator:gt(e,n),$message:r=>{let{$params:a}=r;return`The value must be between ${a.min} and ${a.max}`},$params:{min:e,max:n,type:"between"}}}const yt=/^(?:[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 _t=C(yt),wt={$validator:_t,$message:"Value is not a valid email address",$params:{type:"email"}};function bt(e){if(!_(e))return!0;if(typeof e!="string")return!1;const n=e.split(".");return n.length===4&&n.every(xt)}const xt=e=>{if(e.length>3||e.length===0||e[0]==="0"&&e!=="0"||!e.match(/^\d+$/))return!1;const n=+e|0;return n>=0&&n<=255};var Pt={$validator:bt,$message:"The value is not a valid IP address",$params:{type:"ipAddress"}};function Et(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:":";return n=>{if(e=t.unref(e),!_(n))return!0;if(typeof n!="string")return!1;const r=typeof e=="string"&&e!==""?n.split(e):n.length===12||n.length===16?n.match(/.{2}/g):null;return r!==null&&(r.length===6||r.length===8)&&r.every(Ct)}}const Ct=e=>e.toLowerCase().match(/^[0-9a-f]{2}$/);function kt(e){return{$validator:Et(e),$message:"The value is not a valid MAC Address",$params:{type:"macAddress"}}}function Rt(e){return n=>!_(n)||K(n)<=t.unref(e)}function Ot(e){return{$validator:Rt(e),$message:n=>{let{$params:r}=n;return`The maximum length allowed is ${r.max}`},$params:{max:e,type:"maxLength"}}}function Vt(e){return n=>!_(n)||K(n)>=t.unref(e)}function Bt(e){return{$validator:Vt(e),$message:n=>{let{$params:r}=n;return`This field should be at least ${r.min} characters long`},$params:{min:e,type:"minLength"}}}function jt(e){return typeof e=="string"&&(e=e.trim()),_(e)}var Z={$validator:jt,$message:"Value is required",$params:{type:"required"}};const se=(e,n)=>e?_(typeof n=="string"?n.trim():n):!0;function It(e){return function(n,r){if(typeof e!="function")return se(t.unref(e),n);const a=e.call(this,n,r);return se(a,n)}}function Tt(e){return{$validator:It(e),$message:"The value is required",$params:{type:"requiredIf",prop:e}}}const ie=(e,n)=>e?!0:_(typeof n=="string"?n.trim():n);function At(e){return function(n,r){if(typeof e!="function")return ie(t.unref(e),n);const a=e.call(this,n,r);return ie(a,n)}}function Nt(e){return{$validator:At(e),$message:"The value is required",$params:{type:"requiredUnless",prop:e}}}function St(e){return n=>t.unref(n)===t.unref(e)}function Lt(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"other";return{$validator:St(e),$message:r=>`The value must be equal to the ${n} value`,$params:{equalTo:e,otherName:n,type:"sameAs"}}}const Dt=/^(?:(?:(?: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 zt=C(Dt),Mt={$validator:zt,$message:"The value is not a valid URL address",$params:{type:"url"}};function Ft(e){return function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return e.reduce((o,s)=>E(o)?o:O(s).apply(this,r),!1)}}function qt(e){return function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return e.reduce(async(o,s)=>{const i=await o;return E(i)?i:O(s).apply(this,r)},Promise.resolve(!1))}}function Ht(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const a=n.some(i=>i.$async),o=n.reduce((i,c)=>c.$watchTargets?i.concat(c.$watchTargets):i,[]);let s=()=>!1;return n.length&&(s=a?qt(n):Ft(n)),{$async:a,$validator:s,$watchTargets:o}}function Gt(){return X({type:"or"},T("The value does not match any of the provided validators",Ht(...arguments)))}function Ut(e){return function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return e.reduce((o,s)=>E(o)?O(s).apply(this,r):o,!0)}}function Wt(e){return function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return e.reduce(async(o,s)=>{const i=await o;return E(i)?O(s).apply(this,r):i},Promise.resolve(!0))}}function Xt(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const a=n.some(i=>i.$async),o=n.reduce((i,c)=>c.$watchTargets?i.concat(c.$watchTargets):i,[]);let s=()=>!1;return n.length&&(s=a?Wt(n):Ut(n)),{$async:a,$validator:s,$watchTargets:o}}function Kt(){return X({type:"and"},T("The value does not match all of the provided validators",Xt(...arguments)))}function Qt(e){return function(n,r){if(!_(n))return!0;const a=O(e).call(this,n,r);return ct(a)?a.then(o=>!E(o)):!E(a)}}function Zt(e){return{$validator:Qt(e),$message:"The value does not match the provided validator",$params:{type:"not"}}}function Jt(e){return n=>!_(n)||(!/\s/.test(n)||n instanceof Date)&&+n>=+t.unref(e)}function Yt(e){return{$validator:Jt(e),$message:n=>{let{$params:r}=n;return`The minimum value allowed is ${r.min}`},$params:{min:e,type:"minValue"}}}function en(e){return n=>!_(n)||(!/\s/.test(n)||n instanceof Date)&&+n<=+t.unref(e)}var tn=e=>({$validator:en(e),$message:n=>{let{$params:r}=n;return`The maximum value allowed is ${r.max}`},$params:{max:e,type:"maxValue"}}),nn=C(/(^[0-9]*$)|(^-[0-9]+$)/),rn={$validator:nn,$message:"Value is not an integer",$params:{type:"integer"}},an=C(/^[-]?\d*(\.\d+)?$/),on={$validator:an,$message:"Value must be decimal",$params:{type:"decimal"}};function sn(e){let{t:n,messagePath:r=o=>{let{$validator:s}=o;return`validations.${s}`},messageParams:a=o=>o}=e;return function(s){let{withArguments:i=!1,messagePath:c=r,messageParams:d=a}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};function u(p){return n(c(p),d(j({model:p.$model,property:p.$property,pending:p.$pending,invalid:p.$invalid,response:p.$response,validator:p.$validator,propertyPath:p.$propertyPath},p.$params)))}return i&&typeof s=="function"?function(){return T(u,s(...arguments))}:T(u,s)}}const ge=Object.freeze(Object.defineProperty({__proto__:null,alpha:pt,alphaNum:ft,and:Kt,between:vt,createI18nMessage:sn,decimal:on,email:wt,helpers:Q,integer:rn,ipAddress:Pt,macAddress:kt,maxLength:Ot,maxValue:tn,minLength:Bt,minValue:Yt,not:Zt,numeric:ht,or:Gt,required:Z,requiredIf:Tt,requiredUnless:Nt,sameAs:Lt,url:Mt},Symbol.toStringTag,{value:"Module"}));function ce(e){return["maxLength","minLength"].includes(e)}function cn(e,n){return{[e]:ge[e](n)}}function ln(e,n,r){return{[e]:Q.withMessage(r,ge[e](n))}}function un(){return{required:Z}}function dn(e){return{required:Q.withMessage(e,Z)}}function pn(e,n){if(ce(e)&&typeof n.message=="string"&&typeof n.value=="number")return ln(e,n.value,n.message);if(ce(e)&&typeof n.message>"u"&&typeof n.value=="number")return cn(e,n.value);if(e==="required"&&typeof n.message=="string")return dn(n.message);if(e==="required"&&typeof n.message>"u")return un();throw new Error("No valid rule detected")}const mn={key:0,class:"pdap-form-error-message"},ve=t.defineComponent({__name:"PdapForm",props:{error:{default:null},id:{},name:{},schema:{}},emits:["submit"],setup(e,{emit:n}){const r=e,a=n,o=t.ref(r.schema.reduce((d,u)=>{switch(u.type){case"checkbox":return{...d,[u.name]:u.defaultChecked};case"text":return{...d,[u.name]:u.value};default:return d}},{})),s=r.schema.reduce((d,u)=>{const p=Object.entries(u.validators??{}).reduce((f,[h,g])=>({...f,...pn(h,g)}),{});return{...d,[u.name]:{...p}}},{}),i=Ze(s,o,{$autoDirty:!1,$lazy:!1});t.watchEffect(()=>console.debug(`Hello from PDAP Form ${r.name} rendered at ${window.location.pathname}`,{props:r,values:o,rules:s,vuelidate:i.value}));async function c(d){const u=await i.value.$validate();if(u){const p=d.target,f=new FormData(p),h={};for(const[g,l]of f)Object.assign(h,{[g]:l});console.debug("Hello from Form's onSubmit handler",{values:h,isCorrectSubmission:u,vuelidate:i.value}),a("submit",h),i.value.$reset(),p.reset();return}else{console.error("is invalid form data",{v$:i.value});return}}return(d,u)=>(t.openBlock(),t.createElementBlock("form",{class:"pdap-form",onSubmit:u[0]||(u[0]=t.withModifiers(p=>c(p),["prevent"]))},[typeof d.error=="string"&&d.error.length>0?(t.openBlock(),t.createElementBlock("div",mn,t.toDisplayString(d.error),1)):t.createCommentVNode("",!0),t.createVNode(st,t.normalizeProps(t.guardReactiveProps({schema:d.schema,values:o.value,...typeof t.unref(i)<"u"?{v$:t.unref(i)}:{}})),null,16),t.renderSlot(d.$slots,"default")],32))}});const fn=t.defineComponent({__name:"GridContainer",props:{columns:{default:"auto"},component:{default:"div"},rows:{default:"auto"},templateColumns:{},templateRows:{}},setup(e){const n=e,r=t.reactive({"pdap-grid-container":!0,[`pdap-grid-container-column-${n.columns}`]:n.columns!=="auto"}),a=n.templateRows||typeof n.rows=="number",o=n.templateRows??`repeat(${n.rows}, minmax(0, 1fr))`,s=t.reactive({...a&&{gridTemplateRows:o},...n.templateColumns&&{gridTemplateColumns:n.templateColumns}});return(i,c)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.component),{class:t.normalizeClass(r),style:t.normalizeStyle(s)},{default:t.withCtx(()=>[t.renderSlot(i.$slots,"default")]),_:3},8,["class","style"]))}});const $n=t.defineComponent({__name:"GridItem",props:{component:{default:"div"},spanColumn:{default:1},spanRow:{default:1}},setup(e){const n=e,r=t.reactive({"pdap-grid-item":!0,[`pdap-grid-item-span-column-${n.spanColumn}`]:n.spanColumn>1}),a=t.reactive({...n.spanRow>1&&{gridRow:`span ${n.spanRow} / span ${n.spanRow}`}});return(o,s)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.component),{class:t.normalizeClass(r),style:t.normalizeStyle(a)},{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default")]),_:3},8,["class","style"]))}});const hn=t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},[t.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),gn=[hn],vn=["aria-expanded"],yn=["href"],ye=t.defineComponent({__name:"PdapNav",props:{topPosition:{}},setup(e){let n=t.inject("navLinks");typeof n>"u"&&(n=[],console.error(`Hey, PDAP developer
2
- `,"Did you forget to inject some linkData for the Nav component?"));const r=t.reactive({isExpanded:!1,isMobile:!0}),a=t.reactive({"pdap-nav":!0});t.onBeforeMount(()=>{o(),window.addEventListener("resize",o)}),t.onBeforeUnmount(()=>{window.removeEventListener("resize",o)});async function o(){window.innerWidth<=1024?r.isMobile=!0:r.isMobile=!1,await t.nextTick()}async function s(){var c,d;const i=document.querySelector("body");!r.isExpanded&&r.isMobile?(r.isExpanded=!0,i!=null&&i.classList.contains("lock-scroll")||(c=document.querySelector("body"))==null||c.classList.add("lock-scroll")):r.isExpanded&&r.isMobile&&(r.isExpanded=!1,(d=document.querySelector("body"))==null||d.classList.remove("lock-scroll")),await t.nextTick()}return(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{"aria-controls":"nav",class:"pdap-nav-open-button",role:"button",onClick:s},gn),t.createElementVNode("nav",{id:"nav","aria-expanded":r.isMobile&&r.isExpanded||!r.isMobile,class:t.normalizeClass(a),style:t.normalizeStyle(r.isMobile?{top:`${i.topPosition}px`}:{})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(n),d=>(t.openBlock(),t.createElementBlock("li",{key:d.text,class:"pdap-nav-link-container"},[d.href?(t.openBlock(),t.createElementBlock("a",{key:0,class:"pdap-nav-link",href:d.href,target:"_blank",referrerpolicy:"no-referrer",onClick:s},t.toDisplayString(d.text),9,yn)):t.createCommentVNode("",!0),d.path?(t.openBlock(),t.createBlock(t.unref(U.RouterLink),{key:1,"active-class":"pdap-nav-link-current","exact-active-class":"pdap-nav-link-current-exact",class:"pdap-nav-link",to:d.path,onClick:s},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(d.text),1)]),_:2},1032,["to"])):t.createCommentVNode("",!0)]))),128))],14,vn)],64))}});const _n=["href"],wn=["src"],bn=["src"],xn=t.defineComponent({__name:"PdapHeader",props:{logoImageSrc:{default:"node_modules/pdap-design-system/dist/images/lockup.svg"},logoImageAnchorPath:{default:"/"}},setup(e){const n=e,r=t.ref(),a=t.ref(null),o=n.logoImageAnchorPath.startsWith("/");t.onMounted(()=>{s(),window.addEventListener("resize",s)}),t.onBeforeUnmount(()=>{window.removeEventListener("resize",s)});function s(){a.value&&(r.value=a.value.offsetHeight)}return(i,c)=>(t.openBlock(),t.createElementBlock("header",{ref_key:"el",ref:a,class:"pdap-header"},[t.unref(o)?(t.openBlock(),t.createBlock(t.unref(U.RouterLink),{key:1,to:i.logoImageAnchorPath,class:"logo"},{default:t.withCtx(()=>[t.createElementVNode("img",{src:i.logoImageSrc,loading:"lazy",width:"250",alt:"Police Data Accessibility Project Logo"},null,8,bn)]),_:1},8,["to"])):(t.openBlock(),t.createElementBlock("a",{key:0,href:i.logoImageAnchorPath,class:"logo"},[t.createElementVNode("img",{src:i.logoImageSrc,loading:"lazy",width:"250",alt:"Police Data Accessibility Project Logo"},null,8,wn)],8,_n)),t.createVNode(ye,{"top-position":r.value},null,8,["top-position"])],512))}});const Pn=t.createElementVNode("p",{class:"quick-search-description"}," We maintain a catalog of public records about police, court, and jail systems across the United States. ",-1),En=t.defineComponent({__name:"QuickSearchForm",props:{mode:{default:"prod"}},setup(e){const n=U.useRouter(),r=e,a=[{id:"search-term",name:"searchTerm",label:"What are you looking for?",type:B.TEXT,placeholder:"Enter a keyword, type of public records, or 'all'",value:""},{id:"location",name:"location",label:"From where?",type:B.TEXT,placeholder:"Enter a state, county, municipality, or 'all'",value:""}];function o({location:s,searchTerm:i}){if(s=s.length>0?s:"all",i=i.length>0?i:"all",n.getRoutes().some(c=>c.path.includes("/search/")))n.push(`/search/${i}/${s}`);else{const c=r.mode==="prod"?"https://data-sources.pdap.io":"https://data-sources.pdap.dev";window.location.assign(`${c}/search/${i}/${s}`)}}return(s,i)=>(t.openBlock(),t.createBlock(W,{alignment:"center",component:"div",class:"pdap-quick-search-form"},{default:t.withCtx(()=>[Pn,t.createVNode(ve,{id:"quick-search-form",class:"small",schema:a,name:"quickSearchForm",onSubmit:o},{default:t.withCtx(()=>[t.createVNode(le,{type:"submit"},{default:t.withCtx(()=>[t.createTextVNode("Search Data Sources")]),_:1})]),_:1})]),_:1}))}});const Cn=["alt","src"],kn=t.defineComponent({__name:"TileIcon",props:{imgAltText:{},imgSrc:{}},setup(e){return(n,r)=>(t.openBlock(),t.createElementBlock("img",{class:"pdap-tile-icon",alt:n.imgAltText,src:n.imgSrc},null,8,Cn))}});exports.Button=le;exports.FlexContainer=W;exports.Footer=Le;exports.Form=ve;exports.GridContainer=fn;exports.GridItem=$n;exports.Header=xn;exports.Input=fe;exports.InputCheckbox=he;exports.InputText=$e;exports.Nav=ye;exports.PdapInputTypes=B;exports.QuickSearchForm=En;exports.TileIcon=kn;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),X=require("vue-router"),le=e.defineComponent({__name:"PdapButton",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 U=e.defineComponent({__name:"FlexContainer",props:{alignment:{default:"start"},component:{default:"div"}},setup(t){const r=t,n=e.reactive({"pdap-flex-container":!0,[`pdap-flex-container-${r.alignment}`]:!0});return(a,o)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.component),{class:e.normalizeClass(n)},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},8,["class"]))}});const ke={class:"pdap-footer"},Re={class:"pdap-footer-social-links"},Ve=["href"],Oe=e.createElementVNode("p",{class:"pdap-footer-copyright"},[e.createTextVNode(" © 2023 Police Data Accessibility Project"),e.createElementVNode("br")],-1),Be=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"}," Privacy Policy"),e.createTextVNode(". "),e.createElementVNode("a",{href:"mailto:contact@pdap.io"},"contact@pdap.io")],-1),Te={class:"pdap-footer-widget-links"},je=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),Ae=["href"],Se=["src"],Ne=["src"],Le=e.defineComponent({__name:"PdapFooter",props:{logoImageSrc:{default:"node_modules/pdap-design-system/dist/images/acronym.svg"},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",ke,[e.createVNode(U,{alignment:"center"},{default:e.withCtx(()=>[e.createElementVNode("ul",Re,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n),l=>(e.openBlock(),e.createElementBlock("li",{key:l.text,class:"pdap-footer-link-container"},[l.href?(e.openBlock(),e.createElementBlock("a",{key:0,class:"pdap-footer-social-link",href:l.href,target:"_blank",referrerpolicy:"no-referrer"},e.toDisplayString(l.text),9,Ve)):e.createCommentVNode("",!0),l.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:l.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.text),1)]),_:2},1032,["to"])):e.createCommentVNode("",!0)]))),128))]),Oe,Be,e.createElementVNode("div",Te,[je,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,Ne)]),_: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,Se)],8,Ae))])]),_:1})])}}});function Y(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 P(t){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Y(Object(n),!0).forEach(function(a){Ie(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function Ie(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function ee(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 L(t){return typeof t=="function"}function ze(t){return e.isReactive(t)||e.isReadonly(t)}function ue(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 H(t,r,n){return e.computed(()=>t.some(a=>ue(r,a,{[n]:!1})[n]))}function te(t,r,n){return e.computed(()=>t.reduce((a,o)=>{const s=ue(r,o,{[n]:!1})[n]||[];return a.concat(s)},[]))}function de(t,r,n,a){return t.call(a,e.unref(r),e.unref(n),a)}function me(t){return t.$valid!==void 0?!t.$valid:!t}function De(t,r,n,a,o,s,c){let{$lazy:l,$rewardEarly:u}=o,m=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],d=arguments.length>8?arguments[8]:void 0,f=arguments.length>9?arguments[9]:void 0,g=arguments.length>10?arguments[10]:void 0;const h=e.ref(!!a.value),i=e.ref(0);n.value=!1;const p=e.watch([r,a].concat(m,g),()=>{if(l&&!a.value||u&&!f.value&&!n.value)return;let $;try{$=de(t,r,d,c)}catch(v){$=Promise.reject(v)}i.value++,n.value=!!i.value,h.value=!1,Promise.resolve($).then(v=>{i.value--,n.value=!!i.value,s.value=v,h.value=me(v)}).catch(v=>{i.value--,n.value=!!i.value,s.value=v,h.value=!0})},{immediate:!0,deep:typeof r=="object"});return{$invalid:h,$unwatch:p}}function Me(t,r,n,a,o,s,c,l){let{$lazy:u,$rewardEarly:m}=a;const d=()=>({}),f=e.computed(()=>{if(u&&!n.value||m&&!l.value)return!1;let g=!0;try{const h=de(t,r,c,s);o.value=h,g=me(h)}catch(h){o.value=h}return g});return{$unwatch:d,$invalid:f}}function qe(t,r,n,a,o,s,c,l,u,m,d){const f=e.ref(!1),g=t.$params||{},h=e.ref(null);let i,p;t.$async?{$invalid:i,$unwatch:p}=De(t.$validator,r,f,n,a,h,o,t.$watchTargets,u,m,d):{$invalid:i,$unwatch:p}=Me(t.$validator,r,n,a,h,o,u,m);const $=t.$message;return{$message:L($)?e.computed(()=>$(ee({$pending:f,$invalid:i,$params:ee(g),$model:r,$response:h,$validator:s,$propertyPath:l,$property:c}))):$||"",$params:g,$pending:f,$invalid:i,$response:h,$unwatch:p}}function Fe(){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(l=>{const u=r[l];switch(!0){case L(u.$validator):a[l]=u;break;case L(u):a[l]={$validator:u};break;case l==="$validationGroups":c=u;break;case l.startsWith("$"):s[l]=u;break;default:o[l]=u}}),{rules:a,nestedValidators:o,config:s,validationGroups:c}}const He="__root";function Ge(t,r,n,a,o,s,c,l,u){const m=Object.keys(t),d=a.get(o,t),f=e.ref(!1),g=e.ref(!1),h=e.ref(0);if(d){if(!d.$partial)return d;d.$unwatch(),f.value=d.$dirty.value}const i={$dirty:f,$path:o,$touch:()=>{f.value||(f.value=!0)},$reset:()=>{f.value&&(f.value=!1)},$commit:()=>{}};return m.length?(m.forEach(p=>{i[p]=qe(t[p],r,i.$dirty,s,c,p,n,o,u,g,h)}),i.$externalResults=e.computed(()=>l.value?[].concat(l.value).map((p,$)=>({$propertyPath:o,$property:n,$validator:"$externalResults",$uid:`${o}-externalResult-${$}`,$message:p,$params:{},$response:null,$pending:!1})):[]),i.$invalid=e.computed(()=>{const p=m.some($=>e.unref(i[$].$invalid));return g.value=p,!!i.$externalResults.value.length||p}),i.$pending=e.computed(()=>m.some(p=>e.unref(i[p].$pending))),i.$error=e.computed(()=>i.$dirty.value?i.$pending.value||i.$invalid.value:!1),i.$silentErrors=e.computed(()=>m.filter(p=>e.unref(i[p].$invalid)).map(p=>{const $=i[p];return e.reactive({$propertyPath:o,$property:n,$validator:p,$uid:`${o}-${p}`,$message:$.$message,$params:$.$params,$response:$.$response,$pending:$.$pending})}).concat(i.$externalResults.value)),i.$errors=e.computed(()=>i.$dirty.value?i.$silentErrors.value:[]),i.$unwatch=()=>m.forEach(p=>{i[p].$unwatch()}),i.$commit=()=>{g.value=!0,h.value=Date.now()},a.set(o,t,i),i):(d&&a.set(o,t,i),i)}function Xe(t,r,n,a,o,s,c){const l=Object.keys(t);return l.length?l.reduce((u,m)=>(u[m]=G({validations:t[m],state:r,key:m,parentKey:n,resultsCache:a,globalConfig:o,instance:s,externalResults:c}),u),{}):{}}function Ue(t,r,n){const a=e.computed(()=>[r,n].filter(i=>i).reduce((i,p)=>i.concat(Object.values(e.unref(p))),[])),o=e.computed({get(){return t.$dirty.value||(a.value.length?a.value.every(i=>i.$dirty):!1)},set(i){t.$dirty.value=i}}),s=e.computed(()=>{const i=e.unref(t.$silentErrors)||[],p=a.value.filter($=>(e.unref($).$silentErrors||[]).length).reduce(($,v)=>$.concat(...v.$silentErrors),[]);return i.concat(p)}),c=e.computed(()=>{const i=e.unref(t.$errors)||[],p=a.value.filter($=>(e.unref($).$errors||[]).length).reduce(($,v)=>$.concat(...v.$errors),[]);return i.concat(p)}),l=e.computed(()=>a.value.some(i=>i.$invalid)||e.unref(t.$invalid)||!1),u=e.computed(()=>a.value.some(i=>e.unref(i.$pending))||e.unref(t.$pending)||!1),m=e.computed(()=>a.value.some(i=>i.$dirty)||a.value.some(i=>i.$anyDirty)||o.value),d=e.computed(()=>o.value?u.value||l.value:!1),f=()=>{t.$touch(),a.value.forEach(i=>{i.$touch()})},g=()=>{t.$commit(),a.value.forEach(i=>{i.$commit()})},h=()=>{t.$reset(),a.value.forEach(i=>{i.$reset()})};return a.value.length&&a.value.every(i=>i.$dirty)&&f(),{$dirty:o,$errors:c,$invalid:l,$anyDirty:m,$error:d,$pending:u,$touch:f,$reset:h,$silentErrors:s,$commit:g}}function G(t){let{validations:r,state:n,key:a,parentKey:o,childResults:s,resultsCache:c,globalConfig:l={},instance:u,externalResults:m}=t;const d=o?`${o}.${a}`:a,{rules:f,nestedValidators:g,config:h,validationGroups:i}=Fe(r),p=P(P({},l),h),$=a?e.computed(()=>{const y=e.unref(n);return y?e.unref(y[a]):void 0}):n,v=P({},e.unref(m)||{}),B=e.computed(()=>{const y=e.unref(m);return a?y?e.unref(y[a]):void 0:y}),D=Ge(f,$,a,c,d,p,u,B,n),w=Xe(g,$,d,c,p,u,B),R={};i&&Object.entries(i).forEach(y=>{let[V,E]=y;R[V]={$invalid:H(E,w,"$invalid"),$error:H(E,w,"$error"),$pending:H(E,w,"$pending"),$errors:te(E,w,"$errors"),$silentErrors:te(E,w,"$silentErrors")}});const{$dirty:x,$errors:S,$invalid:M,$anyDirty:ye,$error:_e,$pending:q,$touch:F,$reset:we,$silentErrors:be,$commit:J}=Ue(D,w,s),xe=a?e.computed({get:()=>e.unref($),set:y=>{x.value=!0;const V=e.unref(n),E=e.unref(m);E&&(E[a]=v[a]),e.isRef(V[a])?V[a].value=y:V[a]=y}}):null;a&&p.$autoDirty&&e.watch($,()=>{x.value||F();const y=e.unref(m);y&&(y[a]=v[a])},{flush:"sync"});async function Ee(){return F(),p.$rewardEarly&&(J(),await e.nextTick()),await e.nextTick(),new Promise(y=>{if(!q.value)return y(!M.value);const V=e.watch(q,()=>{y(!M.value),V()})})}function Pe(y){return(s.value||{})[y]}function Ce(){e.isRef(m)?m.value=v:Object.keys(v).length===0?Object.keys(m).forEach(y=>{delete m[y]}):Object.assign(m,v)}return e.reactive(P(P(P({},D),{},{$model:xe,$dirty:x,$error:_e,$errors:S,$invalid:M,$anyDirty:ye,$pending:q,$touch:F,$reset:we,$path:d||He,$silentErrors:be,$validate:Ee,$commit:J},s&&{$getResultsForChild:Pe,$clearExternalResults:Ce,$validationGroups:R}),w))}class We{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(l=>o.includes(l))?!1:s.every(l=>n[l].$params?Object.keys(n[l].$params).every(u=>e.unref(a[l].$params[u])===e.unref(n[l].$params[u])):!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),l=s.$unwatch?s.$unwatch:()=>({});return c?s:{$dirty:s.$dirty,$partial:!0,$unwatch:l}}}const N={COLLECT_ALL:!0,COLLECT_NONE:!1},re=Symbol("vuelidate#injectChildResults"),ne=Symbol("vuelidate#removeChildResults");function Ke(t){let{$scope:r,instance:n}=t;const a={},o=e.ref([]),s=e.computed(()=>o.value.reduce((d,f)=>(d[f]=e.unref(a[f]),d),{}));function c(d,f){let{$registerAs:g,$scope:h,$stopPropagation:i}=f;i||r===N.COLLECT_NONE||h===N.COLLECT_NONE||r!==N.COLLECT_ALL&&r!==h||(a[g]=d,o.value.push(g))}n.__vuelidateInjectInstances=[].concat(n.__vuelidateInjectInstances||[],c);function l(d){o.value=o.value.filter(f=>f!==d),delete a[d]}n.__vuelidateRemoveInstances=[].concat(n.__vuelidateRemoveInstances||[],l);const u=e.inject(re,[]);e.provide(re,n.__vuelidateInjectInstances);const m=e.inject(ne,[]);return e.provide(ne,n.__vuelidateRemoveInstances),{childResults:s,sendValidationResultsToParent:u,removeValidationResultsFromParent:m}}function pe(t){return new Proxy(t,{get(r,n){return typeof r[n]=="object"?pe(r[n]):e.computed(()=>r[n])}})}let ae=0;function Qe(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=N.COLLECT_ALL,$stopPropagation:c,$externalResults:l,currentVueInstance:u}=a;const m=u||((n=e.getCurrentInstance())===null||n===void 0?void 0:n.proxy),d=m?m.$options:{};o||(ae+=1,o=`_vuelidate_${ae}`);const f=e.ref({}),g=new We,{childResults:h,sendValidationResultsToParent:i,removeValidationResultsFromParent:p}=m?Ke({$scope:s,instance:m}):{childResults:e.ref({})};if(!t&&d.validations){const $=d.validations;r=e.ref({}),e.onBeforeMount(()=>{r.value=m,e.watch(()=>L($)?$.call(r.value,new pe(r.value)):$,v=>{f.value=G({validations:v,state:r,childResults:h,resultsCache:g,globalConfig:a,instance:m,externalResults:l||m.vuelidateExternalResults})},{immediate:!0})}),a=d.validationsConfig||a}else{const $=e.isRef(t)||ze(t)?t:e.reactive(t||{});e.watch($,v=>{f.value=G({validations:v,state:r,childResults:h,resultsCache:g,globalConfig:a,instance:m??{},externalResults:l})},{immediate:!0})}return m&&(i.forEach($=>$(f,{$registerAs:o,$scope:s,$stopPropagation:c})),e.onBeforeUnmount(()=>p.forEach($=>$(o)))),e.computed(()=>P(P({},e.unref(f.value)),h.value))}var b=(t=>(t.CHECKBOX="checkbox",t.TEXT="text",t))(b||{});const Ze=["id","name","placeholder","value"],Je=["id","name","checked","value"],Ye=["id"],et=["for"],fe=e.defineComponent({__name:"PdapInput",props:{error:{},id:{},label:{},name:{},placeholder:{},type:{},value:{},defaultChecked:{type:Boolean}},emits:["change","input"],setup(t,{emit:r}){const n=t,a=r,o=()=>{c.value=!c.value,a("change",c.value.toString())},s=u=>{a("input",u.target.value)},c=e.ref(n.defaultChecked),l=e.computed(()=>`pdap-${n.name}-input-error`);return(u,m)=>{var d;return e.openBlock(),e.createBlock(e.unref(he),{class:e.normalizeClass({"pdap-input":!0,"pdap-input-error":Number((d=u.error)==null?void 0:d.length)>=1})},{default:e.withCtx(()=>[u.type===e.unref(b).TEXT?(e.openBlock(),e.createElementBlock("input",e.mergeProps({key:0,id:u.id,type:"text",name:u.name,placeholder:u.placeholder,value:u.value},u.$attrs,{onInput:s}),null,16,Ze)):u.type===e.unref(b).CHECKBOX?(e.openBlock(),e.createElementBlock("input",e.mergeProps({key:1,id:u.id,class:"pdap-input-checkbox",name:u.name,checked:c.value,type:"checkbox",value:u.value},u.$attrs,{onChange:o}),null,16,Je)):e.createCommentVNode("",!0),u.error?(e.openBlock(),e.createElementBlock("div",{key:2,id:l.value,class:"pdap-input-error-message"},e.toDisplayString(u.error),9,Ye)):e.createCommentVNode("",!0),e.createElementVNode("label",{class:"pdap-input-label",for:u.id},e.toDisplayString(u.label),9,et)]),_:1},8,["class"])}}});function oe(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 T(t){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?oe(Object(n),!0).forEach(function(a){tt(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function tt(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function j(t){return typeof t=="function"}function I(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function z(t){return j(t.$validator)?T({},t):{$validator:t}}function rt(t){return I(t)&&j(t.then)}function C(t){return typeof t=="object"?t.$valid:t}function O(t){return t.$validator||t}function W(t,r){if(!I(t))throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof t}`);if(!I(r)&&!j(r))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const n=z(r);return n.$params=T(T({},n.$params||{}),t),n}function A(t,r){if(!j(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(!I(r)&&!j(r))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const n=z(r);return n.$message=t,n}function nt(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const n=z(t);return T(T({},n),{},{$async:!0,$watchTargets:r})}function at(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,l)=>{const u=Object.entries(c).reduce((m,d)=>{let[f,g]=d;const h=t[f]||{},i=Object.entries(h).reduce((p,$)=>{let[v,B]=$;const w=O(B).call(this,g,c,l,...a),R=C(w);if(p.$data[v]=w,p.$data.$invalid=!R||!!p.$data.$invalid,p.$data.$error=p.$data.$invalid,!R){let x=B.$message||"";const S=B.$params||{};typeof x=="function"&&(x=x({$pending:!1,$invalid:!R,$params:S,$model:g,$response:w})),p.$errors.push({$property:f,$message:x,$params:S,$response:w,$model:g,$pending:!1,$validator:v})}return{$valid:p.$valid&&R,$data:p.$data,$errors:p.$errors}},{$valid:!0,$data:{},$errors:[]});return m.$data[f]=i.$data,m.$errors[f]=i.$errors,{$valid:m.$valid&&i.$valid,$data:m.$data,$errors:m.$errors}},{$valid:!0,$data:{},$errors:{}});return{$valid:s.$valid&&u.$valid,$data:s.$data.concat(u.$data),$errors:s.$errors.concat(u.$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 _=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},K=t=>(t=e.unref(t),Array.isArray(t)?t.length:typeof t=="object"?Object.keys(t).length:String(t).length);function k(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return a=>(a=e.unref(a),!_(a)||r.every(o=>(o.lastIndex=0,o.test(a))))}var Q=Object.freeze({__proto__:null,forEach:at,len:K,normalizeValidatorObject:z,regex:k,req:_,unwrap:e.unref,unwrapNormalizedValidator:O,unwrapValidatorResponse:C,withAsync:nt,withMessage:A,withParams:W}),ot=k(/^[a-zA-Z]*$/),st={$validator:ot,$message:"The value is not alphabetical",$params:{type:"alpha"}},it=k(/^[a-zA-Z0-9]*$/),ct={$validator:it,$message:"The value must be alpha-numeric",$params:{type:"alphaNum"}},lt=k(/^\d*(\.\d+)?$/),ut={$validator:lt,$message:"Value must be numeric",$params:{type:"numeric"}};function dt(t,r){return n=>!_(n)||(!/\s/.test(n)||n instanceof Date)&&+e.unref(t)<=+n&&+e.unref(r)>=+n}function mt(t,r){return{$validator:dt(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 pt=/^(?:[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 ft=k(pt),$t={$validator:ft,$message:"Value is not a valid email address",$params:{type:"email"}};function gt(t){if(!_(t))return!0;if(typeof t!="string")return!1;const r=t.split(".");return r.length===4&&r.every(ht)}const ht=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 vt={$validator:gt,$message:"The value is not a valid IP address",$params:{type:"ipAddress"}};function yt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:":";return r=>{if(t=e.unref(t),!_(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(_t)}}const _t=t=>t.toLowerCase().match(/^[0-9a-f]{2}$/);function wt(t){return{$validator:yt(t),$message:"The value is not a valid MAC Address",$params:{type:"macAddress"}}}function bt(t){return r=>!_(r)||K(r)<=e.unref(t)}function xt(t){return{$validator:bt(t),$message:r=>{let{$params:n}=r;return`The maximum length allowed is ${n.max}`},$params:{max:t,type:"maxLength"}}}function Et(t){return r=>!_(r)||K(r)>=e.unref(t)}function Pt(t){return{$validator:Et(t),$message:r=>{let{$params:n}=r;return`This field should be at least ${n.min} characters long`},$params:{min:t,type:"minLength"}}}function Ct(t){return typeof t=="string"&&(t=t.trim()),_(t)}var Z={$validator:Ct,$message:"Value is required",$params:{type:"required"}};const se=(t,r)=>t?_(typeof r=="string"?r.trim():r):!0;function kt(t){return function(r,n){if(typeof t!="function")return se(e.unref(t),r);const a=t.call(this,r,n);return se(a,r)}}function Rt(t){return{$validator:kt(t),$message:"The value is required",$params:{type:"requiredIf",prop:t}}}const ie=(t,r)=>t?!0:_(typeof r=="string"?r.trim():r);function Vt(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 Ot(t){return{$validator:Vt(t),$message:"The value is required",$params:{type:"requiredUnless",prop:t}}}function Bt(t){return r=>e.unref(r)===e.unref(t)}function Tt(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"other";return{$validator:Bt(t),$message:n=>`The value must be equal to the ${r} value`,$params:{equalTo:t,otherName:r,type:"sameAs"}}}const jt=/^(?:(?:(?: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 At=k(jt),St={$validator:At,$message:"The value is not a valid URL address",$params:{type:"url"}};function Nt(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)=>C(o)?o:O(s).apply(this,n),!1)}}function Lt(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 C(c)?c:O(s).apply(this,n)},Promise.resolve(!1))}}function It(){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,l)=>l.$watchTargets?c.concat(l.$watchTargets):c,[]);let s=()=>!1;return r.length&&(s=a?Lt(r):Nt(r)),{$async:a,$validator:s,$watchTargets:o}}function zt(){return W({type:"or"},A("The value does not match any of the provided validators",It(...arguments)))}function Dt(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)=>C(o)?O(s).apply(this,n):o,!0)}}function Mt(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 C(c)?O(s).apply(this,n):c},Promise.resolve(!0))}}function qt(){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,l)=>l.$watchTargets?c.concat(l.$watchTargets):c,[]);let s=()=>!1;return r.length&&(s=a?Mt(r):Dt(r)),{$async:a,$validator:s,$watchTargets:o}}function Ft(){return W({type:"and"},A("The value does not match all of the provided validators",qt(...arguments)))}function Ht(t){return function(r,n){if(!_(r))return!0;const a=O(t).call(this,r,n);return rt(a)?a.then(o=>!C(o)):!C(a)}}function Gt(t){return{$validator:Ht(t),$message:"The value does not match the provided validator",$params:{type:"not"}}}function Xt(t){return r=>!_(r)||(!/\s/.test(r)||r instanceof Date)&&+r>=+e.unref(t)}function Ut(t){return{$validator:Xt(t),$message:r=>{let{$params:n}=r;return`The minimum value allowed is ${n.min}`},$params:{min:t,type:"minValue"}}}function Wt(t){return r=>!_(r)||(!/\s/.test(r)||r instanceof Date)&&+r<=+e.unref(t)}var Kt=t=>({$validator:Wt(t),$message:r=>{let{$params:n}=r;return`The maximum value allowed is ${n.max}`},$params:{max:t,type:"maxValue"}}),Qt=k(/(^[0-9]*$)|(^-[0-9]+$)/),Zt={$validator:Qt,$message:"Value is not an integer",$params:{type:"integer"}},Jt=k(/^[-]?\d*(\.\d+)?$/),Yt={$validator:Jt,$message:"Value must be decimal",$params:{type:"decimal"}};function er(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:l=n,messageParams:u=a}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};function m(d){return r(l(d),u(T({model:d.$model,property:d.$property,pending:d.$pending,invalid:d.$invalid,response:d.$response,validator:d.$validator,propertyPath:d.$propertyPath},d.$params)))}return c&&typeof s=="function"?function(){return A(m,s(...arguments))}:A(m,s)}}const $e=Object.freeze(Object.defineProperty({__proto__:null,alpha:st,alphaNum:ct,and:Ft,between:mt,createI18nMessage:er,decimal:Yt,email:$t,helpers:Q,integer:Zt,ipAddress:vt,macAddress:wt,maxLength:xt,maxValue:Kt,minLength:Pt,minValue:Ut,not:Gt,numeric:ut,or:zt,required:Z,requiredIf:Rt,requiredUnless:Ot,sameAs:Tt,url:St},Symbol.toStringTag,{value:"Module"}));function ce(t){return["maxLength","minLength"].includes(t)}function tr(t,r){return{[t]:$e[t](r)}}function rr(t,r,n){return{[t]:Q.withMessage(n,$e[t](r))}}function nr(){return{required:Z}}function ar(t){return{required:Q.withMessage(t,Z)}}function or(t,r){if(ce(t)&&typeof r.message=="string"&&typeof r.value=="number")return rr(t,r.value,r.message);if(ce(t)&&typeof r.message>"u"&&typeof r.value=="number")return tr(t,r.value);if(t==="required"&&typeof r.message=="string")return ar(r.message);if(t==="required"&&typeof r.message>"u")return nr();throw new Error("No valid rule detected")}const sr={key:0,class:"pdap-form-error-message"},ge=e.defineComponent({__name:"PdapForm",props:{error:{default:null},id:{},name:{},schema:{}},emits:["submit"],setup(t,{emit:r}){const n=t,a=r,o=e.ref(n.schema.reduce((d,f)=>{switch(f.type){case b.CHECKBOX:return{...d,[f.name]:String(f.defaultChecked)};case b.TEXT:default:return{...d,[f.name]:f.value}}},{})),s=n.schema.reduce((d,f)=>{const g=Object.entries(f.validators??{}).reduce((h,[i,p])=>({...h,...or(i,p)}),{});return{...d,[f.name]:{...g}}},{}),c=Qe(s,o,{$autoDirty:!1,$lazy:!0}),l=e.ref(n.error);function u(d,f){o.value[d]=f}e.watchEffect(()=>{n.error?l.value=n.error:l.value&&c.value.$errors.length===0?l.value=null:!l.value&&c.value.$errors.length>0&&(l.value="Please update this form to correct the errors")}),e.watchEffect(()=>{console.debug(`PdapForm ${n.name}
2
+ `,{props:n,values:o,vuelidate:{rules:s,v$:c}})});async function m(d){if(await c.value.$validate()){a("submit",{...o.value}),c.value.$reset(),d.target.reset(),o.value=Object.entries(o.value).reduce((h,[i,p])=>({...h,[i]:["true","false"].includes(p)?p:""}),{});return}}return(d,f)=>(e.openBlock(),e.createElementBlock("form",{class:"pdap-form",onSubmit:f[0]||(f[0]=e.withModifiers(g=>m(g),["prevent"]))},[typeof l.value=="string"&&l.value.length>0?(e.openBlock(),e.createElementBlock("div",sr,e.toDisplayString(l.value),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.schema,g=>{var h,i,p,$;return e.openBlock(),e.createBlock(fe,e.mergeProps((delete g.validators,g),{key:g.name,error:(h=e.unref(c)[g.name])!=null&&h.$error?($=(p=(i=e.unref(c)[g.name])==null?void 0:i.$errors)==null?void 0:p[0])==null?void 0:$.$message:"",value:o.value[g.name],onChange:v=>g.type!==e.unref(b).TEXT?u(g.name,v):void 0,onInput:v=>g.type===e.unref(b).TEXT?u(g.name,v):void 0}),null,16,["error","value","onChange","onInput"])}),128)),e.renderSlot(d.$slots,"default")],32))}});const he=e.defineComponent({__name:"GridContainer",props:{columns:{default:"auto"},component:{default:"div"},rows:{default:"auto"},templateColumns:{},templateRows:{}},setup(t){const r=t,n=e.reactive({"pdap-grid-container":!0,[`pdap-grid-container-column-${r.columns}`]:r.columns!=="auto"}),a=r.templateRows||typeof r.rows=="number",o=r.templateRows??`repeat(${r.rows}, minmax(0, 1fr))`,s=e.reactive({...a&&{gridTemplateRows:o},...r.templateColumns&&{gridTemplateColumns:r.templateColumns}});return(c,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.component),{class:e.normalizeClass(n),style:e.normalizeStyle(s)},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},8,["class","style"]))}});const ir=e.defineComponent({__name:"GridItem",props:{component:{default:"div"},spanColumn:{default:1},spanRow:{default:1}},setup(t){const r=t,n=e.reactive({"pdap-grid-item":!0,[`pdap-grid-item-span-column-${r.spanColumn}`]:r.spanColumn>1}),a=e.reactive({...r.spanRow>1&&{gridRow:`span ${r.spanRow} / span ${r.spanRow}`}});return(o,s)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.component),{class:e.normalizeClass(n),style:e.normalizeStyle(a)},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3},8,["class","style"]))}});const cr=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),lr=[cr],ur=["aria-expanded"],dr=["href"],ve=e.defineComponent({__name:"PdapNav",props:{topPosition:{}},setup(t){let r=e.inject("navLinks");typeof r>"u"&&(r=[],console.error(`Hey, PDAP developer
3
+ `,"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 l,u;const c=document.querySelector("body");!n.isExpanded&&n.isMobile?(n.isExpanded=!0,c!=null&&c.classList.contains("lock-scroll")||(l=document.querySelector("body"))==null||l.classList.add("lock-scroll")):n.isExpanded&&n.isMobile&&(n.isExpanded=!1,(u=document.querySelector("body"))==null||u.classList.remove("lock-scroll")),await e.nextTick()}return(c,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{"aria-controls":"nav",class:"pdap-nav-open-button",role:"button",onClick:s},lr),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),u=>(e.openBlock(),e.createElementBlock("li",{key:u.text,class:"pdap-nav-link-container"},[u.href?(e.openBlock(),e.createElementBlock("a",{key:0,class:"pdap-nav-link",href:u.href,target:"_blank",referrerpolicy:"no-referrer",onClick:s},e.toDisplayString(u.text),9,dr)):e.createCommentVNode("",!0),u.path?(e.openBlock(),e.createBlock(e.unref(X.RouterLink),{key:1,"active-class":"pdap-nav-link-current","exact-active-class":"pdap-nav-link-current-exact",class:"pdap-nav-link",to:u.path,onClick:s},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.text),1)]),_:2},1032,["to"])):e.createCommentVNode("",!0)]))),128))],14,ur)],64))}});const mr=["href"],pr=["src"],fr=["src"],$r=e.defineComponent({__name:"PdapHeader",props:{logoImageSrc:{default:"node_modules/pdap-design-system/dist/images/lockup.svg"},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,l)=>(e.openBlock(),e.createElementBlock("header",{ref_key:"el",ref:a,class:"pdap-header"},[e.unref(o)?(e.openBlock(),e.createBlock(e.unref(X.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,fr)]),_: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,pr)],8,mr)),e.createVNode(ve,{"top-position":n.value},null,8,["top-position"])],512))}});const gr=e.defineComponent({__name:"QuickSearchForm",props:{mode:{default:"prod"}},setup(t){const r=X.useRouter(),n=t,a=[{id:"search-term",name:"searchTerm",label:"What are you looking for?",type:b.TEXT,placeholder:"Enter a keyword, type of public records, or 'all'",value:""},{id:"location",name:"location",label:"From where?",type:b.TEXT,placeholder:"Enter a state, county, municipality, or 'all'",value:""}];function o(s){let{location:c,searchTerm:l}=s;if(c=c&&c.length>0?c:"all",l=l&&l.length>0?l:"all",r.getRoutes().some(u=>u.path.includes("/search/")))r.push(`/search/${l}/${c}`);else{const u=n.mode==="prod"?"https://data-sources.pdap.io":"https://data-sources.pdap.dev";window.location.assign(`${u}/search/${l}/${c}`)}}return(s,c)=>(e.openBlock(),e.createBlock(U,{alignment:"center",component:"div",class:"pdap-quick-search-form"},{default:e.withCtx(()=>[e.createVNode(ge,{id:"quick-search-form",class:"small",schema:a,name:"quickSearchForm",onSubmit:o},{default:e.withCtx(()=>[e.createVNode(le,{type:"submit"},{default:e.withCtx(()=>[e.createTextVNode("Search Data Sources")]),_:1})]),_:1})]),_:1}))}});const hr=["alt","src"],vr=e.defineComponent({__name:"TileIcon",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,hr))}});exports.Button=le;exports.FlexContainer=U;exports.Footer=Le;exports.Form=ge;exports.GridContainer=he;exports.GridItem=ir;exports.Header=$r;exports.Input=fe;exports.Nav=ve;exports.PdapInputTypes=b;exports.QuickSearchForm=gr;exports.TileIcon=vr;