PageSourceSearch

https://www.witn.com/pf/dist/components/combinations/929.chunk.js?d=595&mxId=00000000

js witn.com collected 2026-09-24 17:53:38 UTC 26,603 bytes, 1 lines download raw bytes

1"use strict";(this.webpackChunkFusion_components=this.webpackChunkFusion_components||[]).push([[929],{929:function(e,t,a){a.r(t),a.d(t,{default:function(){return X}});var s=a(809),n=a(6780),i=a.n(n),l=a(4321),r=a(4375),d=a(7508),o=a.n(d),c=a(2028),u=a(9894),m=a.n(u),p=a(4016),b=a(3408),x=a(3287),h=a(5349);const g=({blankVotes:e,overVotes:t,hideOverflowCandidates:a,maxCandidatesDisplayed:s,totalCandidates:n})=>{if(!e?.display&&!t?.display)return null;const i=["xs","sm","md","lg","xl"].reduce((e,t)=>(e[t]=n>s?.[t]&&!a?"row":n>s?.[t]?"none":"embedded",e),{}),l=Object.entries(i).reduce((e,[t,a])=>{const s="xs"===t?"":`${t}-`;if("none"===a)return[...e,`d-${s}none`];if(!["row","embedded"].some(e=>e===a))return e;const n={row:[`d-${s}flex`,`col-${s}12`,`order-${s}0`,`mt-${s}1`,`mb-${s}2`,"ard-row"],embedded:[..."xs"===t?["col-12 mb-2 mb-sm-0"]:[`col-${s}auto`],`d-${s}flex`,`order-${s}1`,"ard-embedded"]};return Array.from(new Set([...e,...n[a]]))},[]);return(0,h.jsxs)("div",{className:(0,x.A)(["additional-reporting-data","mx-n0","fst-italic","text-center","justify-content-center",...l]),style:{fontSize:"80%"},children:[e?.display&&(0,h.jsxs)("span",{className:"me-1 text-nowrap",children:[(0,h.jsx)("b",{children:"Blank Votes:"})," ",`${e?.votes||0} (${e?.percentage||0}%)`]}),t?.display&&(0,h.jsxs)("span",{className:"ms-1 text-nowrap",children:[(0,h.jsx)("b",{children:"Over Votes:"})," ",`${t?.votes||0} (${t?.percentage||0}%)`]})]})};g.propTypes={blankVotes:m().shape({display:m().bool,percentage:m().string,votes:m().string}),hideOverflowCandidates:m().bool,maxCandidatesDisplayed:m().shape({xs:m().number,sm:m().number,md:m().number,lg:m().number,xl:m().number}),overVotes:m().shape({display:m().bool,percentage:m().string,votes:m().string}),totalCandidates:m().number};var f=g,y=a(307),v=a(5771);const R=({image:e,isHiddenOnXsDevice:t,isHiddenOnSmDevice:a,isHiddenOnMdDevice:s,isHiddenOnLgDevice:n,isHiddenOnXlDevice:i,isIncumbent:l,isWinner:r,name:d,party:o,percentage:c="0",votes:u=0})=>{if(!d)return null;const m=(0,y.getPartyIcon)(o),p=e?.resized_urls?.small_2x3?.url??e?.url??null;return(0,h.jsxs)("div",{className:(0,x.A)(["candidate |",{"d-flex":!t},{"d-sm-flex":!a},{"d-md-flex":!s},{"d-lg-flex":!n},{"d-xl-flex":!i},{"d-none":t},{"d-sm-none":a},{"d-md-none":s},{"d-lg-none":n},{"d-xl-none":i},{"bg-warning":r},{"bg-white":!r},"rounded","shadow-sm","mx-1","py-1","py-sm-2","px-1","px-sm-2","mb-2","justify-content-center","align-items-center"]),children:[p&&(0,h.jsx)(v.mO,{containerClasses:"media-item-image mb-0 me-2 rounded-2 overflow-hidden constrained image-ratio-10x13",children:(0,h.jsx)(v._V,{altText:`Headshot of ${d}`,imageClasses:"img-fluid",sizePreset:"summary_10x13",src:p,height:70,width:52})}),(0,h.jsxs)("div",{className:"name-container w-100",children:[(0,h.jsxs)("div",{className:"name mb-2 fw-bold h6",children:[d,(0,h.jsx)("span",{className:(0,x.A)(["small","fw-bold","fst-italic",{"text-muted":!r},{"text-dark":r}]),children:m}),l&&(0,h.jsx)("i",{className:(0,x.A)(["fas fa-asterisk fa-xs",{"text-muted":!r},{"text-dark":r},"small","align-middle","ms-1"])}),r&&(0,h.jsx)("span",{className:"is-winner small text-dark ms-1",children:(0,h.jsx)("i",{className:"fa fa-check"})})]}),(0,h.jsx)("div",{className:"graph",children:(0,h.jsx)("div",{className:"progress h-100 bg-dark",children:(0,h.jsx)("div",{className:"progress-bar",role:"progressbar",style:{width:`${c}%`},"aria-valuenow":c,"aria-valuemin":"0","aria-valuemax":"100",children:(0,h.jsx)("span",{className:"h6 mb-0 px-2 py-1",children:` ${u.toLocaleString()} - ${c}%`})})})})]})]})};R.propTypes={image:m().shape({url:m().string,resized_urls:m().object}),index:m().number,isHiddenOnXsDevice:m().bool,isHiddenOnSmDevice:m().bool,isHiddenOnMdDevice:m().bool,isHiddenOnLgDevice:m().bool,isHiddenOnXlDevice:m().bool,isIncumbent:m().bool,isWinner:m().bool,name:m().string.isRequired,party:m().string,percentage:m().string,votes:m().number};var w=R;const j=({isAlignedRight:e=!1,isIncumbent:t,isWinner:a,name:s,party:n})=>{if(!s)return null;const i=(0,y.getPartyIcon)(n);return(0,h.jsx)("div",{className:(0,x.A)(["electoral-candidate |","d-flex",{"flex-row-reverse":e},{"me-1 pe-1 pe-sm-2":!e},{"ms-1 ps-1 ps-sm-2":e},"py-1","py-sm-2"]),children:(0,h.jsxs)("div",{className:(0,x.A)(["name","fw-bold","h6","mb-0",{"text-end":e}]),children:[s,(0,h.jsx)("span",{className:"small fw-bold fst-italic text-muted",children:i}),t&&(0,h.jsx)("i",{className:"is-incumbent fas fa-asterisk fa-xs small align-middle ms-1"}),a&&(0,h.jsx)("span",{className:"is-winner text-success ms-1",children:(0,h.jsx)("i",{className:"fa fa-check"})})]})})};j.propTypes={index:m().number,isAlignedRight:m().bool,isIncumbent:m().bool,isWinner:m().bool,name:m().string.isRequired,party:m().string,votes:m().string};var C=j;
1const D=({isAlignedRight:e,party:t="",votes:a=0,totalAvailableVotes:s})=>{const n=(a/s*100).toFixed(2);return(0,h.jsx)("div",{className:(0,x.A)(["progress-bar",{"progress-bar-right":e},{"bg-bar-dem":"(D)"===t},{"bg-bar-rep":"(R)"===t}]),role:"progressbar",style:{width:`${n}%`},"aria-valuenow":a,"aria-valuemin":"0","aria-valuemax":s,children:(0,h.jsx)("span",{className:"h6 mb-0 px-2 py-1",children:`${a}`})})};D.propTypes={isAlignedRight:m().bool,party:m().oneOf(["(D)","(R)"]),votes:m().number.isRequired,totalAvailableVotes:m().number.isRequired};var O=D;const k=({containerClasses:e=[],leftCandidate:t,rightCandidate:a,totalElectoralVotes:s,votesNeededToWin:n})=>(0,h.jsxs)("div",{className:(0,x.A)(["graph |","position-relative",...e]),children:[n&&(0,h.jsxs)("div",{className:"needed-to-win text-center text-secondary small fst-italic",children:[n," to win"]}),(0,h.jsx)("div",{className:"progress-container",children:(0,h.jsxs)("div",{className:"progress progress-electoral position-relative d-flex justify-content-between h-100 bg-dark",children:[(0,h.jsx)(O,{party:(0,y.getPartyIcon)(t?.party??"").trim(),totalAvailableVotes:s,votes:t?.votes??0}),(0,h.jsx)(O,{isAlignedRight:!0,party:(0,y.getPartyIcon)(a?.party??"").trim(),totalAvailableVotes:s,votes:a?.votes??0})]})})]});k.propTypes={containerClasses:m().arrayOf(m().string),leftCandidate:m().object.isRequired,rightCandidate:m().object.isRequired,totalElectoralVotes:m().number.isRequired,votesNeededToWin:m().number};var A=k;const U={xs:2,sm:2,md:3,lg:4,xl:5},T=({candidates:e=[]})=>{const{contextPath:t,pagebuilderURL:a}=(0,l.useAppContext)();return e.length<2?null:(0,h.jsx)("div",{className:"electoral-race | justify-content-around bg-white rounded shadow-sm py-1 py-sm-2 px-1 px-sm-2 mb-0 align-items-center",children:(0,h.jsxs)("div",{className:"electoral-wrapper",children:[(0,h.jsxs)("div",{className:"electoral-candidates | candidates d-flex",children:[(0,h.jsx)(v.mO,{containerClasses:"electoral-image | media-item-image flex-shrink-0 mb-0 me-2 rounded-2 overflow-hidden",children:(0,h.jsx)(v._V,{altText:`Headshot of ${e[0].name}`,imageClasses:"img-fluid",sizePreset:"summary_10x13",url:e[0]?.image?.url??a(`${t}/resources/images/blank.png`),height:72,width:55})}),(0,h.jsxs)("div",{className:"candidates-inner-container | d-flex flex-column flex-grow-1 justify-content-between",children:[(0,h.jsxs)("div",{className:"d-flex justify-content-between w-100",children:[(0,h.jsx)(C,{isAlignedRight:!1,isIncumbent:e[0].isIncumbent,isWinner:e[0].isWinner,name:e[0].name,party:e[0].party},`race-electoral-candidate-${e[0].id}`),(0,h.jsx)(C,{isAlignedRight:!0,isIncumbent:e[1].isIncumbent,isWinner:e[1].isWinner,name:e[1].name,party:e[1].party},`race-electoral-candidate-${e[1].id}`)]}),(0,h.jsx)(A,{containerClasses:["d-none","d-sm-block","w-100"],leftCandidate:e[0],rightCandidate:e[1],totalElectoralVotes:538,votesNeededToWin:270})]}),(0,h.jsx)(v.mO,{containerClasses:"electoral-image | media-item-image flex-shrink-0 mb-0 me-2 rounded-2 overflow-hidden constrained image-ratio-10x13",children:(0,h.jsx)(v._V,{altText:`Headshot of ${e[1].name}`,imageClasses:"img-fluid",sizePreset:"summary_10x13",src:e[1]?.image?.url??a(`${t}/resources/images/blank.png`),height:72,width:55})})]}),(0,h.jsx)(A,{containerClasses:["d-sm-none","w-100","mt-1"],leftCandidate:e[0],rightCandidate:e[1],totalElectoralVotes:538,votesNeededToWin:270})]})})};T.propTypes={candidates:m().arrayOf(m().object)};var N=T,S=a(4676);function E(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function I(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?E(Object(a),!0).forEach(function(t){V(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):E(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function V(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var s=a.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const $=({autoCycleRaces:e={},autoCycleRacesEnabled:t=!1,autoUpdate:a={},autoUpdateDisabled:n,blankVotes:i,candidates:r=[],county:d,fullResultsKickerDestinationUri:c,fullResultsKickerDisabled:u,fullResultsKickerText:m,hasRecentUpdates:p=!1,hideOverflowCandidates:b,isTest:g=!1,maxCandidatesDisplayed:R,name:j,overVotes:C,races:D=[],raceFormat:O,raceId:k,reportingInfo:A,totalCandidates:U=0,updatedDate:T,autoUpdateRestartHandler:E,hideOverflowCandidatesHandler:V,raceMenuChangeHandler:$,startAutoCycleRaces:M,stopAutoCycleRaces:H})=>{const P=(0,s.useRef)(null),K=(0,s.useRef)(null),F=(0,S.Bd)()&&window.location!==window.parent.location,{siteProperties:W}=(0,l.useAppContext)(),L=o()(W?.locale||"en"),G=L.t("gsync.electionResults.fullResultsButton.description"),_=L.t("gsync.electionResults.toggleCycleResults"),q=D.length>1&&t&&M&&H,X={xs:U<=R.xs,sm:U<=R.sm,md:U<=R.md,lg:U<=R.lg,xl:U<=R.xl};return(0,h.jsx)("div",I(I({className:"race | row g-0"},g&&{"data-test-mode":!0}),{},{children:(0,h.jsx)("div",{className:"col-12",children:(0,h.jsxs)("div",{className:(0,x.A)(["card",{"is-iframed":F},{"border-0":!F},"bg-light","mb-0",{"test-data-background":g}]),children:[(0,h.jsx)("div",{className:"card-header bg-light p-2 mb-0",children:(0,h.jsxs)("div",{className:"d-flex flex-wrap flex-sm-nowrap align-items-center justify-content-between",children:[(0,h.jsxs)("div",{className:"race-name d-flex align-items-center mb-1 mb-sm-0 pe-sm-2",children:[(0,h.jsx)("h4",{className:"name mb-0 mb-sm-0",children:j}),d&&(0,h.jsx)("span",{className:"county ms-2 badge bg-dark",children:d})]}),(0,h.jsxs)("div",{className:"buttons-container btn-group",children:[q&&(0,h.jsx)("button",{ref:K,type:"button",className:(0,x.A)(["toggle-auto-cycle","btn","btn-sm","btn-secondary","border-end",{active:e.isActive}]),"data-toggle":"button","aria-label":_,title:_,"aria-pressed":`${e.isActive}`,onClick:()=>{e.isActive?H(!0):M(!0)},children:(0,h.jsx)("i",{className:(0,x.A)(["fas","px-1",{"fa-play":!e.isActive},{"fa-pause":e.isActive}])})}),D.length>1&&(0,h.jsx)(v.gf,{ariaLabel:L.t("gsync.electionResults.moreRacesButton.description"),buttonIsBlock:!0,buttonSize:"sm",buttonText:L.t("gsync.electionResults.moreRacesButton"),classes:"btn-group w-100",dropdownPosition:"down",items:D.filter(({id:e,name:t})=>e&&t&&e!==k).map(({id:e,name:t})=>({id:e,name:t})),onChangeHandler:$,onDismissHandler:M,onRevealHandler:H}),!u&&(0,h.jsx)("a",I(I({href:c,className:"full-results-kicker | btn btn-sm w-100 btn-secondary border-start","aria-label":G,title:G},F&&{target:"_top"}),{},{children:m}))]})]})}),!n&&(0,h.jsx)(y.AutoUpdateBar,{autoUpdate:a,containerClasses:"px-2 pt-2",hasRecentUpdates:p,lastUpdatedDate:T,autoUpdateRestartHandler:E}),(0,h.jsx)("div",{className:(0,x.A)(["card-body","py-0","px-1","px-sm-2","overflow-hidden",{"is-test-data":g},`max-candidate-rows-xs-${R.xs>5?"vh":R.xs}`,`max-candidate-rows-sm-${Math.max(Math.ceil(R.sm/2))}`,`max-candidate-rows-md-${Math.max(Math.ceil(R.md/3))}`,`max-candidate-rows-lg-${Math.max(Math.ceil(R.lg/4))}`,`max-candidate-rows-xl-${Math.max(Math.ceil(R.xl/5))}`,"mb-n1"]),children:"electoral"===O?(0,h.jsx)(N,{candidates:r.slice(0,2)}):(0,h.jsx)("div",{className:(0,x.A)(["candidates |","d-flex","flex-wrap","mx-n1",{"justify-content-around":U>1}]),children:r.map((e,t)=>{const{id:a,image:s,isIncumbent:n,isWinner:i,name:l,party:r,percentage:d,votes:o}
1=e,c=t+1;return(0,h.jsx)(w,{image:s,index:t,isHiddenOnXsDevice:b&&c>R.xs,isHiddenOnSmDevice:b&&c>R.sm,isHiddenOnMdDevice:b&&c>R.md,isHiddenOnLgDevice:b&&c>R.lg,isHiddenOnXlDevice:b&&c>R.xl,isIncumbent:n,isWinner:i,name:l,party:r,percentage:d,votes:o},`race-${k}-candidate-${a}`)})})}),(0,h.jsx)("div",{className:"card-footer d-flex flex-column justify-content-center bg-light border-top-0 p-2 py-sm-0",children:(0,h.jsxs)("div",{className:"row align-items-center",children:[(0,h.jsx)(y.Legend,{classNames:["col","order-2","order-sm-1","text-muted"],isCentered:!1}),(i?.display||C?.display)&&(0,h.jsx)(f,{blankVotes:i,displayLoadMoreButton:X,hideOverflowCandidates:b,maxCandidatesDisplayed:R,overVotes:C,totalCandidates:U}),(0,h.jsx)("div",{className:(0,x.A)(["load-more-button |","col-12","col-sm-auto","order-1","order-sm-2","mb-1",{"d-none ":X.xs},{"d-sm-none":X.sm},{"d-md-none":X.md},{"d-lg-none":X.lg},{"d-xl-none":X.xl},"text-center"]),children:(0,h.jsx)("button",{ref:P,className:"toggle-more-candidates btn btn-secondary text-nowrap",onClick:()=>{P.current.blur(),V()},"aria-label":`Click to show ${b?"all":"fewer"} candidates.`,children:b?L.t("gsync.electionResults.showMoreCandidates"):L.t("gsync.electionResults.showFewerCandidates")})}),(0,h.jsx)("div",{className:"reporting text-end col order-3 order-sm-3 mb-1 text-muted",children:(0,h.jsx)("span",{className:"fst-italic text-nowrap px-2",children:A})})]})})]})})}))};$.propTypes={autoCycleRaces:m().shape({isEnabled:m().bool,isActive:m().bool,delaySeconds:m().number}),autoCycleRacesEnabled:m().bool,autoUpdate:m().shape({delayMinutes:m().number,isEnabled:m().bool,expiration:m().number,startTimeStamp:m().number}),autoUpdateDisabled:m().bool,autoUpdateRestartHandler:m().func,blankVotes:m().object,candidates:m().arrayOf(m().object),county:m().string,fullResultsKickerDestinationUri:m().string,fullResultsKickerDisabled:m().bool,fullResultsKickerText:m().string,hasRecentUpdates:m().bool,hideOverflowCandidates:m().bool,hideOverflowCandidatesHandler:m().func,isTest:m().bool,maxCandidatesDisplayed:m().shape({xs:m().number,sm:m().number,md:m().number,lg:m().number,xl:m().number}).isRequired,name:m().string,overVotes:m().object,raceFormat:m().oneOf(["electoral","popular","referendum"]),raceId:m().string,raceMenuChangeHandler:m().func,races:m().arrayOf(m().object),reportingInfo:m().string,startAutoCycleRaces:m().func,stopAutoCycleRaces:m().func,totalCandidates:m().number,updatedDate:m().string};var M=$,H=a(8568);function P(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function K(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?P(Object(a),!0).forEach(function(t){F(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):P(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function F(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var s=a.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const W=({autoCycleRacesEnabled:e=!0,autoCycleRacesInterval:t=10,autoUpdateDisabled:a=!1,autoUpdateExpiration:n=60,autoUpdateInterval:i=2,displayTestData:r=!1,electionHasRecentUpdates:d=!1,electionRaces:o=[],electionResultsUpdatedDate:c,electionSelectedRaceId:u=null,fullResultsKickerDestinationUri:m,fullResultsKickerDisabled:x,fullResultsKickerText:g,maxCandidatesDisplayed:f,overrideGsyncSiteId:y})=>{const v=Math.max(1,t),R=Math.max(1,i),w=Math.max(R,n),j={autoCycleRaces:{isEnabled:e,isActive:e,delaySeconds:v},autoUpdate:{isEnabled:!a,delayMinutes:R,expiration:60*w*1e3,startTimeStamp:(new Date).getTime()}
1,disableAutoUpdate:a,displayTestData:r,hasError:!1,hasRecentUpdates:d,hideOverflowCandidates:!0,isLoading:!0,races:[],searchFieldText:"",selectedRaceId:u,title:"",totalResults:0,updatedDate:null},C=(0,s.useRef)(),D=(0,b.A)(C,"-80px",!0),[O,k]=(0,s.useState)(K(K({},j),{},{races:o,updatedDate:c})),{arcSite:A}=(0,l.useFusionContext)(),U=()=>{const{request:e,transform:t}=H.SV;e({"arc-site":A,gsyncSiteId:y,includeTestResults:r}).then(({data:e})=>{const a=t(e,r);k(e=>{const{autoCycleRaces:t,autoUpdate:s}=e,{races:n}=a;return s.isEnabled=!(!s.isEnabled||!a.hasRecentUpdates),t.isActive=n.length>1&&t.isActive,K(K(K({},e),a),{},{autoCycleRaces:K({},t),autoUpdate:K({},s),selectedRaceId:e.selectedRaceId,hasError:!1,isLoading:!1})})}).catch(e=>{console.error("GSync Error:",e),k(e=>K(K({},e),{},{hasError:!0,isLoading:!1}))})},{autoCycleRaces:T,autoUpdate:N,disableAutoUpdate:S,hasError:E,hasRecentUpdates:I,hideOverflowCandidates:V,isLoading:$,races:P,selectedRaceId:F,updatedDate:W}=O;if((0,s.useEffect)(()=>U(),[]),(0,s.useEffect)(()=>{T.isEnabled&&k(e=>{const t=K({},e);return t.autoCycleRaces.isActive=D,t})},[D]),(0,p.A)(()=>{const{expiration:e,isEnabled:t,startTimeStamp:a}=N;(new Date).getTime()-a>e&&k(e=>{const t=K({},e);return t.autoUpdate.isEnabled=!1,t.autoUpdate.startTimeStamp=null,t}),!t||$||E||U()},N.isEnabled?60*N.delayMinutes*1e3:null),(0,p.A)(()=>{const{isEnabled:e}=T;e&&P.length>1&&k(e=>{const t=K({},e),{races:a,selectedRaceId:s}=t,n=a.map(e=>e.id).indexOf(s)||0,i=a[null!=a[n+1]?n+1:0];return t.autoCycleRaces.isEnabled=!0,t.selectedRaceId=i&&i.id||s,t})},T.isEnabled&&T.isActive?1e3*T.delaySeconds:null),0===P.length)return null;const L=P?.find(e=>e.id===F)||P[0],{blankVotes:G,candidates:_=[],county:q,id:X,isTest:B,name:z,overVotes:Y,raceFormat:Z,reportingInfo:J}=L;return(0,h.jsx)("div",{ref:C,className:"election-wrapper |",children:(0,h.jsx)(M,{autoCycleRaces:T,autoCycleRacesEnabled:e,autoUpdate:N,autoUpdateDisabled:S,blankVotes:G,candidates:_,county:q,fullResultsKickerDestinationUri:m,fullResultsKickerDisabled:x,fullResultsKickerText:g,hasRecentUpdates:I,hideOverflowCandidates:V,isTest:B,maxCandidatesDisplayed:f,name:z,overVotes:Y,races:P,raceFormat:Z,raceId:X.toString(),reportingInfo:J,totalCandidates:_.length,updatedDate:W,autoUpdateRestartHandler:()=>{k(e=>{const t=K({},e);return t.autoUpdate.isEnabled=!0,t.autoUpdate.startTimeStamp=(new Date).getTime(),t})},hideOverflowCandidatesHandler:()=>{k(t=>{const a=K({},t);return a.hideOverflowCandidates=!a.hideOverflowCandidates,e&&(a.autoCycleRaces.isEnabled=a.hideOverflowCandidates,a.autoCycleRaces.isActive=a.hideOverflowCandidates),a})},raceMenuChangeHandler:e=>{O.races&&O.races.find(t=>t.id===e)&&k(t=>{const a=K({},t);return a.autoCycleRaces.isEnabled&&(a.autoCycleRaces.isActive=!0),a.selectedRaceId=e,a.hideOverflowCandidates=!0,a})},startAutoCycleRaces:(e=!1)=>{k(t=>{const a=K({},t),{autoCycleRaces:s}=a;return a.autoCycleRaces.isEnabled=!!e||s.isEnabled,a.autoCycleRaces.isActive=!0,a})},stopAutoCycleRaces:(e=!1)=>{k(t=>{const a=K({},t),{autoCycleRaces:s}=a;return a.autoCycleRaces.isEnabled=!e&&s.isEnabled,a.autoCycleRaces.isActive=!1,a})}},`race-${X}`)})};W.propTypes={autoCycleRacesEnabled:m().bool,autoCycleRacesInterval:m().number,autoUpdateDisabled:m().bool,autoUpdateExpiration:m().number,autoUpdateInterval:m().number,displayTestData:m().bool,electionHasRecentUpdates:m().bool,electionRaces:m().arrayOf(m().object),electionResultsUpdatedDate:m().string,electionSelectedRaceId:m().string,fullResultsKickerDestinationUri:m().string,fullResultsKickerDisabled:m().bool,fullResultsKickerText:m().string,maxCandidatesDisplayed:m().shape({xs:m().number,sm:m().number,md:m().number,lg:m().number,xl:m().number}),overrideGsyncSiteId:m().string};var L=W,G=(e={})=>{const{xs:t=100,sm:a=100,md:s=100,lg:n=100,xl:i=100}=e;return{xs:t,sm:a,md:s,lg:n,xl:i}},_=a(1032);const q=({customFields:e={}})=>{const{arcSite:t,isAdmin:a,siteProperties:s}=(0,l.useFusionContext)(),n="/politics/election-results/",i=o()(s?.locale||"en").t("gsync.electionResultsFeatured.fullResultsButton"),{autoCycleRacesEnabled:d=!1,autoCycleRacesInterval:u=10,autoUpdateDisabled:m=!1,autoUpdateExpiration:p=60,autoUpdateInterval:b=2,displayTestData:x=!1,fullResultsKickerDestinationUri:g=n,fullResultsKickerDisabled:f=!1,fullResultsKickerText:R=i,maxCandidatesDisplayedXs:w=U.xs,maxCandidatesDisplayedSm:j=U.sm,maxCandidatesDisplayedMd:C=U.md,maxCandidatesDisplayedLg:D=U.lg,maxCandidatesDisplayedXl:O=U.xl,overrideGsyncSiteId:k}=e,A=(0,y.validateDisplayTestData)({displayTestDataCustomField:x,environmentType:c.Yc,isAdmin:a}),T=(0,r.useContent)((0,_._i)({source:"gsync-elections-featured",query:{"arc-site":t,gsyncSiteId:k,includeTestResults:A}}));if(!T)return null;const{isActive:N=!0,races:S=[],hasRecentUpdates:E,updatedDate:I}=T;if(0===S.length||!N){if(!a)return null;const e=N?"There are no featured elections for your site selected in GSync. The feature will not be visible on your live site.":"The featured races block 
1is not enabled in GSync. Enable the Featured Races Module on the GSync elections page.";return(0,h.jsxs)(v.HZ,{classes:"text-white bg-secondary w-100 h-auto small mb-3",styles:{maxWidth:"500px",minHeight:"90px"},children:[(0,h.jsx)("p",{children:"GSync - Featured Election Results"}),(0,h.jsx)("div",{className:"small",children:(0,h.jsx)("p",{className:"mb-1",children:e})})]})}return(0,h.jsx)("div",{className:"gsync-election-results-featured | mb-3",children:(0,h.jsx)(L,{autoCycleRacesEnabled:d,autoCycleRacesInterval:u,autoUpdateDisabled:m,autoUpdateExpiration:p,autoUpdateInterval:b,displayTestData:A,electionHasRecentUpdates:E,electionRaces:S,electionResultsUpdatedDate:I,electionSelectedRaceId:S[0]?.id?.toString()||null,fullResultsKickerDestinationUri:g||n,fullResultsKickerDisabled:f,fullResultsKickerText:R||i,maxCandidatesDisplayed:G({xs:Math.max(1,w),sm:Math.max(1,j),md:Math.max(1,C),lg:Math.max(1,D),xl:Math.max(1,O)}),overrideGsyncSiteId:k})})};q.propTypes={customFields:i().shape({fullResultsKickerDisabled:i().bool.tag({defaultValue:!1,description:"When checked the Full Results Link will be hidden on the feature",group:"Full Results Kicker",name:"Disable Full Results Kicker?"}),fullResultsKickerText:i().string.tag({defaultValue:"Full Results",description:'If blank, "Full Results" will be used.',group:"Full Results Kicker",name:"Kicker Text"}),fullResultsKickerDestinationUri:i().string.tag({defaultValue:"/politics/election-results/",description:'If blank, "/politics/election-results/" will be used.',group:"Full Results Kicker",name:"Kicker Destination URI"}),overrideGsyncSiteId:i().string.tag({defaultValue:null,description:"To use another site's GSync data, add that id here. If left blank the id declared in site properties will be used.",group:"GSync Options",name:"Override GSync Site ID"}),displayTestData:i().bool.tag({defaultValue:!1,description:"Select this to display races that are in test mode. NOTE: Even when toggled test results will not be displayed on live page in the production environment.",group:"GSync Options",name:"Display Test Data"}),autoCycleRacesEnabled:i().bool.tag({defaultValue:!0,description:"When checked the auto cycle feature will cycle through each race automatically.",group:"Auto Cycle Races",name:"Enable Auto Cycle?"}),autoCycleRacesInterval:i().number.tag({defaultValue:10,description:"The interval (in seconds) a race should display before cycling to the next featured race.",group:"Auto Cycle Races",name:"Auto Cycle Interval (seconds)"}),autoUpdateDisabled:i().bool.tag({defaultValue:!1,description:"When checked the auto update feature will be disabled no matter the age of the content.",group:"Auto Update",name:"Disable Auto Update?"}),autoUpdateInterval:i().number.tag({defaultValue:2,description:"The interval (in minutes) fresh content should be automatically updated.",group:"Auto Update",name:"Auto Update Interval (minutes)"}),autoUpdateExpiration:i().number.tag({defaultValue:60,description:"The expiration time (in minutes) when the auto update will age out.",group:"Auto Update",name:"Auto Update Expiration (minutes)"}),maxCandidatesDisplayedXs:i().number.tag({defaultValue:U.xs,description:'The max candidates displayed per race on smaller mobile breakpoints. \n      Additional candidates past this number will be revealed when the user presses the "Show more candidates" button.',group:"Max Candidates Displayed",name:`Smaller Mobile (default: ${U.xs})`}),maxCandidatesDisplayedSm:i().number.tag({defaultValue:U.sm,description:'The max candidates displayed per race on larger mobile breakpoints. \n      Additional candidates past this number will be revealed when the user presses the "Show more candidates" button.',group:"Max Candidates Displayed",name:`Larger Mobile (default: ${U.sm})`}),maxCandidatesDisplayedMd:i().number.tag({defaultValue:U.md,description:'The max candidates displayed per race on tablet breakpoints. \n      Additional candidates past this number will be revealed when the user presses the "Show more candidates" button.',group:"Max Candidates Displayed",name:`Tablet (default: ${U.md})`}),maxCandidatesDisplayedLg:i().number.tag({defaultValue:U.lg,description:'The max candidates displayed per race on smaller desktop breakpoints. \n      Additional candidates past this number will be revealed when the user presses the "Show more candidates" button.',group:"Max Candidates Displayed",name:`Smaller Desktops (default: ${U.lg})`}),maxCandidatesDisplayedXl:i().number.tag({defaultValue:U.xl,description:'The max candidates displayed per race on large desktop breakpoints. \n      Additional candidates past this number will be revealed when the user presses the "Show more candidates" button.',group:"Max Candidates Displayed",name:`Larger Desktops (default: ${U.xl})`})})},q.label="GSync - Featured Election Results",q.lazy=!0;var X=q}}]);

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.