PageSourceSearch

https://pdap.io/assets/create-CnwXrCaz.js

js pdap.io collected 2026-10-04 00:24:46 UTC 23,033 bytes, 1 lines download raw bytes

1import{as as e,at as a,au as t,av as n,a as l,aw as s,_ as r,E as o,o as u,c as i,b as c,K as d,w as f,e as p,u as m,ag as h,d as v,ah as g,F as y,f as b,i as x,Q as _,t as w,ak as C,ax as A,m as k,ay as I,W as S,az as R,L as D,aA as j,ai as O,aj as T,ac as E,D as P,C as L,al as U}from"./index-CcZ45_S5.js";import{_ as z,g as M}from"./typeahead-BamTYUl9.js";import{A as q,_ as $}from"./cloneDeep-RxEQWeo3.js";import{f as N}from"./_util-BF6Ko4Fx.js";import{p as W}from"./pluralize-j_3i0FJb.js";import{c as F}from"./data-sources-CbhDqZAQ.js";import{u as G}from"./useQueryClient-D_RWsVuD.js";import{u as H}from"./useMutation-Ca8CgNX9.js";import{b as K,c as Z,T as B}from"./queryKeys-DpAWY-q4.js";import{T as Q}from"./test-ids-C_9vcHPk.js";import{b as J}from"./route-block-B_A1xBdJ.js";import{_ as V}from"./_plugin-vue_export-helper-BCo6x5W8.js";import"./index.es-0vjt-INv.js";var Y,X,ee,ae,te,ne,le,se,re,oe,ue,ie,ce,de,fe,pe,me,he,ve,ge,ye,be,xe,_e,we,Ce,Ae,ke,Ie,Se,Re,De,je,Oe,Te,Ee,Pe,Le,Ue,ze,Me,qe;function $e(){if(ne)return te;ne=1;var e=(ae?ee:(ae=1,ee=function(e){return function(a){return null==e?void 0:e[a]}}))({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});return te=e}function Ne(){if(oe)return re;oe=1;var n=e(),l=se?le:(se=1,le=function(e,a){for(var t=-1,n=null==e?0:e.length,l=Array(n);++t<n;)l[t]=a(e[t],t,e);return l}),s=a(),r=t(),o=n?n.prototype:void 0,u=o?o.toString:void 0;return re=function e(a){if("string"==typeof a)return a;if(s(a))return l(a,e)+"";if(r(a))return u?u.call(a):"";var t=a+"";return"0"==t&&1/a==-1/0?"-0":t},re}function We(){if(ie)return ue;ie=1;var e=Ne();return ue=function(a){return null==a?"":e(a)}}function Fe(){if(be)return ye;be=1;var e=function(){if(pe)return fe;pe=1;var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;return fe=function(a){return a.match(e)||[]}}(),a=function(){if(he)return me;he=1;var e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;return me=function(a){return e.test(a)}}(),t=We(),n=function(){if(ge)return ve;ge=1;var e="\\ud800-\\udfff",a="\\u2700-\\u27bf",t="a-z\\xdf-\\xf6\\xf8-\\xff",n="A-Z\\xc0-\\xd6\\xd8-\\xde",l="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",s="["+l+"]",r="\\d+",o="["+a+"]",u="["+t+"]",i="[^"+e+l+r+a+t+n+"]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",f="["+n+"]",p="(?:"+u+"|"+i+")",m="(?:"+f+"|"+i+")",h="(?:['’](?:d|ll|m|re|s|t|ve))?",v="(?:['’](?:D|LL|M|RE|S|T|VE))?",g="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",y="[\\ufe0e\\ufe0f]?",b=y+g+"(?:\\u200d(?:"+["[^"+e+"]",c,d].join("|")+")"+y+g+")*",x="(?:"+[o,c,d].join("|")+")"+b,_=RegExp([f+"?"+u+"+"+h+"(?="+[s,f,"$"].join("|")+")",m+"+"+v+"(?="+[s,f+p,"$"].join("|")+")",f+"?"+p+"+"+h,f+"+"+v,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",r,x].join("|"),"g");return ve=function(e){return e.match(_)||[]}}();return ye=function(l,s,r){return l=t(l),void 0===(s=r?void 0:s)?a(l)?n(l):e(l):l.match(s)||[]}}function Ge(){if(_e)return xe;_e=1;var e=X?Y:(X=1,Y=function(e,a,t,n){var l=-1,s=null==e?0:e.length;for(n&&s&&(t=e[++l]);++l<s;)t=a(t,e[l],l,e);return t}),a=function(){if(de)return ce;de=1;
1var e=$e(),a=We(),t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,n=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");return ce=function(l){return(l=a(l))&&l.replace(t,e).replace(n,"")}}(),t=Fe(),n=RegExp("['’]","g");return xe=function(l){return function(s){return e(t(a(s).replace(n,"")),l,"")}}}function He(){if(ke)return Ae;ke=1;var e=Ce?we:(Ce=1,we=function(e,a,t){var n=-1,l=e.length;a<0&&(a=-a>l?0:l+a),(t=t>l?l:t)<0&&(t+=l),l=a>t?0:t-a>>>0,a>>>=0;for(var s=Array(l);++n<l;)s[n]=e[n+a];return s});return Ae=function(a,t,n){var l=a.length;return n=void 0===n?l:n,!t&&n>=l?a:e(a,t,n)}}function Ke(){if(Se)return Ie;Se=1;var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");return Ie=function(a){return e.test(a)}}function Ze(){if(Ee)return Te;Ee=1;var e=De?Re:(De=1,Re=function(e){return e.split("")}),a=Ke(),t=function(){if(Oe)return je;Oe=1;var e="\\ud800-\\udfff",a="["+e+"]",t="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\\ud83c[\\udffb-\\udfff]",l="[^"+e+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",r="[\\ud800-\\udbff][\\udc00-\\udfff]",o="(?:"+t+"|"+n+")?",u="[\\ufe0e\\ufe0f]?",i=u+o+"(?:\\u200d(?:"+[l,s,r].join("|")+")"+u+o+")*",c="(?:"+[l+t+"?",t,s,r,a].join("|")+")",d=RegExp(n+"(?="+n+")|"+c+i,"g");return je=function(e){return e.match(d)||[]}}();return Te=function(n){return a(n)?t(n):e(n)}}function Be(){if(ze)return Ue;ze=1;var e=function(){if(Le)return Pe;Le=1;var e=He(),a=Ke(),t=Ze(),n=We();return Pe=function(l){return function(s){s=n(s);var r=a(s)?t(s):void 0,o=r?r[0]:s.charAt(0),u=r?e(r,1).join(""):s.slice(1);return o[l]()+u}}}()("toUpperCase");return Ue=e}const Qe=n(function(){if(qe)return Me;qe=1;var e=Ge(),a=Be(),t=e(function(e,t,n){return e+(n?" ":"")+a(t)});return Me=t}()),Je={"Content-Type":"application/json",authorization:"Basic c93ccbf8-1a4b-45d1-9f56-24e75a4fac73"};const Ve={class:"overflow-x-hidden max-w-[1080px] mx-auto"},Ye=["for"],Xe=["innerHTML"],ea={key:1},aa={class:"text-lg col-span-2"},ta={key:0,class:"max-h-[6000px] overflow-hidden pb-20"},na={class:"mt-2"},la={class:"mt-2"},sa={class:"mt-2"},ra={class:"mt-2 grid md:grid-cols-2 lg:grid-cols-3"},oa={class:"flex gap-2 flex-col max-w-full md:flex-row md:col-start-1 md:col-end-2 mt-8"},ua={__name:"create",setup(e){function a(e){return String(e).toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}const t="source_url",n="readme_url",J="agencies",V="name",Y="description",X="record_type",ee="agency_supplied",ae="agency_originated",te="supplying_entity",ne="originating_entity",le="access_types",se="record_formats",re="update_method",oe="coverage_range",ue="coverage_start",ie="coverage_end",ce="retention_schedule",de="data_portal_type",fe="data_portal_type_other",pe="access_notes",me="submission_notes",he={"Police & Public Interactions":["Accident Reports","Arrest Records","Calls for Service","Car GPS","Citations","Dispatch Logs","Dispatch Recordings","Field Contacts","Incident Reports","Misc Police Activity","Officer Involved Shootings","Stops","Surveys","Use of Force Reports","Vehicle Pursuits"],"Info about officers":["Complaints & Misconduct","Daily Activity Logs","Training & Hiring Info","Personnel Records"],"Info about agencies":["Annual & Monthly Reports","Budgets & Finances","Contact Info & Agency Meta","Geographic","List of Data Sources","Policies & Contracts"],"Agency-published Resources":["Crime Maps & Reports","Crime Statistics","Media Bulletins","Records Request Info","Resources","Sex Offender Registry","Wanted Persons"],"Jails & courts":["Booking Reports","Court Cases","Incarceration Records"]},ve={"Police & Public Interactions":"tallest","Info about officers":"short","Info about agencies":"tall","Agency-published Resources":"taller","Jails & courts":"short"},ge=["web-page","download","api"].map(function(e){return{id:"input-"+e,name:le+"-"+e,label:ye(e)}});function ye(e){return e.replaceAll(/-/g," ").split(" ").map(e=>"api"===e?e.toUpperCase():"page"===e?e:Qe(e.toLocaleLowerCase())).join(" ")}const be=new Set(["csv","doc","gis","html","json","pdf","pdf:","rdf","rss","txt","xls","xml"]),xe=new Set(["table","text"]),_e=["audio","csv","dashboard_visualization","doc_txt","gis_shapef
1ile","google-sheets","html-table","html-text","json","other","pdf","pdf:-machine-created","pdf:-scanned","physical","rdf","rss","video_image","xls","xml"].map(function(e){return{id:se+"-"+e,name:se+"-"+e,label:we(e)}});function we(e){return e.replaceAll(/-/g," ").replaceAll(/_/g," / ").replaceAll(/__/g,": ").split(" ").map(e=>be.has(e)?e.toUpperCase():xe.has(e)?e:Qe(e.toLocaleLowerCase())).join(" ")}const Ce=["Overwrite","Insert","No updates"],Ae=["Future only","< 1 day","1 day","< 1 week","1 week","< 1 month","1 month","< 1 year","1 year","1-10 years","> 10 years"],ke=["ArcGIS","Benchmark / Pioneer Technology Group","Broadcastify","Carto","City","CityProtect","CKAN","County","CourtView Justice Solutions / equivant","CrimeGraphics","CrimeMapping","CTrack","DataWorks","Department","DKAN","DocumentCloud","DomainWeb","Doxpop","eCourt Kokua","eMagnus Multicourt","ESRI","Granicus","Judici","KellPro","LexisNexis","Microsoft Power BI","MuckRock","Open Data Soft","Open Knowledge Foundation","Opendata","Other","pandA","PROWARE","ShowCase / equivant","Socrata","SpotCrime","Tableau","Tyler Technologies","Xerox Government Systems","PowerDMS","SWIFTREPOSITORY"].map(e=>({label:e,value:e.toLowerCase().replaceAll(" ","_")})),Ie=[{name:t,validators:{required:{value:!0,message:"Please submit a url where data is accessible for this source."},url:{value:!0,message:"Please submit a valid url, including the scheme (http/https)."}}},{name:n,validators:{url:{value:!0,message:"Please submit a valid url, including the scheme (http/https)."}}},{name:V,validators:{required:{value:!0,message:"Please let us know what to call this request."}}},{name:Y,validators:{}},{name:X,validators:{required:{value:!0,message:"Please include a record type."}}}],Se=P(!1),Re=P(0),De=P(!0),je=P(!0),Oe=P(!1),Te=P([]),Ee=P(""),Pe=P(),Le=P([]),Ue=P(),ze=P(),Me=P(),qe=P(),$e=P(!1),Ne=G(),We=H({mutationFn:async e=>{qe.value&&(qe.value=""),await F(e),window.scrollTo(0,0);const a=`${e[V]} has been submitted successfully!\nIt will be available in our data sources database after approval.`;o.success(a,{autoClose:!1})},onSuccess:()=>{qe.value="",Ne.invalidateQueries({queryKey:[K]}),Ne.invalidateQueries({queryKey:[Z]}),Te.value=[],$e.value=!1},onError:e=>{e&&(console.error(e),qe.value="Something went wrong, please try again.",Ue.value.setValues({...Ue.value.values}))}});function Fe(e){const a=e.getTimezoneOffset();return(e=new Date(e.getTime()-60*a*1e3)).toISOString().split("T")[0]}function Ge(e){if(e[oe]){const[a,t]=e[oe];a instanceof Date&&(e[ue]=Fe(a)),t instanceof Date&&(e[ie]=Fe(t)),delete e[oe]}Ee.value&&(e.agency_described_not_in_database=Ee.value);const a=[],t=[];return Object.entries(e).forEach(([n,l])=>{const s=n.includes(le)&&n.length>le.length&&l,r=n.includes(se)&&n.length>se.length&&l;s?t.push(ye(n.replace(`${le}-`,"")).split(" ").join("")):r&&a.push(we(n.replace(`${se}-`,""))),(s||r)&&delete e[n]}),a.length&&(e[se]=a),t.length&&(e[le]=t),e}const He=L(()=>{var e;return[B,null==(e=ze.value)?void 0:e.value.toLowerCase()]}),Ke=H({mutationFn:async e=>{if(!e||e.length<=1)return Ne.getQueryData(He.value)||[];const a=await M(e);return a.length?a:void 0},onSuccess:e=>{Le.value=e,Ne.setQueryData(He,e,{staleTime:3e5})}}),Ze=r(async()=>{var e;const a=null==(e=ze.value)?void 0:e.value,t=Ne.getQueryData(He);t?Le.value=t:Ke.mutate(a)},200,{leading:!0,trailing:!0}),Be=r(async e=>{try{const a=(await async function(e){return await l.get(`https://data-sources.pdap.io/api/v2/check/${s.CHECK.UNIQUE_URL}`,{params:{url:e},headers:Je})}(e.target.value)).data.duplicates,t=a.length,n=`${t} ${W("data source",t)} already ${function(e,a,t=1){return 1===a?e:e.slice(0,-t)}("exists",t)} with the url ${e.target.value}.\n${1===t?"Its status is":"Their statuses are"} ${a.map(({approval_status:e})=>e).join(", ")}`;t&&!Pe.value?Pe.value=o.info(n,{autoClose:!1}):(o.remove(Pe.value),Pe.value=void 0)}catch(a){return}},350,{trailing:!0});async function ua(){var e;Re.value+=1,De.value=!0,je.value=!0,Oe.value=!1,await U(),Le.value=[],Te.value=[],Ee.value="",(null==(e=ze.value)?void 0:e.clearInput)&&ze.value.clearInput(),Pe.value&&(o.remove(Pe.value),Pe.value=void 0)}async function ia(e){$e.value=!0;const a=$(Te.value),t={...Ge(e),agency_ids:null==a?void 0:a.map(({id:e})=>e)};Ue.value.setValues({...e}),We.mutate(t)}return(e,l)=>(u(),i("main",Ve,[l[39]||(l[39]=c("h1",null,"New data source",-1)),(u(),d(m(E),{id:"new-data-source",key:Re.value,ref_key:"formRef",ref:Ue,error:qe.value,class:"flex flex-col gap-2",name:"new-request",schema:Ie,"data-test":m(Q).data_source_create_form,onSubmit:ia},{default:f(()=>[p(m(h),{id:"input-"+t,class:"md:col-span-2",name:t,placeholder:"A link where these records can be found or are referenced.","data-test":m(Q).data_source_create_url_input,onInput:m(Be)},{label:f(()=>[...l[7]||(l[7]=[c("h4",null,[v(" Source URL "),c("sup",null,"*")],-1)])]),_:1},8,["id","name","data-test","onInput"]),p(m(h),{id:"input-"+n,class:"md:col-span-2",name:n,placeholder:"A link to any contextual info, like a data dictionary or explanation of the data."},{label:f(()=>[...l[8]||(l[8]=[c("h4",null,"README URL",-1)])]),_:1},8,["id","name"]),c("label",{for:J,class:"py-1 md:col-span-2"}
1,[...l[9]||(l[9]=[c("h4",null,"What agency is covered by this source?",-1)])],8,Ye),Te.value?(u(),d(g,{key:0,name:"list"},{default:f(()=>[(u(!0),i(y,null,b(Te.value,e=>(u(),d(q,{key:JSON.stringify(e),class:"md:col-span-2",content:m(N)(e),"on-click":()=>{const a=Te.value.indexOf(e);a>-1&&Te.value.splice(a,1)}},null,8,["content","on-click"]))),128))]),_:1})):x("",!0),p(z,{id:J,ref_key:"typeaheadRef",ref:ze,class:"md:col-span-2",error:Me.value,"format-item-for-display":m(N),items:Le.value,placeholder:Te.value.length?"Enter another agency":"Enter an agency",onSelectItem:l[1]||(l[1]=e=>{e&&(Te.value=[...Te.value,e],Le.value=[],ze.value.clearInput(),ze.value.focusInput())}),onOnInput:m(Ze)},{item:f(e=>{var a;return[c("span",{innerHTML:null==(a=ze.value)?void 0:a.boldMatchText(m(N)(e))},null,8,Xe),l[10]||(l[10]=c("span",{class:"select"},"Select",-1))]}),"not-found":f(()=>[c("span",null,[p(m(_),{class:"text-left p-0",intent:"tertiary",type:"button",onClick:l[0]||(l[0]=()=>{Ee.value=ze.value.value,Le.value=[],ze.value.clearInput()})},{default:f(()=>[l[11]||(l[11]=c("strong",null,"No results found.",-1)),v(" Would you like to suggest "+w(ze.value.value)+" be added to our agencies database? ",1)]),_:1})])]),_:1},8,["id","error","format-item-for-display","items","placeholder","onOnInput"]),Ee.value?(u(),i("div",ea,[l[12]||(l[12]=c("h4",null,"Agency not found",-1)),l[13]||(l[13]=c("p",{class:"text-sm max-w-full"}," We will attempt to find this agency and add it to our database as a part of this request ",-1)),p(g,{name:"list"},{default:f(()=>[p(q,{class:"md:col-span-2",content:Ee.value,onClick:l[2]||(l[2]=e=>Ee.value="")},null,8,["content"])]),_:1})])):x("",!0),p(m(h),{id:"input-"+V,class:"md:col-start-1 md:col-end-2",name:V,placeholder:"For example, “Arrest records for Portsmouth PD”",rows:"4"},{label:f(()=>[...l[14]||(l[14]=[c("h4",null,[v(" Source name "),c("sup",null,"*")],-1)])]),_:1},8,["id","name"]),p(m(C),{id:"input-"+Y,class:"md:col-start-2 md:col-end-3",name:Y,placeholder:"If the source is difficult to understand or categorize, please share more information about how it was processed or can be used.",rows:"4"},{label:f(()=>[...l[15]||(l[15]=[c("h4",null,"Description",-1)])]),_:1},8,["id","name"]),p(m(A),{class:"record-type-group",name:X},{default:f(()=>[l[16]||(l[16]=c("h4",{class:"col-span-2"},[v(" Record type "),c("sup",null,"*")],-1)),(u(!0),i(y,null,b(Object.entries(he),([e,t])=>(u(),i("div",k({key:e},{ref_for:!0},{[ve[e]]:!0}),[c("h5",aa,w(e),1),(u(!0),i(y,null,b(t,e=>(u(),d(m(I),{id:e,key:e,name:X,value:e,label:e,"data-test":`record-type-${a(e)}`},null,8,["id","name","value","label","data-test"]))),128))],16))),128))]),_:1},8,["name"]),l[38]||(l[38]=c("p",{class:"mt-4"},[c("sup",null,"*"),v(" These fields are required ")],-1)),p(S,null,{default:f(()=>[Se.value?(u(),i("div",ta,[c("div",null,[c("div",na,[l[18]||(l[18]=c("h4",null,"Agency supplied",-1)),l[19]||(l[19]=c("p",{class:"text-sm max-w-full lg:w-3/4"},' Is the relevant agency also the entity supplying the data? This may be "no" if the agency or local government contracted with a third party to publish this data, or if a third party was the original record-keeper. ',-1)),p(m(R),{id:"input-"+ee,class:"md:col-start-1 md:col-end-2",name:ee,"default-checked":!0,label:"Agency supplied data?",onChange:l[3]||(l[3]=e=>De.value=e.target.checked)},null,8,["id","name"]),D(p(m(C),{id:"input-"+te,class:"md:col-start-1 md:col-end-2",name:te,placeholder:"Who made this information available? Please provide a link to their website and contact information.",rows:"4"},{label:f(()=>[...l[17]||(l[17]=[c("h4",null,"Supplying entity",-1)])]),_:1},8,["id","name"]),[[j,!De.value]])]),D(c("div",la,[l[21]||(l[21]=c("h4",null,"Agency originated",-1)),l[22]||(l[22]=c("p",{class:"text-sm max-w-full lg:w-3/4"},' Is the relevant agency also the original record keeper? This is usually "yes", unless a third party collected data about a police agency. ',-1)),p(m(R),{id:"input-"+ae,class:"md:col-start-1 md:col-end-2",name:ae,"default-checked":!0,label:"Agency originated data?",onChange:l[4]||(l[4]=e=>je.value=e.target.checked)},null,8,["id","name"]),D(p(m(C),{id:"input-"+ne,class:"md:col-start-1 md:col-end-2",name:ne,placeholder:"Who originally collected these records? Please provide a link to their website.",rows:"4"},{label:f(()=>[...l[20]||(l[20]=[c("h4",null,"Originating entity",-1)])]),_:1},8,["id","name"]),[[j,!je.value]])],512),[[j,!De.value]]),c("div",sa,[l[23]||(l[23]=c("h4",null,"Access type",-1)),l[24]||(l[24]=c("p",{class:"text-sm max-w-full"},"How can the data be acquired?",-1)),(u(!0),i(y,null,b(m(ge),e=>(u(),d(m(R),{id:e.id,key:e.name,name:e.name,label:e.label,class:"md:col-start-1 md:col-end-2"},null,8,["id","name","label"]))),128))]),c("div",ra,[l[25]||(l[25]=c("h4",{class:"md:col-span-2 lg:col-span-3"},"Formats available",-1)),l[26]||(l[26]=c("p",{class:"text-sm max-w-full md:col-span-2 lg:col-span-3"}," This applies to the records themselves. ",-1)),(u(!0),i(y,null,b(m(_e),e=>(u(),d(m(R),{id:e.id,key:e.name,name:e.name,label:e.label,class:"w-[max-content]"},null,8,["id","name","label"]))),128))]),p(m(A),{class:"mt-4",name:re},{default:f(()=>
1[l[27]||(l[27]=c("h4",null,"Update method",-1)),l[28]||(l[28]=c("p",{class:"text-sm"}," How are new records added to this data source? ",-1)),(u(),i(y,null,b(Ce,e=>p(m(I),{id:e,key:e,name:re,value:e,label:e,"data-test":`update-method-${a(e)}`},null,8,["id","name","value","label","data-test"])),64))]),_:1},8,["name"]),p(m(O),{id:oe,name:oe,position:"left",range:""},{label:f(()=>[...l[29]||(l[29]=[c("h4",null,"Coverage",-1),c("p",{class:"text-sm max-w-full"}," If coverage is up to present-day, only select the beginning date. ",-1)])]),_:1},8,["id","name"]),p(m(A),{class:"mt-2 grid md:grid-cols-2 lg:grid-cols-3",name:ce},{default:f(()=>[l[30]||(l[30]=c("h4",{class:"md:col-span-2 lg:col-span-3"},"Retention schedule",-1)),l[31]||(l[31]=c("p",{class:"text-sm max-w-full md:col-span-2 lg:col-span-3"}," How long are records kept? There may be guidelines regarding how long important information must remain accessible for future use. ",-1)),(u(),i(y,null,b(Ae,e=>p(m(I),{id:e,key:e,name:ce,value:e,label:e},null,8,["id","name","value","label"])),64))]),_:1},8,["name"]),p(m(T),{id:de,name:de,options:m(ke),combobox:"",placeholder:"Select the data portal type.",onChange:l[5]||(l[5]=({value:e})=>{Oe.value="Other"===e})},{label:f(()=>[...l[32]||(l[32]=[c("h4",null,"Data portal type",-1),c("p",{class:"text-sm max-w-full lg:w-3/4"},' Some data is published via a standard third-party portal, typically named somewhere on the page. Select "Other" if the site uses a data portal we don\'t have listed. ',-1)])]),_:1},8,["id","name","options"]),D(p(m(h),{id:"input-"+fe,class:"md:col-start-1 md:col-end-2",name:fe,placeholder:"Provide a name for the Data Portal, since 'Other' was selected."},{label:f(()=>[...l[33]||(l[33]=[c("h4",null,"Data portal type—other",-1)])]),_:1},8,["id","name"]),[[j,Oe.value]]),p(m(C),{id:"input-"+pe,class:"md:col-start-1 md:col-end-2",name:pe,placeholder:"Anything else we should know about how to get this data?",rows:"4","data-test":m(Q).data_source_create_access_notes},{label:f(()=>[...l[34]||(l[34]=[c("h4",null,"Access notes",-1)])]),_:1},8,["id","name","data-test"]),p(m(C),{id:"input-"+me,class:"md:col-start-1 md:col-end-2",name:me,placeholder:"Did you encounter an issue using this form? Were you unable to select an option you needed or give us information we did not ask for? Is there something special about this Data Source?",rows:"4","data-test":m(Q).data_source_create_submission_notes},{label:f(()=>[...l[35]||(l[35]=[c("h4",null,"Submission notes",-1)])]),_:1},8,["id","name","data-test"])])])):x("",!0)]),_:1}),c("div",oa,[p(m(_),{disabled:m(We).isLoading,"is-loading":m(We).isLoading,class:"min-w-52",intent:"primary",type:"submit","data-test":m(Q).data_source_create_submit},{default:f(()=>[...l[36]||(l[36]=[v(" Submit data source ",-1)])]),_:1},8,["disabled","is-loading","data-test"]),p(m(_),{disabled:m(We).isLoading,intent:"secondary",type:"button",onClick:ua},{default:f(()=>[...l[37]||(l[37]=[v(" Clear ",-1)])]),_:1},8,["disabled"]),p(m(_),{disabled:$e.value,intent:"secondary",type:"button","data-test":m(Q).data_source_create_advanced,onClick:l[6]||(l[6]=e=>Se.value=!Se.value)},{default:f(()=>[v(w(Se.value?"Hide":"Show")+" advanced properties ",1)]),_:1},8,["disabled","data-test"])])]),_:1},8,["error","data-test"]))]))}};"function"==typeof J&&J(ua);const ia=V(ua,[["__scopeId","data-v-2d2d9935"]]);export{ia as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.