"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[7324],{49514:(e,t,r)=>{r.d(t,{A:()=>S}),r(63696);var i=r(54498),a=r(64374),n=r(20641),o=r(35289),l=r(11545),d=r(468),c=r(74437),s=r(91785),g=r(83051),u=r(3973),m=r(40379),p=r(63548),h=r(62540);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var O=e=>{var{theme:{colourPalette:t}}=e;return(0,s.AH)("background-color:",t.midground,";border-top:4px solid ",t.accent,";padding:",c.SPACING_4," ",c.SPACING_4," ",c.SPACING_5," ",c.SPACING_4,";position:relative;")},j=(0,s.AH)("@media (min-width: ",o.js,"){max-width:80%;}"),A=(0,s.AH)("margin-left:-",c.SPACING_4,";margin-right:-",c.SPACING_4,";@media (max-width: ",o.jq-1,"px){margin-right:-",c.SPACING_2,";}@media (min-width: ",o.js,"){margin-right:0;margin-left:0;}"),y=(0,g.default)("div",{target:"edl49zf2",label:"EditorialTextWrapper"})(n.tc," ",l.K1," margin-top:",(e=>{var{marginTop:t}=e;return t}),";margin-bottom:",(e=>{var{marginBottom:t}=e;return t}),";",(e=>{var{isContained:t}=e;return t&&O})," ",(e=>{var{isFullWidth:t}=e;return t?A:j}),";"),P=(0,g.default)("div",{target:"edl49zf1",label:"HeadingWrapper"})("@media (max-width: ",o.bH,"){h1#main-heading{",l.j7,";}}"),_=(0,g.default)("div",{target:"edl49zf0",label:"Divider"})({name:"88mhs3",styles:"border-bottom:2px solid #eeeeee;width:100%"}),x=e=>{var{headingId:t,headingLevel:r,headingFontScale:i}=e,a={level:r};return a.fontScale=i||("1"===r?"headlineSmall":"indexHeadlineLarge"),t&&(a.id=t,a.shouldGainFocus=!0),a.type="1"===r?"headline":"section-heading",a};const S=e=>{var t,{data:r,blocksOverride:n,overrides:o,isContained:l=!1,heading:s,headingId:g,headingLevel:v="1",paragraph:b="",headingFontScale:O,isFullWidth:j=!1,marginBottomOverride:A,tracking:S}=e,C=(null==r?void 0:r.heading)||s,k=(e=>{var t,{data:r={},fallbackText:i,blocksOverride:a}=e,{blocks:n}=r;return n||(i?[{type:"paragraph",model:{text:t=i,blocks:[{type:"fragment",model:{text:t}}]}}]:a||[])})({data:r,fallbackText:b,blocksOverride:n}),w="1"===v?c.SPACING_6:c.SPACING_4;if(t=A?(0,d.A)(A):"3"===v?c.SPACING_2:c.SPACING_8,!C&&!k.length)return null;var I;I="House races"===C||"Governor races"===C;var N=f(f({},S),{},{groupName:s||"no_heading"}),D=s?"test-election-component-editorial-text-heading":"test-election-component-editorial-text";return(0,h.jsx)(m.C,{trackDwell:!0,tracking:(0,p.D9)(f(f({},N),{},{groupType:"editorialText",itemType:"editorialText",itemPosition:0})),trackView:!0,trackClicks:!1,children:e=>{var{trackRef:r}=e;return(0,h.jsx)(y,{ref:r,marginTop:w,marginBottom:t,isContained:l,isFullWidth:j,"data-testid":D,children:(0,h.jsxs)(u.A,{spacing:"4",children:[C&&(0,h.jsx)(P,{children:(0,h.jsx)(i.A,f(f({},x({headingId:g,headingLevel:v,headingFontScale:O})),{},{children:C}))}),I&&(0,h.jsx)(_,{"data-testid":"us-presidential-map-divider"}),k.length>0&&(0,h.jsx)(a.A,{overrides:o,blocks:k})]})})}})}}}]);