1import{X as v,i as b,ar as s,p as i,ae as e,h as a,o as p,a8 as u}from"./vue.esm-bundler-CYV8saav.js";import y from"./AdminLayout-DvTqOUW6.js";import{a5 as d}from"./ui-helpers-C741zdWg.js";import{al as c}from"./index-BhCoBngn.js";import{s as r}from"./index-DX25hegi.js";import{d as g,c as _}from"./index-D-9yg19i.js";import{s as x}from"./index-BLLYiX1l.js";import{s as m}from"./index-8bT5FrYN.js";import"./index-CeLM1dQS.js";import"./index-DXd7RfFW.js";import"./index-DS5Q5xVh.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./jquery-BLA9mI6H.js";import"./index-B40i1ps6.js";import"./index-DJoyP7oW.js";import"./index-R-OsJapo.js";import"./index-xLWCCSLt.js";import"./index-Skt2I3Bn.js";import"./index-D-JTBiGW.js";import"./index-BqJaRvvM.js";const h={class:"bg-white rounded-lg shadow"},w={class:"p-4 mb-4 border-b flex flex-column gap-3 md:flex-row md:align-items-center md:justify-content-between"},k={class:"flex gap-2"},G={__name:"Index",props:{states:Object},setup(n){return g(),(l,o)=>(v(),b(y,{title:"Disclosure States"},{default:s(()=>[i(e(_)),a("div",h,[a("div",w,[o[2]||(o[2]=a("div",null,[a("h2",{class:"text-lg font-semibold m-0"},"Disclosure State Participation"),a("p",{class:"text-600 mt-2 mb-0"},"Disclosure states are opt-in participation records backed by canonical state identities.")],-1)),i(e(c),{label:"Add State",icon:"pi pi-plus",onClick:o[0]||(o[0]=t=>e(d).visit(l.route("disclosures.admin.states.create")))})]),i(e(x),{value:n.states.data,paginator:!0,rows:n.states.per_page||10,first:((n.states.current_page||1)-1)*(n.states.per_page||10),totalRecords:n.states.total,lazy:"",onPage:o[1]||(o[1]=t=>e(d).visit(l.route("disclosures.admin.states.index",{page:t.page+1}))),stripedRows:""},{default:s(()=>[i(e(r),{field:"name",header:"Name",sortable:""}),i(e(r),{field:"id",header:"Abbreviation"}),i(e(r),{field:"counties_count",header:"Counties"},{body:s(({data:t})=>[p(u(t.counties_count||0),1)]),_:1}),i(e(r),{field:"is_active",header:"Status"},{body:s(({data:t})=>[i(e(m),{value:t.is_active?"Active":"Inactive",severity:t.is_active?"success":"danger"},null,8,["value","severity"])]),_:1}),i(e(r),{field:"requires_external_pdfs",header:"External PDFs"},{body:s(({data:t})=>[i(e(m),{value:t.requires_external_pdfs?"Required":"Optional",severity:t.requires_external_pdfs?"warning":"info"},null,8,["value","severity"])]),_:1}),i(e(r),{field:"cities_count",header:"Cities"},{body:s(({data:t})=>[p(u(t.cities_count||0),1)]),_:1}),i(e(r),{header:"Actions",style:{width:"120px"}},{body:s(({data:t})=>[a("div",k,[i(e(c),{icon:"pi pi-eye",severity:"info",text:"",rounded:"",onClick:f=>e(d).visit(l.route("disclosures.admin.states.show",t.id))},null,8,["onClick"]),i(e(c),{icon:"pi pi-pencil",severity:"warning",text:"",rounded:"",onClick:f=>e(d).visit(l.route("disclosures.admin.states.edit",t.id))},null,8,["onClick"])])]),_:1})]),_:1},8,["value","rows","first","totalRecords"])])]),_:1}))}};export{G 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.