"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[893],{8052:(D,x,l)=>{l.d(x,{A:()=>c});var e=l(48322),d=l(67115);const S=d.default.div` display: flex; align-items: center; justify-content: flex-end; margin: 0 0 5rem 0; `;var b=l(82472);const s=d.default.button` ${()=>(0,d.css)` cursor: pointer; background: ${b.A.white}; width: 4rem; height: 4rem; border: 0.1rem solid #f5f5f5; text-align: center; display: inline-flex; align-items: center; justify-content: center; margin-left: 1rem; font-size: 1.4rem; line-height: 3.2rem; display: block; color: ${b.A.black}; background-color: ${b.A.greyAlt}; &:enabled:hover { background: ${b.A.greyLight}; } &:disabled { opacity: 0.5; cursor: default; /* &:hover{ bac } */ } &.inactive { border-bottom: 1px solid ${b.A.pink}; } &.active { } .icon { display: flex; align-items: center; justify-content: center; svg { height: 2.4rem; path: { fill: ${b.A.black}; } } } `} `,f=({className:A,label:m,updatePageIndex:p,index:E,disabled:g})=>{const o=(t,a)=>{t.preventDefault(),p(a),typeof window<"u"&&document.getElementById("main")?.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')?.[0]?.focus()};return e.createElement(s,{disabled:g,type:"button",className:A,onClick:t=>o(t,E)},m==="Back"||m==="Next"?e.createElement("div",{className:"icon"},m==="Back"?"<":">"):m&&m.toString())},c=({className:A,paging:m,updatePageIndex:p})=>{let{pageIndex:g,pageCount:o}={...m},t=Math.ceil(g-5/2);t<0&&(t=0);let a=t+5-1;a>o-1&&(a=o-1,t=o-5,t<0&&(t=0));let n=[];for(let r=t;r<=a;r++){let $=r==g;n.push({i:r,updatePageIndex:p,isCurrentPage:$})}return o<=0?null:e.createElement(S,{className:A},e.createElement(f,{className:`control prev ${g>0?"":"disabled"}`,disabled:!(g>0),index:g-1,label:"Back",updatePageIndex:p}),n&&n?.length>0?n.map(r=>e.createElement(f,{index:r.i,label:r.i+1,disabled:r.isCurrentPage,key:r.i,updatePageIndex:r.updatePageIndex,className:r.isCurrentPage?"inactive":"active"})):null,e.createElement(f,{className:`control next ${g{l.d(x,{A:()=>v});var e=l(48322),d=l(67115);const S=d.default.button` ${({theme:s,styleType:k})=>{let f={defaultStyles:s?.buttonStyles[k]?.default,hoverStyles:s?.buttonStyles[k]?.hover,focusStyles:s?.buttonStyles[k]?.focus};const u=c=>{if(!c)return;const{background_color:A,border_color:m,text_color:p,opacity:E}=c;return(0,d.css)` ${A&&`background-color: ${A};`} ${m&&`border: 2px solid ${m};`} ${p&&` color: ${p}; .i { path, circle, rect { stroke: ${p}; } } `} ${E&&`opacity: ${E};`} `};return(0,d.css)` display: inline-block; padding: 1.2rem 1.6rem; border: none; width: fit-content; text-decoration: none; text-align: center; color: ${s.colors.white}; background-color: ${s.colors.pink}; background: ${s.colors.pink} url('/_MB34Eg_2f94b5a9-e748-4b41-8c9a-9c82f59c8b8e/static-main/img/button-bg.svg') top right no-repeat; background-size: contain; ${u(f.defaultStyles)}; transition: all 300ms ease-in-out; &:hover { ${u(f.hoverStyles)} } &:focus { ${u(f.focusStyles)} } &.button--large { padding: 2.4rem 3.2rem; } `}}; `,v=({className:s,title:k,size:f,children:u,styleType:c="primary",onClick:A,...m})=>e.createElement(S,{styleType:c,onClick:A,...m,className:`button button--${f} ${s}`},k||u)},20548:(D,x,l)=>{l.d(x,{A:()=>g});var e=l(48322),d=l(82472),y=l(67115),S=l(973);const v=y.default.div` ${({type:o})=>(0,y.css)` position: relative; width: 100%; font-size: 1.4rem; @media ${S.mq.medium} { width: auto; } .dropdown__select { position: relative; margin-top: 1.2rem; } .filter-control__label { color: ${d.A.blueAlt}; font-weight: 600; white-space: nowrap; } select { padding: 1.6rem 4.8rem 1.6rem 1.6rem; border: 1px solid ${d.A.grey}; width: 100%; cursor: pointer; background: none; -webkit-appearance: none; -moz-appearance: none; font-size: 1.4rem; } select::-ms-expand { display: none; } input[type='checkbox'] { float: right; margin: 0.4rem; width: 20px; height: 20px; } .dropdown__icon { pointer-events: none; width: 24px; height: 24px; position: absolute; top: 50%; right: 5px; transform-origin: 2.5px center; transform: translateY(-50%) rotate(90deg); } ${o==="sort"&&(0,y.css)` .dropdown__icon { height: 18px; width: 18px; } `} `}; `;var s=l(97594);const f=y.default.div` ${({theme:{colors:o}})=>{const t={color:`${o.blueAlt}`,bgColor:"#fff",borderRadius:"0",optionlabel:`${o.blueAlt}`,optionlabelBg:"white"};return(0,y.css)` position: relative; .filter-toggle { background: ${t.bgColor}; border: 1px solid black; border-radius: ${t.borderRadius}; padding: 1.6rem; color: ${t.color}; width: 100%; display: flex; justify-content: space-between; align-items: center; cursor: pointer; /* background: rgba(255, 255, 255, 1) url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAMCAYAAABiDJ37AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAD0SURBVHgBpZLNDcIwDIWdlEoIoYpjaZKSERgBNoANGKFMABvABmUDRugIjEAPIHHj0AsXGmwhoFL/y5NycZ6/Z1m2hBBTx3HcJElu8IeUGi8Gg+GD2zYA5xC5rquho2gopIT9/pcuVvjOXaDUg713rQmakZRyS9ARqiXsrJRaFRoIKqU4NYF+YL4vt5VGNB3whVUeCqTgWthvUhEhdFce6oXo2Rf98aJir2cvGYOZ73ubfJi3MYbpy+UaQBtpTTvycEfjIAujmtblO2Z10OeTRwBmzZg1MSYNLCudx/Et7gR8Q8U0TeFojIE6WGPhOc1yh1uiF0dLQ+HwZpbXAAAAAElFTkSuQmCC') no-repeat right 2.55rem center; */ svg { margin-left: 8px; width: 12px; height: auto; transition: transform 0.2s ease-in-out; } &.open { svg { transform: scaleY(-1); } } &.has-options { font-weight: 700; } } .drop-filter-set { position: absolute; overflow: hidden; top: calc(100% - 0.2rem); z-index: 98; background: #fff; width: 100%; border-radius: 0; box-shadow: 0 0.4rem 1.5rem rgba(0, 0, 0, 0.2); overflow-y: scroll; max-height: 200px; &.closed { display: none; } } .filter-status { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 1.6rem; margin-bottom: 1.6rem; font-size: 1.4rem; border-bottom: 1px solid ${o.blue}; } .clear-set { padding: 0.4rem 1.6rem; border: none; border-radius: 0; &:not(:disabled) { cursor: pointer; } } .filter-options { padding: 0 1.6rem; list-style-type: none; margin-block: 0; .filter-option { margin-bottom: 0.8rem; &:last-child label { border-radius: 0; } input { appearance: none; background-color: #fff; margin: 0; margin-right: 0.8rem; display: grid; place-content: center; font: inherit; color: currentColor; width: 2em; height: 2em; border: 0.15em solid currentColor; transform: translateY(-0.075em); &::before { content: ''; width: 18px; height: 14px; transform: scale(0); background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxOCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAgN0w2LjYyNzM5IDE0TDE4IDEuOTg4TDE2LjEzMTEgMEw2LjYyNzM5IDEwLjAzOEwxLjg1NTY3IDUuMDRMMCA3WiIgZmlsbD0iIzFENzBCOCIvPgo8L3N2Zz4K); } &:checked::before { transform: scale(1); } } label { display: grid; grid-template-columns: 1em auto; align-items: center; gap: 1.5em; color: ${t.optionlabel}; background: ${t.optionlabelBg}; cursor: pointer; } } } `}}; `,c=(o,t,a)=>{const n=w=>{const C=w.type==="keyup"&&w.keyCode==27,N=!o.current.contains(w.target),h=w.relatedTarget&&!o.current.contains(w.relatedTarget);o.current&&(N||h)&&$(),C&&($(),t?.current.focus())},r=()=>{document.removeEventListener("click",n,!1),document.removeEventListener("focusout",n,!1),document.removeEventListener("keyup",n,!1),document.addEventListener("click",n,!1),document.addEventListener("focusout",n,!1),document.addEventListener("keyup",n,!1)},$=()=>{document.removeEventListener("click",n,!1),document.removeEventListener("focusout",n,!1),document.removeEventListener("keyup",n,!1),a&&a()};return{initElementFocus:r,destroyElementFocus:$}},p=({filterKey:o,options:t,title:a,updateSelectedFilters:n})=>{const[r,$]=(0,e.useState)(!1),w=(0,e.useRef)(null),C=(0,e.useRef)(null),{initElementFocus:N,destroyElementFocus:h}=c(w,C,()=>$(!1));if(!t||t.length===0)return null;const I=i=>{$(i),i?N():h()},L=t.length,T=t.filter(i=>i.isSelected).length;return e.createElement(f,{ref:w},e.createElement("button",{ref:C,className:`filter-toggle ${t.filter(i=>i.isSelected).length>0?" has-options":""} ${r?" open":""}`,onClick:()=>I(!r)},e.createElement("span",null,e.createElement(s.A,null,"Listing filter "),a,!r&&e.createElement(e.Fragment,null,e.createElement("span",{"aria-hidden":"true"},` (${T})`),e.createElement(s.A,null,` ${T} of ${L} selected`))),e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 13 8",className:"filter-toggle-icon","aria-hidden":!0},e.createElement("path",{fill:"#005282",d:"M10.85 0 6.33 4.82 1.82 0 .33 1.59l6 6.41 6-6.41L10.85 0Z"}))),e.createElement("div",{className:`drop-filter-set ${r?"open":"closed"}`},e.createElement("div",{className:"filter-status"},e.createElement("div",null,T," of ",L," ",e.createElement(s.A,null,"selected")),e.createElement("button",{className:"clear-set",disabled:!t.some(i=>i.isSelected),onClick:()=>{t.filter(i=>i.isSelected).forEach(i=>{n(o,i.key)})}},"Clear ",e.createElement(s.A,null,"filters"))),e.createElement("ul",{className:"filter-options"},t.map(i=>{const B=`${o}-${i.key}`;return i.contentTypeId,e.createElement("li",{key:i.key,className:"filter-option"},e.createElement("label",{htmlFor:B},e.createElement("input",{id:B,className:i.isSelected?"active":void 0,type:"checkbox",checked:i.isSelected,onChange:()=>n(o,i.key)}),i.contentTypeId==="dataStartingYear"?`${i.title}-${(Number(i.title)+1).toString().substring(2)}`:i.title,e.createElement(s.A,null,". Press escape to exit filter selection")))}))))},g=({className:o,defaultValue:t="Select",filterGroupKey:a,filters:n,label:r,multiSelect:$,type:w="default",updateSelectedFilters:C=(N,h)=>({})})=>{const N=(h,I)=>{I==="0/2/24/28/2951"&&C(h,"0/2/24/28/2887"),C(h,I)};return!n||n.length<1?null:(n=n.filter(h=>h.key!=="0/2/24/28/2887"),e.createElement(v,{className:o,type:w},n.length===1&&n[0].key==="true"&&e.createElement(e.Fragment,null,r?e.createElement("label",{className:"filter-control__label",htmlFor:a},r,n.some(h=>h.isSelected)&&e.createElement("span",{style:{color:d.A.brightPink}}," *")):e.createElement(s.A,null,e.createElement("label",{htmlFor:a},t)),e.createElement("input",{type:"checkbox",id:a,checked:n[0].isSelected,onChange:h=>C(a,h.target.checked.toString())})),(n.length>1||n[0].key!=="true")&&e.createElement(p,{key:a,filterKey:a,options:n,title:r||"",updateSelectedFilters:N})))}},16117:(D,x,l)=>{l.d(x,{A:()=>f});var e=l(48322),d=l(67115);const S=d.default.div` ${({theme:u,breakpoint:c})=>(0,d.css)` margin-bottom: 3.2rem; .filter-toggle { display: flex; justify-content: center; align-items: center; padding: 1.2rem; margin-bottom: 2.4rem; border: 0; width: 100%; min-width: 12rem; font-size: 1.4rem; text-decoration: none; text-align: center; color: ${u.colors.white}; background-color: ${u.colors.aquaAlt}; cursor: pointer; @media screen and (min-width: ${c}px) { display: none; } &:hover, &:focus { text-decoration: underline; } } .filter-hidden { @media screen and (max-width: ${c}px) { display: none; } } .filter-visible { display: block; } `}; `,b=u=>c=>{c.key==="Enter"&&u(c)};var v=l(10191),s=l(614);const f=({breakpoint:u=840,children:c,className:A,openTitle:m="Open Filter",closeTitle:p="Close Filter"})=>{const[E,g]=(0,e.useState)(!1),[o,t]=(0,e.useState)(!1),[a,n]=(0,e.useState)(!0),r=()=>{g(!E),t(!o),n(!a)};return e.createElement(S,{className:A,breakpoint:u},e.createElement(v.A,{className:"filter-toggle",onClick:()=>r(),onKeyDown:b(()=>r),"aria-expanded":o,"aria-controls":"filteredContent"},E?p:m,e.createElement(s.I,{icon:E?"chevronUp":"chevronDown"})),e.createElement("div",{id:"filteredContent",className:`filter-toggle__children ${E?"filter-visible":"filter-hidden"}`,"aria-hidden":a},c))}},93183:(D,x,l)=>{l.d(x,{A:()=>y});var e=l(48322);const y=()=>{const[S,b]=(0,e.useState)({width:void 0,height:void 0});return(0,e.useEffect)(()=>{function v(){b({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",v),v(),()=>window.removeEventListener("resize",v)},[]),S}}}]);