1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8812],{85135:(e,r,a)=>{"use strict";a.r(r),a.d(r,{INFO_ASSISTANCES_QUERY:()=>N,default:()=>S});var s=a(28888),t=a(37876),n=a(86191),i=a(31167),o=a(14232),l=a(48230),c=a.n(l),d=a(71931),m=a(60357),u=a(5967),p=a(71534),g=a(73678);function h(){let e=(0,s._)(["\n query INFO_ASSISTANCES_QUERY($programIDs: [Int]) {\n infoassistances(programIDs: $programIDs) {\n InfoAssistanceID\n Date\n PersonFirstName\n PersonLastName\n Description\n ProgramID\n ProgramName\n CountyName\n }\n }\n"]);return h=function(){return e},e}let{Title:f,ErrorText:I}=a(63200),N=(0,n.J1)(h()),A=e=>{let r=void 0!=localStorage&&JSON.parse(localStorage.getItem("INFO_ASSISTANCES_VARIABLES")),[a,s]=(0,o.useState)(r&&r||{ProgramID:0,ProgramName:"",__typename:"Program"}),n=(0,o.useContext)(g.A);(0,o.useEffect)(()=>{localStorage&&a&&localStorage.setItem("INFO_ASSISTANCES_VARIABLES",JSON.stringify(a))},[a]);let{loading:l,error:h,data:A}=(0,i.I)(N,{variables:{programIDs:[a?a.ProgramID:n&&n.Auth.isWebAdmin?0:n.Auth.programs]}});if(l)return(0,t.jsx)(p.A,{});if(h)return(0,t.jsxs)(I,{children:["Error: ",h.message()]});if(!(n&&(n.Auth.isWebAdmin||n.Auth.programs.length>0)))return(0,t.jsx)(I,{children:"Access Denied"});function S(e){s(e)}return(0,t.jsx)("div",{className:"p-fluid",children:(0,t.jsx)("div",{className:"p-grid",children:(0,t.jsxs)("div",{className:"p-col-12",children:[(0,t.jsxs)("div",{className:"card card-w-title p-card",children:[(0,t.jsx)(f,{children:"Information and Assistance List"}),(0,t.jsxs)("div",{className:"p-grid",children:[(0,t.jsx)("div",{className:"p-col-12 p-md-2",children:(0,t.jsx)("label",{htmlFor:"Program",children:"Program:"})}),(0,t.jsx)("div",{className:"p-col-12 p-md-10",children:n.Auth.isWebAdmin?(0,t.jsx)(u.A,{inputId:"Program",updateProgram:S,Program:a,autoFocus:!0,defaultToFirstOption:!0}):(0,t.jsx)(u.A,{inputId:"Program",updateProgram:S,Program:a,autoFocus:!0,defaultToFirstOption:!0,IDs:n.Auth.programs})})]})]}),(0,t.jsx)("div",{className:"card card-w-title p-card",children:(0,t.jsxs)(d.b,{className:"datatable-inside-card",value:A.infoassistances,paginator:!0,rows:20,responsiveLayout:"scroll",responsive:!0,columnResizeMode:"fit",resizableColumns:!0,children:[(0,t.jsx)(m.V,{field:"Date",header:"Date",sortable:!0,body:e=>(0,t.jsx)(c(),{href:{pathname:"/infoassistance/infoassistancedetails",query:{id:e.InfoAssistanceID}},prefetch:!1,children:new Date(Date.parse(e.Date)).toLocaleDateString()})}),(0,t.jsx)(m.V,{field:"Description",header:"Description",sortable:!0}),(0,t.jsx)(m.V,{field:"ProgramName",header:"Program",sortable:!1,body:e=>(0,t.jsx)(c(),{href:{pathname:"/program/programdetails",query:{id:e.ProgramID}},prefetch:!1,children:e.ProgramName})})]})})]})})})};A.getInitialProps=e=>({query:e.query});let S=A},98369:(e,r,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/infoassistance",function(){return a(85135)}])}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=98369)),_N_E=e.O()}]);
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.