1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5607],{6236:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/endorsements",function(){return t(95889)}])},95889:function(n,e,t){"use strict";t.r(e),t.d(e,{__N_SSG:function(){return O},default:function(){return R}});var i=t(29815),r=t(85893),o=t(67294),s=t(41664),a=t.n(s),c=t(30587),d=t(92201),l=t(71264),u=t(79796),h=t(95825),p=t(98928),g=t(54845),f=t(41799),m=t(69396),x=t(7297),j=t(79233),v=t(23157),Z=t(68777),b=t(40656);function w(){var n=(0,x.Z)(["\n width: 100%;\n"]);return w=function(){return n},n}var S=b.Z.colors.darkRed,_=b.Z.colors.white,E=Z.ZP.div.withConfig({componentId:"sc-f1106bdd-0"})(w()),N=function(n){return(0,r.jsx)("div",(0,m.Z)((0,f.Z)({},n),{children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20.154",height:"27.225",viewBox:"0 0 20.154 27.225",style:{width:"100%",height:"100%"},children:(0,r.jsxs)("g",{transform:"translate(-827.762 -1672.659)",children:[(0,r.jsx)("path",{d:"M0,0,10.077,10.077,20.154,0Z",transform:"translate(827.762 1689.806)",fill:S}),(0,r.jsx)("path",{d:"M0,0,10.077,10.077,20.154,0Z",transform:"translate(847.916 1682.736) rotate(180)",fill:S})]})})}))},C=function(n){return(0,r.jsx)(j.c.DropdownIndicator,(0,m.Z)((0,f.Z)({},n),{children:(0,r.jsx)(N,{style:{width:15,height:15}})}))},P=function(n){return(0,r.jsx)(j.c.ClearIndicator,(0,m.Z)((0,f.Z)({},n),{children:(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18.271",height:"18.271",viewBox:"0 0 18.271 18.271",style:{width:12,height:12},children:[(0,r.jsx)("rect",{width:"4.08",height:"21.76",transform:"translate(0 2.885) rotate(-45)",fill:S}),(0,r.jsx)("rect",{width:"4.08",height:"21.76",transform:"translate(15.386) rotate(45)",fill:S})]})}))},I={control:function(n){return(0,m.Z)((0,f.Z)({},n),{minWidth:285,borderRadius:0,background:_,boxShadow:"none",outline:"none",borderColor:_,padding:"0 10px 0",height:42,display:"flex",alignItems:"center","&:hover":{borderColor:S},"&:focus":{boxShadow:0}})},clearIndicator:function(n){return(0,m.Z)((0,f.Z)({},n),{color:S})},dropdownIndicator:function(n){return(0,m.Z)((0,f.Z)({},n),{color:S,padding:0})},indicatorSeparator:function(){return{}},placeholder:function(n){return(0,m.Z)((0,f.Z)({},n),{color:S,fontSize:18,fontWeight:400,padding:0,margin:0})},singleValue:function(n){return(0,m.Z)((0,f.Z)({},n),{color:S,fontSize:18,fontWeight:400,padding:0,margin:0})},valueContainer:function(n){return(0,m.Z)((0,f.Z)({},n),{color:S,fontSize:18,fontWeight:400,padding:0,margin:0})},input:function(n){return(0,m.Z)((0,f.Z)({},n),{color:S,fontSize:18,fontWeight:400,padding:0,margin:0})},option:function(n,e){return(0,m.Z)((0,f.Z)({},n),{padding:"7px 12px",fontSize:18,color:e.isSelected?_:"#171717",backgroundColor:e.isSelected?S:e.isFocused?"#e3e3e3":"transparent","&:active":{backgroundColor:S,color:_}})},menu:function(n){return(0,m.Z)((0,f.Z)({},n),{borderRadius:0,marginTop:1,marginBottom:1,paddingTop:0,paddingBottom:0,border:"none",background:"#f3f3f3",zIndex:9999})},menuList:function(n){return(0,m.Z)((0,f.Z)({},n),{paddingTop:0,paddingBottom:0})}},M=function(n){var e=n.options,t=void 0===e?[]:e,i=n.placeholder,o=void 0===i?"":i,s=n.noOptionsMessage,a=void 0===s?"No state found in this search":s,c=n.onChange;return(0,r.jsx)(E,{children:(0,r.jsx)(v.ZP,{components:{DropdownIndicator:C,ClearIndicator:P},options:t,styles:I,isSearchable:!0,isClearable:!0,placeholder:o,onChange:c,noOptionsMessage:function(){return a}})})},T=t(4100),y=[{url:"/pastendorsements",label:"Past Endorsements",description:"View TPAction\u2019s past endorsements",icon:(0,r.jsx)("img",{src:"/static/images/endorsements/icon-clock.svg",alt:"Past Endorsements"})},{url:"/endorsementrequest",label:"Endorsement Requests",description:"Interested in receiving an endorsement? Apply here!",icon:(0,r.jsx)("img",{src:"/static/images/endorsements/icon-doc.svg",alt:"Endorsement Requests"})},{url:"/rec",label:"ENDORSEMENT RECOMMENDATION",description:"Recommend a candidate for a TPAction Endorsement",icon:(0,r.jsx)("img",{src:"/static/images/endorsements/verified-badge.svg",alt:"ENDORSEMENT RECOMMENDATION"})},{url:"/contactus",label:"Press Inquiries",description:"Submit a press inquiry today",icon:(0,r.jsx)("img",{src:"/static/images/endorsements/icon-question.svg",alt:"Press Inquiries"})}],k=function(n){var e,t,i=n.item,o=n.bgcolor,s=n.selectedState,a=(null===(e=i.content)||void 0===e||null===(t=e[0])||void 0===t?void 0:t.users)||[],c=s?a.filter((function(n){var e;return(null===(e=n.acf)||void 0===e?void 0:e.state)===s})):a;return(0,r.jsx)(g.H9,{bgcolor:o,children:(0,r.jsxs)(g.fP,{children:[(0,r.jsx)(g.x9,{children:i.label}),c.length?(0,r.jsx)(g.D9,{children:c.map((function(n){return(0,r.jsx)(T.Z,{avatar:n.acf.avatar.url,name:n.display_name,district:n.acf.title,state:n.acf.state,slug:n.user_nicename,is_legislator:n.is_legislator},n.ID)}))}):(0,r.jsx)(g.mU,{bgcolor:o,children:"No endorsements found in this state."})]})})},O=!0,R=function(n){var e,t=n.page,s=(0,c.GS)({maxWidth:767}),f=(0,o.useState)(null),m=f[0],x=f[1],j=((null===(e=t.acf.components.find((function(n){return"collapsable"===n.acf_fc_layout})))||void 0===e?void 0:e.content)||[]).filter((function(n){return!1===n.filters.endorsements.past})),v=(0,i.Z)(new Set(j.flatMap((function(n){var e,t;return(null===(e=n.content)||void 0===e||null===(t=e[0])||void 0===t?void 0:t.users)||[]})).map((function(n){var e;return null===(e=n.acf)||void 0===e?void 0:e.state}
1)).filter(Boolean))).sort().map((function(n){return{label:n,value:n}}));return t&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Z,{title:t.acf.page.title,og_title:t.acf.page.title,description:"Your partner in building a stronger future for Arizona.",og_image:"/static/images/sharing/endorsements.jpg"}),(0,r.jsx)(l.Z,{color:"sapphire",bgcolor:"white"}),(0,r.jsx)(u.Z,{}),(0,r.jsxs)(g.im,{children:[(0,r.jsxs)(g.VM,{children:[s?(0,r.jsx)(g.Jc,{src:"https://cdn.tpaction.com/assets/videos/endorsements-loop-video-mobile.mp4",poster:"https://cdn.tpaction.com/assets/videos/endorsements-loop-video-mobile-poster.jpg"}):(0,r.jsx)(g.Jc,{src:"https://cdn.tpaction.com/assets/videos/endorsements-loop-video.mp4",poster:"https://cdn.tpaction.com/assets/videos/endorsements-loop-video-poster.jpg"}),(0,r.jsx)(g.fP,{children:(0,r.jsx)(g.JN,{children:(0,r.jsx)(g.km,{src:"/static/images/endorsements/logo.png",alt:"Endorsements",width:"913px",height:"226px"})})})]}),(0,r.jsx)(g.N0,{children:(0,r.jsx)(g.fP,{children:(0,r.jsxs)(g.DC,{children:[(0,r.jsx)(g.H1,{children:(0,r.jsx)(g.h$,{src:"/static/images/endorsements/jd.png"})}),(0,r.jsxs)(g.Ss,{children:[(0,r.jsx)("h2",{children:"Turning Point Action is proud to endorse candidates across the nation."}),(0,r.jsxs)("p",{children:["With a steadfast dedication to advancing conservative values and empowering political leaders, ",(0,r.jsx)("strong",{children:"Turning Point Action"})," plays a pivotal role in shaping the political landscape."]})]})]})})}),v.length>1&&(0,r.jsx)(g.mJ,{children:(0,r.jsx)(g.fP,{children:(0,r.jsx)(g.YX,{children:(0,r.jsx)(M,{options:v,placeholder:"Filter by State",noOptionsMessage:"No state found in this search",onChange:function(n){return x((null===n||void 0===n?void 0:n.value)||null)}})})})}),j.map((function(n,e){return(0,r.jsx)(k,{item:n,bgcolor:e%2===0?"#020a32":"#e6e5e9",selectedState:m},n.label)})),(0,r.jsx)(g.Fx,{children:(0,r.jsx)(g.fP,{children:(0,r.jsxs)(g.He,{children:[(0,r.jsx)("h2",{children:"Learn More"}),(0,r.jsx)(g.YE,{children:y.map((function(n){return(0,r.jsx)(a(),{href:n.url,children:(0,r.jsxs)(g.so,{children:[(0,r.jsx)(g.WV,{}),(0,r.jsxs)(g.Ap,{children:[(0,r.jsxs)(g.ri,{children:[(0,r.jsx)("h5",{children:n.label}),(0,r.jsx)("span",{children:n.description})]}),(0,r.jsx)(g.FI,{children:n.icon})]})]})},n.label)}))})]})})}),(0,r.jsx)(h.Z,{}),(0,r.jsx)(p.Z,{})]})]})}}},function(n){n.O(0,[9669,1961,9233,3157,5026,7628,1264,9796,7042,5097,9774,2888,179],(function(){return e=6236,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
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.