1"use strict";(self.webpackChunkocpfuswebsite=self.webpackChunkocpfuswebsite||[]).push([[346],{6346:(e,t,i)=>{i.r(t),i.d(t,{default:()=>B});var n=i(5043),s=i(3950),r=i.n(s),l=i(8142),a=i(4496),c=i(3509),d=i(6240),o=i(344),h=i(8911),x=i(7254),f=i(8446),A=i(9336),u=i(1828),j=i(4511),p=i(3193),g=i(2788),m=i(7353),v=i(3552),b=i(4466),y=i(3632),C=i(9650),w=i(1806),z=i(4882),W=i(8076),O=i(39),F=i(3460),S=i(579);const P=e=>{var t;return(0,S.jsx)(S.Fragment,{children:(0,S.jsx)(C.A,{children:(0,S.jsxs)(w.A,{"aria-label":"recently organized table",size:"small",children:[(0,S.jsx)(z.A,{children:(0,S.jsxs)(W.A,{children:[(0,S.jsx)(O.A,{children:(0,S.jsx)(a.A,{variant:"subtitle1",fontWeight:600,children:"CPF ID"})}),(0,S.jsx)(O.A,{children:(0,S.jsx)(a.A,{variant:"subtitle1",fontWeight:600,children:"Name/Address"})}),"C"===e.type&&(0,S.jsx)(O.A,{children:(0,S.jsx)(a.A,{variant:"subtitle1",fontWeight:600,children:"Office/District"})}),"C"===e.type&&(0,S.jsx)(O.A,{children:(0,S.jsx)(a.A,{variant:"subtitle1",fontWeight:600,children:"Party"})}),(0,S.jsx)(O.A,{children:(0,S.jsx)(a.A,{variant:"subtitle1",fontWeight:600,children:"Organized"})}),(0,S.jsx)(O.A,{children:(0,S.jsx)(a.A,{variant:"subtitle1",fontWeight:600,children:"Form"})})]})}),(0,S.jsx)(F.A,{children:null===(t=e.filers)||void 0===t?void 0:t.map((t=>(0,S.jsxs)(W.A,{sx:{"&:last-child td, &:last-child th":{border:0},"&:nth-of-type(odd)":{backgroundColor:"#fafafa"}},children:[(0,S.jsx)(O.A,{scope:"row",children:(0,S.jsx)(a.A,{variant:"subtitle1",component:f.A,href:`/filers?q=${t.cpfId}`,underline:"hover",children:t.cpfId})}),(0,S.jsxs)(O.A,{children:[(0,S.jsx)(a.A,{variant:"subtitle1",fontWeight:550,children:t.fullNameReverse}),(0,S.jsx)(a.A,{color:"text.secondary",component:"i",variant:"subtitle2",children:t.fullAddress})]}),"C"===e.type&&(0,S.jsx)(O.A,{children:(0,S.jsx)(a.A,{variant:"subtitle1",children:t.officeSoughtDescription})}),"C"===e.type&&(0,S.jsx)(O.A,{children:t.partyAffiliation&&(0,S.jsx)(a.A,{variant:"subtitle1",fontWeight:600,children:t.partyAffiliation})}),(0,S.jsx)(O.A,{children:(0,S.jsx)(a.A,{variant:"subtitle1",children:t.organizationDate})}),(0,S.jsx)(O.A,{children:t.organizationFormFileName&&(0,S.jsx)(a.A,{variant:"subtitle1",component:f.A,href:t.organizationStatementBlobUrl,target:"_blank",underline:"hover",children:"Statement Link"})})]},t.cpfId)))})]})})})},k=e=>{const[t,i]=(0,n.useState)([]),{showBoundary:s}=(0,y.Md)();(0,n.useEffect)((()=>{r()}),[e.tpye,e.officeName]);const r=async()=>{try{var t;await fetch(`https://api.ocpf.us/filers/recentlyOrganized/${e.tpye}?officeFilter=${null!==(t=e.officeName)&&void 0!==t?t:""}`).then((e=>(e.ok||s(new Error("Failed to get recently organized candidate list.")),e.json()))).then((e=>{i(e)}))}catch(n){console.error("Uncaught Error:",n)}};return(0,S.jsx)(m.A,{marginTop:4,children:(0,S.jsx)(P,{filers:t,type:e.tpye})})},N=()=>{const[e,t]=(0,n.useState)([]),{showBoundary:i}=(0,y.Md)();(0,n.useEffect)((()=>{s()}),[]);const s=async()=>{try{await fetch("https://api.ocpf.us/filers/changesOfPurpose").then((e=>(e.ok||i(new Error("Failed to get recently organized change of purpose candidate list.")),e.json()))).then((e=>{t(e)}))}catch(e){console.error("Uncaught Error:",e)}};return(0,S.jsx)(m.A,{marginTop:4,children:(0,S.jsx)(C.A,{children:(0,S.jsxs)(w.A,{"aria-label":"Change of Purpose table",size:"small",children:[(0,S.jsx)(z.A,{children:(0,S.jsxs)(W.A,{children:[(0,S.jsx)(O.A,{sx:{width:80},children:(0,S.jsx)(a.A,{variant:"subtitle1",fontWeight:600,children:"CPF ID"})}),(0,S.jsx)(O.A,{children:(0,S.jsx)(a.A,{variant:"subtitle1",fontWeight:600,children:"Name/Address"})}),(0,S.jsx)(O.A,{children:(0,S.jsx)(a.A,{variant:"subtitle1",fontWeight:600,children:"Old Office Sought"})}),(0,S.jsx)(O.A,{children:(0,S.jsx)(a.A,{variant:"subtitle1",fontWeight:600,children:"New Office Sought"})}),(0,S.jsx)(O.A,{children:(0,S.jsx)(a.A,{variant:"subtitle1",fontWeight:600,children:"Changed On"})})]})}),(0,S.jsx)(F.A,{children:null===e||void 0===e?void 0:e.map(((e,t)=>(0,S.jsxs)(W.A,{sx:{"&:last-child td, &:last-child th":{border:0},"&:nth-of-type(odd)":{backgroundColor:"#fafafa"}},children:[(0,S.jsx)(O.A,{children:(0,S.jsx)(a.A,{variant:"subtitle1",component:f.A,href:`/Filers?q=${e.cpfId}`,underline:"none",children:e.cpfId})}),(0,S.jsxs)(O.A,{children:[(0,S.jsx)(a.A,{variant:"subtitle1",fontWeight:550,children:e.fullNameReverse}),(0,S.jsx)(a.A,{color:"text.secondary",component:"i",variant:"subtitle2",children:e.fullAddress})]}),(0,S.jsx)(O.A,{children:(0,S.jsx)(a.A,{variant:"subtitle1",children:e.oldOfficeDistrict})}),(0,S.jsx)(O.A,{children:(0,S.jsx)(a.A,{variant:"subtitle1",children:e.newOfficeDistrict})}),(0,S.jsx)(O.A,{width:120,children:(0,S.jsx)(a.A,{variant:"subtitle1",children:e.date})})]},t)))})]})})})},B=()=>{document.title="OCPF - Recently Organized";const e=(0,d.A)(),t=(0,o.A)(e.breakpoints.up("md"),{defaultMatches:!0}),i=["Candidates","Change of Purpose","PACs","Ballot Questions","Segregated Accounts"],[s,y]=(0,n.use
1State)("Candidates"),[C,w]=(0,n.useState)(""),z=(e,t)=>{null!==t&&y(t)},W=r()((e=>{const t=e.target.value.toLowerCase();w(t)}),1e3);return(0,S.jsx)(c.A,{children:(0,S.jsxs)(v.A,{children:[(0,S.jsx)(b.A,{}),(0,S.jsx)(a.A,{variant:"h5",align:"left",sx:{fontWeight:700},paddingTop:3,gutterBottom:!0,marginBottom:2,children:"Recently Organized Filers"}),(0,S.jsx)(h.A,{sx:{width:"100%"},spacing:2,children:(0,S.jsxs)(x.A,{severity:"info",children:["Follow ",(0,S.jsx)(f.A,{target:"_blank",href:"https://x.com/OCPFORG",children:"OCPFORG"})," on X for up-to-date announcements on newly organized candidates and political committees, as well as candidates who change their office sought."]})}),(0,S.jsx)(A.A,{}),(0,S.jsxs)(l.A,{container:!0,marginTop:3,children:[(0,S.jsxs)(l.A,{size:12,display:"flex",flexWrap:"wrap",children:[(0,S.jsx)(u.A,{exclusive:!0,fullWidth:!t,"aria-label":"filer types",size:"small",color:"primary",value:s,onChange:z,children:i.slice(0,3).map((e=>(0,S.jsx)(j.A,{value:e,"aria-label":`filer data - ${e}`,sx:{fontWeight:800,width:t?200:"auto"},children:e},e)))}),(0,S.jsx)(u.A,{exclusive:!0,fullWidth:!t,"aria-label":"filer content types",size:"small",color:"primary",value:s,onChange:z,children:i.slice(3).map((e=>(0,S.jsx)(j.A,{value:e,"aria-label":`filer data - ${e}`,sx:{fontWeight:800,width:t?200:"auto"},children:e},e)))})]}),"Candidates"===s&&(0,S.jsx)(l.A,{size:12,marginTop:3,children:(0,S.jsx)(p.A,{size:"small",sx:{maxWidth:300},variant:"outlined",children:(0,S.jsx)(g.A,{label:"Search Office Name",size:"small",onChange:W,sx:{fontSize:"smaller"}})})}),(0,S.jsx)(l.A,{size:12,children:(0,S.jsxs)(m.A,{children:["Change of Purpose"===s&&(0,S.jsx)(N,{}),"Candidates"===s&&(0,S.jsx)(k,{tpye:"C",officeName:C}),"PACs"===s&&(0,S.jsx)(k,{tpye:"P"}),"Ballot Questions"===s&&(0,S.jsx)(k,{tpye:"B"}),"Segregated Accounts"===s&&(0,S.jsx)(k,{tpye:"S"})]})})]})]})})}}}]); 2//# sourceMappingURL=346.01fcd112.chunk.js.map
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.