PageSourceSearch

https://policy.nz/_next/static/chunks/848-a5f292721dc0d9cc.js

js policy.nz collected 2026-09-24 21:23:12 UTC 40,991 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[848],{4833:function(e,n,l){"use strict";l.d(n,{h:function(){return d}});var r=l(5893),t=l(7294),a=l(1314),i=l.n(a),s=l(4184),o=l.n(s);let c=()=>(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8474 1.05824C13.166 1.2828 14.3042 2.14554 14.9149 3.3834C15.7264 5.04772 15.408 7.06798 14.1283 8.37474L8.13856 14.8001C8.01806 14.9292 7.85255 15.002 7.67968 15.002C7.50681 15.002 7.3413 14.9292 7.2208 14.8001L1.22208 8.36274C-0.051146 7.05662 -0.364552 5.04144 0.44768 3.3834C1.04861 2.13908 2.18894 1.2732 3.51008 1.05807C4.83884 0.824389 6.19419 1.27298 7.14976 2.26274L7.67968 2.7654L8.2288 2.24474C9.18616 1.27392 10.5288 0.833678 11.8474 1.05824ZM7.90816 13.1307L13.2202 7.43407C14.1081 6.53442 14.332 5.13821 13.7731 3.98674C13.3558 3.12365 12.5644 2.52337 11.6477 2.37474C10.7219 2.21215 9.7776 2.52495 9.112 3.21474L8.11296 4.1634C7.86869 4.39524 7.49515 4.39524 7.25088 4.1634L6.27168 3.23007C5.60335 2.52978 4.65034 2.21089 3.71552 2.37474C2.79775 2.52258 2.00498 3.12294 1.58688 3.98674C1.02827 5.133 1.24767 6.5242 2.12896 7.42407L7.44928 13.1307C7.50953 13.1953 7.59229 13.2317 7.67872 13.2317C7.76515 13.2317 7.84791 13.1953 7.90816 13.1307Z",fill:"currentColor"})}),d=e=>{let{size:n="base",label:l,isSelected:a=!1,...s}=e,[d,u]=(0,t.useState)(!0);return(0,t.useEffect)(()=>u(!1),[]),(0,r.jsx)("button",{...s,className:o()(i().iconButton,{[i().iconButtonLarge]:"large"===n,[i().selected]:!d&&a}),"aria-label":l,children:(0,r.jsx)(c,{})})}},1422:function(e,n,l){"use strict";l.d(n,{z:function(){return d},h:function(){return u.h}});var r=l(5893);l(7294);var t=l(1314),a=l.n(t),i=l(4184),s=l.n(i),o=l(3386),c=l(3689);let d=e=>{let{size:n="base",colour:l="primary",buttonStyle:t="filled",icon:i,link:d=!0,iconFirst:u=!1,iconLast:_=!1,children:h,...p}=e,m="heart"===i?o.Z:c.Z;return(0,r.jsxs)(d?"div":"button",{...p,className:s()(a().button,{[a().small]:"small"===n,[a().base]:"base"===n,[a().large]:"large"===n,[a().filled]:"filled"===t,[a().primary]:"primary"===l&&"filled"!==t,[a().neutral]:"neutral"===l&&"filled"!==t,[a().gradientPrimary]:"gradient-primary"===l&&"filled"===t,[a().gradientSecondary]:"gradient-secondary"===l&&"filled"===t,[a().gradientAccent]:"gradient-accent"===l&&"filled"===t,[a().filledPrimary]:"filled"===t&&"primary"===l,[a().filledNeutral]:"filled"===t&&"neutral"===l,[a().outlinedPrimary]:"outline"===t&&"primary"===l,[a().outlinedNeutral]:"outline"===t&&"neutral"===l}),children:[u&&(0,r.jsxs)("div",{className:a().iconWrapper,children:[(0,r.jsx)(m,{}),(0,r.jsx)("span",{className:a().spacer})]}),(0,r.jsx)("p",{children:h}),_&&(0,r.jsxs)("div",{className:a().iconWrapper,children:[(0,r.jsx)("span",{className:a().spacer}),(0,r.jsx)(m,{})]})]})};var u=l(4833)},5848:function(e,n,l){"use strict";l.d(n,{A:function(){return J}});var r=l(5893),t=l(7294),a=l(4184),i=l.n(a),s=l(1664),o=l.n(s),c=l(1163),d=l(5949),u=l(415);let _=(e,n)=>{let l=l=>{var r,t,a,i;!e.current||"elections-dropdown-ref"!==e.current.id||e.current.contains(l.target)||(null===(r=l.target.parentElement)||void 0===r?void 0:null===(t=r.id)||void 0===t?void 0:t.includes("elections-dropdown"))||"Elections"===l.target.innerText||n(),!e.current||"menu-dropdown-ref"!==e.current.id||e.current.contains(l.target)||(null===(a=l.target.parentElement)||void 0===a?void 0:null===(i=a.id)||void 0===i?void 0:i.includes("menu-dropdown"))||n()};(0,t.useEffect)(()=>(document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}))};var h=l(5332),p=l(630),m=l(3279),g=l.n(m),C=l(1752),v=l.n(C),x=l(6561),f=l(2380),j=l.n(f);let y=()=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6C0 2.68629 2.68629 0 6 0C9.31222 0.00358242 11.9964 2.68778 12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6ZM7.19198 9.26472C7.23926 9.20985 7.26043 9.13718 7.25 9.0655L6.761 6.125C7.36241 5.84277 7.74744 5.23934 7.75 4.575C7.74371 4.04174 7.49413 3.54057 7.07233 3.21424C6.65053 2.88791 6.10275 2.77217 5.585 2.9C4.87101 3.0625 4.33902 3.66051 4.26078 4.38857C4.18255 5.11663 4.57533 5.81402 5.2385 6.1245L4.611 9.0545C4.597 9.12761 4.61632 9.20316 4.66369 9.26059C4.71106 9.31801 4.78156 9.35134 4.856 9.3515H7.0035C7.07593 9.35124 7.14469 9.31958 7.19198 9.26472Z",fill:"currentColor"})});var L=l(1422),w=l(6180),N=function(e){for(var n=arguments.length,l=Array(n>1?n-1:0),r=1;r<n;
1r++)l[r-1]=arguments[r];return fetch(e,...l).then(e=>e.json())};let{publicRuntimeConfig:b}=v()(),S=g()((e,n)=>{if(!e||e.length<2){n([]);return}fetch("https://api.addy.co.nz/search?key=".concat(b.ADDY_API_KEY,"&s=").concat(encodeURIComponent(e))).then(e=>e.json()).then(e=>{if(!e.addresses){n([]);return}return n(e.addresses)})},250,{trailing:!0}),E=e=>{let{campaign:n,tags:l}=e,{dispatch:a,state:{address:i,finder:s}}=(0,t.useContext)(d.I),{data:_,mutate:m,isValidating:g}=function(e,n,l){let r=e&&n&&l?"/api/campaigns/".concat(e,"/elections?lat=").concat(n,"&lng=").concat(l):null,{data:t,mutate:a,isValidating:i}=(0,w.Z)(r,N);return{data:t,mutate:a,isValidating:i}}(n,null==i?void 0:i.lat,null==i?void 0:i.lng),[C,v]=(0,t.useState)(void 0),f=(0,c.useRouter)();(0,t.useEffect)(()=>{let e=async()=>{if(i&&!g&&_&&_.length){var e;let l=(0,h.gf)(_,n,null!==(e=null==s?void 0:s.electionTypes)&&void 0!==e?e:[]);f.push(l),a((0,u.zg)())}};if(s&&_){let r=s.tagGroups,t=r&&_.filter(e=>e.tags.some(e=>r.some(n=>e.slug.startsWith("".concat(n,":")))));t&&0!==t.length?v(l.filter(e=>{var n;return null===(n=s.tagGroups)||void 0===n?void 0:n.some(n=>e.slug.startsWith("".concat(n,":")))})):(a((0,u.KU)(_)),e())}},[_,l,i,n,s,a,f,g,v]);let E=async e=>{if(!e){a((0,u.qj)(null)),a((0,u.KU)([])),v(void 0),m();return}a((0,u.N8)());let n=await fetch("https://api.addy.co.nz/address/".concat(e.id,"?key=").concat(b.ADDY_API_KEY)),l=await n.json();a((0,u.qj)({formatted:e.a,lat:l.y,lng:l.x})),await m()},B=e=>{let l=null==_?void 0:_.filter(n=>!!n.tags.find(n=>n.slug===e)||!n.tags.find(e=>{let n=((null==s?void 0:s.tagGroups)||[]).join("|"),l=RegExp("(".concat(n,"):"),"g");return l.test(e.slug)}));if(null==l?void 0:l.length){var r;a((0,u.KU)(l));let t=(0,h.gf)(l,n,null!==(r=null==s?void 0:s.electionTypes)&&void 0!==r?r:[]);f.push(t),a((0,u.zg)())}};return(0,r.jsxs)("div",{className:j().banner,children:[(0,r.jsx)("h3",{children:p.HF.TITLE}),(0,r.jsx)("p",{children:p.HF.SUBTITLE}),(0,r.jsxs)("div",{className:j().privacy,children:[(0,r.jsx)(y,{}),(0,r.jsxs)("p",{children:["We won't store or share your address."," ",(0,r.jsx)(o(),{href:"/privacy-policy",children:"Read more."})]})]}),(0,r.jsxs)("div",{className:j().form,children:[(0,r.jsx)("label",{htmlFor:"address1",children:"Your street address"}),(0,r.jsx)("div",{className:j().inputGroup,children:(0,r.jsx)(x.Z,{classNamePrefix:"react-select",loadOptions:S,cacheOptions:!1,className:j().search,isClearable:!0,getOptionLabel:e=>e.a,getOptionValue:e=>e.id,isLoading:g,onChange:E,placeholder:"e.g. 1 Museum Street, Pipitea, Wellington 6160"})}),!!i&&!g&&!(null==_?void 0:_.length)&&(0,r.jsx)("div",{className:j().warning,children:"There don't appear to be any elections running for your address."})]}),C&&(0,r.jsx)("div",{className:j().rollOptions,children:C.map((e,n)=>(0,r.jsx)(L.z,{size:"small",icon:"chevron",iconLast:!0,onClick:()=>B(e.slug),colour:0===n?"primary":"neutral",children:e.name},n))}),!(null==C?void 0:C.length)&&(0,r.jsxs)("div",{className:j().option,children:[(0,r.jsx)("span",{className:j().optionTitle,children:"or"}),(0,r.jsx)(o(),{href:"/".concat(n,"/").concat(p.kx.BROWSE_ALL),onClick:()=>{a((0,u.zg)())},children:(0,r.jsx)(L.z,{link:!0,buttonStyle:"outline",colour:"primary",size:"small",children:"Browse a list of all elections"})})]})]})},B=()=>(0,r.jsx)("svg",{width:"25",height:"26",viewBox:"0 0 25 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M12.2596 3.37037C11.8613 3.37037 11.5385 3.02213 11.5385 2.59259V0.777778C11.5385 0.348237 11.8613 0 12.2596 0C12.6579 0 12.9808 0.348237 12.9808 0.777778V2.59259C12.9808 3.02213 12.6579 3.37037 12.2596 3.37037ZM7.32809 4.23106C6.98209 4.44374 6.54127 4.31407 6.34373 3.94077L5.38338 2.12611C5.18594 1.75301 5.30645 1.27809 5.65269 1.06526C5.99898 0.852474 6.43956 0.982352 6.63705 1.35555L7.5974 3.17021C7.79484 3.54326 7.67428 4.01823 7.32809 4.23106ZM18.1755 3.9408C17.9781 4.3139 17.5374 4.44383 17.1911 4.23105C16.845 4.01826 16.7244 3.54328 16.9218 3.17018L17.8822 1.35549C18.0796 0.982395 18.5204 0.852463 18.8665 1.06525C19.2127 1.27803 19.3333 1.75301 19.1359 2.12611L18.1755 3.9408ZM12.2596 22.6296C12.6579 22.6296 12.9808 22.9779 12.9808 23.4074V25.2222C12.9808 25.6518 12.6579 26 12.2596 26C11.8613 26 11.5385 25.6518 11.5385 25.2222V23.4074C11.5385 22.97
179 11.8613 22.6296 12.2596 22.6296ZM17.1912 21.7689C17.5374 21.5562 17.978 21.6861 18.1755 22.0592L19.1359 23.8739C19.3333 24.247 19.2127 24.722 18.8665 24.9348C18.5203 25.1476 18.0796 25.0176 17.8822 24.6445L16.9219 22.8298C16.7244 22.4567 16.845 21.9817 17.1912 21.7689ZM6.34373 22.0592C6.54116 21.6861 6.98199 21.5562 7.32808 21.7689C7.67428 21.9817 7.79484 22.4567 7.5974 22.8298L6.63704 24.6445C6.43965 25.0176 5.99897 25.1476 5.65269 24.9348C5.30649 24.722 5.18593 24.247 5.38337 23.8739L6.34373 22.0592ZM0.176075 12.4678C0.223719 12.4037 1.36875 10.8802 3.44906 9.35583C6.21354 7.33001 9.34326 6.25926 12.4999 6.25926C15.6566 6.25926 18.7864 7.33001 21.5509 9.35575C23.6312 10.8802 24.7763 12.4037 24.8239 12.4678C25.0587 12.7832 25.0587 13.2168 24.8239 13.5322C24.7763 13.5963 23.6312 15.1198 21.5509 16.6443C18.7863 18.67 15.6566 19.7407 12.4999 19.7407C9.34318 19.7407 6.21346 18.67 3.44906 16.6442C1.36875 15.1198 0.223803 13.5962 0.176075 13.5322C-0.0586891 13.2168 -0.0586891 12.7831 0.176075 12.4678ZM7.69231 13.2407C7.69231 16.0283 9.84899 18.2963 12.5 18.2963C15.1509 18.2963 17.3077 16.0283 17.3077 13.2407C17.3077 10.4531 15.151 8.18519 12.5 8.18519C9.84907 8.18519 7.69231 10.4531 7.69231 13.2407ZM23.0769 13.235C22.3321 12.4089 20.6738 10.7828 18.2764 9.62963C18.9461 10.6695 19.3368 11.907 19.3368 13.2351C19.3368 14.568 18.9434 15.8097 18.2692 16.8519C19.0643 16.4694 19.8428 16.0023 20.6028 15.4511C21.7612 14.6108 22.6032 13.761 23.0769 13.235ZM4.39724 15.4533C5.15724 16.0036 5.93584 16.4698 6.73077 16.8519C6.05663 15.8114 5.66324 14.5715 5.66324 13.2407C5.66324 11.91 6.05663 10.6702 6.73077 9.62963C5.93584 10.0116 5.15724 10.4779 4.39724 11.0282C3.23877 11.8672 2.39674 12.7156 1.92308 13.2407C2.39707 13.7662 3.23894 14.6145 4.39724 15.4533Z",fill:"currentColor"})}),k=()=>(0,r.jsxs)("svg",{width:"25",height:"16",viewBox:"0 0 25 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("g",{clipPath:"url(#clip0_266_47)",children:(0,r.jsx)("path",{d:"M0.176085 6.05405C0.223728 5.99161 1.36868 4.50588 3.4489 3.01958C6.21338 1.0441 9.3431 0 12.4998 0C15.6565 0 18.7863 1.0441 21.5509 3.0195C23.6312 4.50588 24.7763 5.99161 24.8239 6.05405C25.0587 6.36161 25.0587 6.78438 24.8239 7.09194C24.7821 7.14677 23.8964 8.29566 22.2766 9.57992L23.4546 11.8944C23.672 12.3215 23.4957 12.8411 23.0608 13.0546C22.9344 13.1167 22.8002 13.1461 22.6679 13.1461C22.345 13.1461 22.0341 12.9709 21.8799 12.6678L20.8337 10.6123C19.9376 11.188 19.008 11.6694 18.0551 12.0523L19.0972 14.0998C19.3146 14.5269 19.1383 15.0465 18.7034 15.2601C18.577 15.3221 18.4427 15.3515 18.3105 15.3515C17.9876 15.3515 17.6766 15.1763 17.5224 14.8732L16.375 12.6186C15.3902 12.8887 14.3881 13.0569 13.3802 13.1188V15.1351C13.3802 15.6127 12.986 16 12.4999 16C12.0138 16 11.6196 15.6127 11.6196 15.1351V13.1188C10.6115 13.0569 9.60968 12.8887 8.62483 12.6186L7.47744 14.8732C7.32315 15.1763 7.01237 15.3515 6.68939 15.3515C6.55715 15.3515 6.42273 15.3221 6.29646 15.2601C5.86153 15.0465 5.68527 14.5269 5.90269 14.0998L6.9447 12.0523C5.99175 11.6694 5.0622 11.188 4.16607 10.6122L3.11994 12.6678C2.96573 12.9709 2.65496 13.1461 2.33198 13.1461C2.19966 13.1461 2.06531 13.1167 1.93897 13.0546C1.50412 12.8411 1.32785 12.3215 1.54528 11.8944L2.72314 9.57984C1.10328 8.29566 0.217834 7.14677 0.176001 7.09194C-0.0586796 6.78438 -0.0586796 6.36161 0.176085 6.05405ZM4.36381 8.71413C6.82688 10.4261 9.48482 11.2941 12.264 11.2941C15.0433 11.2941 17.7013 10.426 20.1645 8.71413C21.3243 7.90808 22.1672 7.09279 22.6415 6.58824C22.167 6.08336 21.3242 5.26815 20.1645 4.46226C17.7013 2.75028 15.0433 1.88235 12.264 1.88235C9.48482 1.88235 6.82688 2.75036 4.36381 4.46226C3.20395 5.26831 2.36106 6.0836 1.88679 6.58824C2.36131 7.09303 3.20412 7.90824 4.36381 8.71413Z",fill:"currentColor"})}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_266_47",children:(0,r.jsx)("rect",{width:"25",height:"16",fill:"currentColor",transform:"matrix(-1 0 0 1 25 0)"})})})]});var V=l(5736),O=l.n(V);let M=e=>{let{large:n=!1,shouldAnonymise:l=!1}=e,[a,s]=(0,t.useState)(!0),{state:o,dispatch:c}=(0,t.useContext)(d.I);(0,t.useEffect)(()=>s(!1),[]);let _=()=>{c((0,u.RD)(!o.shouldAnonymise))};return(0,r.jsx)("div",{className:i()(O().wrapper,{[O().largeWrapper]:n}),children:(0,r.jsxs)("label",{className:i()(O().switch,{[O().largeSwitch]:n}),children:[(0,r.jsx)("div",{className:i()(O().open,{[O().openLarge]:n,[O().active]:!a&&!l}),children:(0,r.jsx)(B,{})}),(0,r.jsx)("div",{className:i()(O().closed,{[O().closedLarge]:n,[O().active]:!a&&l}),children:(0,r.jsx)(k,{})}),(0,r.jsx)("input",{"aria-label":"Show/hide names",type:"checkbox",checked:l,className:O().input,onChange:_}),(0,r.jsx)("span",{className:i()(O().slider,{[O().largeSlider]:n})})]})})};var T=l(6582),A=l(4610),Z=l(9100),H=l(3689);let I=e=>(0,r.jsxs)("svg",{...e,width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M0.5 3.75586C0.5 3.20357 0.947715 2.75586 1.5 2.75586H22.5C23.0523 2.75586 23.5 3.20357 23.5 3.75586V4.75586C23.5 5.30814 23.0523 5.75586 22.5 5.75586H1.5C0.947715 5.75586 0.5 5.30814 0.5 4.75586V3.7
15586Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M0.5 11.7559C0.5 11.2036 0.947715 10.7559 1.5 10.7559H22.5C23.0523 10.7559 23.5 11.2036 23.5 11.7559V12.7559C23.5 13.3081 23.0523 13.7559 22.5 13.7559H1.5C0.947715 13.7559 0.5 13.3081 0.5 12.7559V11.7559Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M0.5 19.7559C0.5 19.2036 0.947715 18.7559 1.5 18.7559H22.5C23.0523 18.7559 23.5 19.2036 23.5 19.7559V20.7559C23.5 21.3081 23.0523 21.7559 22.5 21.7559H1.5C0.947715 21.7559 0.5 21.3081 0.5 20.7559V19.7559Z",fill:"currentColor"})]});var D=l(3386);let F=()=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 206 46",children:[(0,r.jsx)("path",{d:"M151.312 36V32.1562L154.711 31.4531V15.2109L151.055 14.5078V10.6406H160.617L160.922 14.2969C161.766 13 162.812 11.9922 164.062 11.2734C165.328 10.5391 166.758 10.1719 168.352 10.1719C170.898 10.1719 172.891 10.9766 174.328 12.5859C175.781 14.1797 176.508 16.6875 176.508 20.1094V31.4531L179.906 32.1562V36H166.992V32.1562L170.109 31.4531V20.1562C170.109 18.3438 169.75 17.0625 169.031 16.3125C168.312 15.5469 167.242 15.1641 165.82 15.1641C164.758 15.1641 163.828 15.3984 163.031 15.8672C162.25 16.3203 161.602 16.9688 161.086 17.8125V31.4531L164.086 32.1562V36H151.312ZM182.906 36V32.1328L196.242 15.1641H188.836L188.109 19.4766H183.422V10.6406H203.906V14.7656L191.133 31.3828H199.078L200.016 26.8125H204.539V36H182.906Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M28.3986 13.1057C28.3986 16.3164 27.2888 18.8964 25.0692 20.8457C22.8496 22.7951 19.8183 23.774 15.9752 23.7823H10.3031V31.2246L13.9012 31.9126V35.9441H0V31.9126L3.57291 31.2246V7.14016L0 6.44796V2.39544H15.9752C19.8183 2.39544 22.8496 3.37431 25.0692 5.33205C27.2888 7.28979 28.3986 9.88099 28.3986 13.1057ZM21.681 13.1518C21.734 11.6836 21.2182 10.2515 20.2409 9.15383C19.2808 8.10225 17.8632 7.57645 15.9878 7.57645H10.3031V18.5887H15.9752C17.8506 18.5887 19.2682 18.0783 20.2283 17.0575C21.2042 15.9958 21.7217 14.5924 21.6684 13.1518H21.681ZM50.8311 14.0957C52.9135 16.4618 53.9547 19.5103 53.9547 23.2412V23.7236C53.9547 27.4685 52.9135 30.5212 50.8311 32.8816C48.7486 35.2421 45.8782 36.4196 42.22 36.414C38.5169 36.414 35.6241 35.2365 33.5417 32.8816C31.4592 30.5268 30.418 27.4741 30.418 23.7236V23.2412C30.4096 19.5299 31.4467 16.4856 33.5291 14.1083C35.6116 11.7311 38.4889 10.5424 42.1612 10.5424C45.8503 10.5424 48.736 11.7269 50.8185 14.0957H50.8311ZM47.2456 23.2412C47.2456 21.0317 46.8383 19.2264 46.0238 17.8252C45.2093 16.424 43.926 15.7248 42.1738 15.7276C40.4244 15.7276 39.1495 16.4268 38.349 17.8252C37.5485 19.2236 37.1482 21.0289 37.1482 23.2412V23.7236C37.1482 25.9974 37.5485 27.8153 38.349 29.1773C39.1495 30.5393 40.4398 31.2274 42.22 31.2413C43.9581 31.2413 45.2303 30.5491 46.0364 29.1647C46.8425 27.7803 47.2456 25.9624 47.2456 23.711V23.2412ZM66.0338 0H55.7055V4.05252L59.3036 4.74472V31.212L56.054 31.9V35.9315H69.2834V31.9L66.0338 31.212V0ZM81.2491 0H74.5315V5.03419H81.2491V0ZM81.2491 11.0081H70.9208V15.0648L74.5189 15.7528V31.212L71.2693 31.9V35.9315H84.4777V31.9L81.2491 31.212V11.0081ZM102.367 27.4112C102.391 27.9275 102.307 28.4432 102.12 28.9251C101.932 29.407 101.646 29.8444 101.28 30.2093C100.893 30.5661 100.44 30.8425 99.9453 31.0226C99.4509 31.2026 98.9256 31.2827 98.3999 31.2581C96.5862 31.2581 95.3182 30.5785 94.5961 29.2193C93.8739 27.86 93.5129 26.0673 93.5129 23.8411V23.1489C93.5129 20.9674 93.9047 19.1859 94.6884 17.8042C95.4722 16.4226 96.8171 15.7318 98.7232 15.7318C99.2958 15.7232 99.865 15.8199 100.403 16.0171C100.861 16.1857 101.287 16.4311 101.662 16.7429L102.771 20.636H108.229L108.136 13.9825C107.012 12.8555 105.649 11.9953 104.148 11.4654C102.406 10.8311 100.564 10.5184 98.7106 10.5424C94.8844 10.5424 91.937 11.7255 89.8686 14.0915C87.8001 16.4576 86.7673 19.4753 86.7701 23.1447V23.8369C86.7701 27.5202 87.7763 30.5365 89.7888 32.8858C91.8013 35.2351 94.6674 36.4098 98.3873 36.4098C101.293 36.4098 103.721 35.5624 105.672 33.8675C106.601 33.1042 107.341 32.1361 107.833 31.0393C108.326 29.9425 108.557 28.7466 108.51 27.5454L108.438 27.407L102.367 27.4112ZM125.165 11.0081V15.0648L127.978 15.5221L124.006 27.2937L123.868 27.2727L123.519 25.473L120.11 15.5221L122.898 15.0648V11.0081H110.697V15.0648L113.027 15.4298L120.933 35.9567L120.173 37.8445C119.875 38.6218 119.401 39.3196 118.788 39.8834C118.062 40.4728 117.139 40.7652 116.206 40.7014C116.006 40.6983 115.807 40.6829 115.609 40.6553L114.938 40.563L114.157 45.4671C114.833 45.6391 115.416 45.7692 115.92 45.8615C116.448 45.9561 116.983 46.0025 117.52 45.9999C119.949 45.9999 121.769 45.393 122.978 44.1792C124.236 42.8841 125.22 41.3489 125.871 39.6652L135.04 15.4088L137.37 15.0648V11.0081H125.165ZM145.234 28.5187C145.724 29.0088 146 29.6735 146 30.3666C146 31.0597 145.724 31.7245 145.234 32.2146L141.455 35.9651C141.431 35.9902 141.401 36.0102 141.369 36.0238C141.336 36.0374 141.302 36.0444 141.266 36.0444C141.231 36.0444 141.196 36.0374 141.164 36.0238C141.132 36.0102 141.102 35.9902 141.077 35.9651L137.299 32.1894C137.056 31.947 136.864 31.6593 136.733 31.3425C136.601 31.0258 136.534 30.6864 136.534 30.3436C136.534 30.0008 136.601 29.6613 136.733 29.3446C136.864 29.0279 137.056 28.7401 137.299 28.4977C137.541 28.25
153 137.829 28.063 138.146 27.9318C138.463 27.8006 138.803 27.7331 139.146 27.7331C139.489 27.7331 139.829 27.8006 140.146 27.9318C140.463 28.063 140.751 28.2553 140.994 28.4977L141.254 28.7578L141.514 28.5019C141.757 28.2594 142.045 28.067 142.362 27.9357C142.679 27.8044 143.018 27.7369 143.361 27.7369C143.705 27.7369 144.044 27.8044 144.361 27.9357C144.678 28.067 144.966 28.2594 145.209 28.5019L145.234 28.5187Z",fill:"currentColor"})]});var P=l(3213),R=l.n(P);let z=e=>{var n,l,a,s,m,g,C,v,x;let{state:f,dispatch:j}=(0,t.useContext)(d.I),[y,L]=(0,t.useState)(!1),[w,N]=(0,t.useState)(!1),[b,S]=(0,t.useState)(!0),B=(0,c.useRouter)(),k=B.asPath.includes("/".concat(p.kx.POLICIES,"/")),V=(0,t.useRef)(null),O=(0,t.useRef)(null),P=null==f?void 0:null===(n=f.address)||void 0===n?void 0:null===(l=n.formatted)||void 0===l?void 0:l.split(", "),z=f.finder,W=(()=>{let e=0;for(let n in f.elections){var l,r,t,a,i,s;e+=(null!==(i=null===(l=f.elections[n])||void 0===l?void 0:null===(r=l.selectedPolicies)||void 0===r?void 0:r.length)&&void 0!==i?i:0)+(null!==(s=null===(t=f.elections[n])||void 0===t?void 0:null===(a=t.selectedCandidates)||void 0===a?void 0:a.length)&&void 0!==s?s:0)}return e})();return _(V,()=>{N(!1)}),_(O,()=>{L(!1)}),(0,t.useEffect)(()=>S(!1),[]),(0,t.useEffect)(()=>()=>{j((0,u.zg)())},[j]),(0,t.useEffect)(()=>{N(!1),L(!1)},[B.asPath,N,L]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("header",{className:R().wrapper,children:[(0,r.jsx)("div",{className:R().header,children:(0,r.jsx)(Z.W2,{children:(0,r.jsx)(Z.X2,{children:(0,r.jsx)(Z.sg,{sm:12,md:6,justifySm:"center",children:(0,r.jsx)(o(),{href:"/",children:(0,r.jsxs)("div",{className:R().svgWrapper,children:[(0,r.jsx)(F,{}),!e.isNotFoundPage&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("hr",{className:R().separator}),(0,r.jsx)("p",{children:e.campaign.name})]})]})})})})})}),(0,r.jsx)("div",{className:R().navbar,children:(0,r.jsxs)(Z.W2,{children:[(0,r.jsxs)(Z.X2,{children:[(0,r.jsx)(Z.sg,{sm:6,justifySm:"center",children:(0,r.jsx)(A.E,{children:!b&&(null===(a=f.userElections)||void 0===a?void 0:a.length)>0&&!!(null===(s=e.campaign)||void 0===s?void 0:s.slug)&&(0,r.jsxs)("button",{id:"elections-dropdown-button",className:i()(R().dropdownButton,{[R().chevronOpen]:w}),onClick:()=>N(!w),children:[(0,r.jsx)("span",{children:"Your elections"}),(0,r.jsx)(H.Z,{id:"elections-dropdown-svg"})]})})}),(0,r.jsx)(Z.sg,{sm:6,alignSm:"flex-end",justifySm:"center",children:(0,r.jsxs)("div",{className:R().right,children:[(0,r.jsx)(A.E,{sm:k,children:(0,r.jsx)(M,{shouldAnonymise:f.shouldAnonymise})}),!b&&!!(null===(m=e.campaign)||void 0===m?void 0:m.slug)&&(0,r.jsx)("div",{className:R().favouritesCount,children:(0,r.jsx)(o(),{href:"/".concat(e.campaign.slug,"/").concat(p.kx.FAVOURITES),children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(D.Z,{}),!W&&(0,r.jsx)(A.E,{sm:!1,md:!0,children:(0,r.jsx)("span",{className:i()(R().tooltip,{[R().tooltipOffset]:k}),children:"Like a policy or candidate to start your list"})}),(0,r.jsx)("span",{children:W})]})})}),(0,r.jsx)("button",{id:"menu-dropdown-button",onClick:()=>L(!y),className:R().menuButton,"aria-label":"Open main menu",children:(0,r.jsx)(I,{id:"menu-dropdown-svg"})})]})})]}),(0,r.jsx)("div",{ref:O,id:"menu-dropdown-ref",children:(0,r.jsxs)("span",{className:i()(R().dropdown,R().menu,{[R().display]:y}),children:[!!(null===(g=e.campaign)||void 0===g?void 0:g.slug)&&(0,r.jsx)("div",{className:R().menuLeft,children:(0,r.jsxs)("div",{className:R().menuLinks,children:[(0,r.jsx)("h5",{children:"Explore"}),(0,r.jsxs)("ul",{children:[p.qy.EXPLORE.map(n=>(0,r.jsx)("li",{children:(0,r.jsx)(o(),{href:"/".concat(e.campaign.slug,"/").concat(n.link),children:(0,r.jsx)("p",{onClick:()=>L(!1),children:n.label})})},n.link)),!!(null===(C=e.resources)||void 0===C?void 0:C.length)&&e.resources.map(n=>(0,r.jsx)("li",{children:(0,r.jsx)(o(),{href:"/".concat(e.campaign.slug,"/resources/").concat(n.slug),children:(0,r.jsx)("p",{onClick:()=>L(!1),children:n.title})})},n.slug))]})]})}),(0,r.jsx)("div",{className:R().menuRight,children:(0,r.jsxs)("div",{className:i()(R().menuLinks),children:[(0,r.jsx)("h5",{children:"About"}),(0,r.jsx)("ul",{children:p.qy.ABOUT.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(o(),{href:e.link,children:(0,r.jsx)("p",{onClick:()=>L(!1),children:e.label})})},e.link))})]})})]})}),(0,r.jsx)("div",{ref:V,id:"elections-dropdown-ref",children:(0,r.jsx)("span",{className:i()(R().dropdown,{[R().display]:w}),children:!b&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:R().electionsList,children:null===(v=f.userElections)||void 0===v?void 0:v.map((n,l)=>{let t=(0,h.Db)(n);if(n.slug)return(0,r.jsx)(o(),{href:"/".concat(e.campaign.slug,"/").concat(t),children:(0,r.jsxs)("div",{onClick:()=>N(!1),className:R().listItem,children:[(0,r.jsxs)("div",{className:R().listItemDetail,children:[(0,r.jsx)("span",{className:R().listTitle,children:n.title}),(0,r.jsx)("span",{children:n.subtitle})]}),(0,r.jsx)(H.Z,{})]})},"".concat(l,"-").concat(n.slug))})}),(0,r.jsxs)("div",{className:R().address,children:[(0,r.jsx)("span",{className:R().strapline,children:"Your address"}),null==P?void 0:P.map((e,n)=>(0,r.jsx)("p",{children:e},n)),(0,r.jsx)("button",{onClick:()=>{N(!1),j((0,u.qj)(null)),j((0,u.KU)([])),j((0,u.uG)(!0,(0,h.g8)(e.campaign.slug)?p.Ge[1].electionTypes:p.TO[0].electionTypes,(0,h.g8)(e.campaign.slug)?p.Ge[1].tagGroups:p.TO[0].tagGroups))},children:(null==P?void 0:P.length)?"Change":"Enter an address"}),(0,r.jsx)("div",{className:R().warning,children:"Please note your favourites will be lost if you change your address"})]})]})})})]})}),!!(null===(x=e.campaign)||void 0===x?void 0:x.slug)&&(0,r.jsx)(T.u,{isOpen:null!==z,onClose:()=>j((0,u.zg)()),children:(0,r.jsx)(E,{campaign:e.campaign.slug,tags:e.tags})})]}),(0,r.jsx)("div",{className:i()(R().menuOverlay,{[R().displayOverlay]:w||y})})]})};var W=l(5675),X=l.n(W),U=l(2794),G=l(7328),q=l(4024),Y=l.n(q);let K=e=>{var n;let l=new Date().getFullYear();return(0,r.jsxs)("footer",{className:Y().wrapper,children:[(0,r.jsx)(U.$,{spacing:"small",backgroundColour:"primary10",children:(0,r.jsxs)(Z.W2,{children:[(0,r.jsx)(Z.X2,{children:(0,r.jsx)(Z.sg,{lg:10,offsetLg:1,children:(0,r.jsx)("p",{className:Y().sponsorsTitle,children:"With supp
1ort from"})})}),(0,r.jsx)(Z.X2,{children:(0,r.jsx)(Z.sg,{lg:10,offsetLg:1,alignSm:"center",justifySm:"center",children:(0,r.jsxs)(Z.X2,{justifySm:"center",children:[(0,r.jsxs)(Z.sg,{lg:6,alignSm:"center",justifyLg:"center",children:[(0,r.jsx)(G.L,{size:"small"}),(0,r.jsx)("a",{style:{alignContent:"center"},href:p.eA.lgnz.url,target:"_blank",rel:"noopener noreferrer nofollow",children:(0,r.jsx)(X(),{src:p.eA.lgnz.image,alt:p.eA.lgnz.altText,width:128,height:128})}),(0,r.jsx)(G.L,{size:"small"})]}),(0,r.jsxs)(Z.sg,{lg:6,alignSm:"center",justifyLg:"center",children:[(0,r.jsx)(G.L,{size:"small"}),(0,r.jsx)("a",{style:{alignContent:"center"},href:p.eA.addy.url,target:"_blank",rel:"noopener noreferrer nofollow",children:(0,r.jsx)(X(),{src:p.eA.addy.image,alt:p.eA.addy.altText,width:175,height:64})}),(0,r.jsx)(G.L,{size:"small"})]})]})})})]})}),(0,r.jsx)(U.$,{spacing:"small",backgroundColour:"primary5",children:(0,r.jsx)(Z.W2,{children:(0,r.jsx)(Z.X2,{children:(0,r.jsx)(Z.sg,{lg:10,offsetLg:1,children:(0,r.jsxs)(Z.X2,{directionSm:"column-reverse",directionMd:"row",children:[(0,r.jsxs)(Z.sg,{md:6,children:[(0,r.jsx)(Z.X2,{children:(0,r.jsx)(Z.sg,{children:(0,r.jsx)("p",{className:Y().campaign,children:e.campaign.name})})}),(0,r.jsx)(Z.X2,{children:(0,r.jsx)(Z.sg,{children:(0,r.jsx)("div",{className:Y().policyLogo,children:(0,r.jsx)(F,{})})})})]}),(0,r.jsx)(A.E,{md:!1,children:(0,r.jsx)(G.L,{})}),(0,r.jsx)(Z.sg,{md:6,children:(0,r.jsxs)(Z.X2,{children:[(0,r.jsx)(Z.sg,{md:6,children:(0,r.jsxs)("div",{className:Y().footerLinks,children:[(0,r.jsx)("h3",{children:"Explore"}),(0,r.jsxs)("ul",{children:[p.qy.EXPLORE.map(n=>(0,r.jsx)("li",{children:(0,r.jsx)(o(),{href:"/".concat(e.campaign.slug,"/").concat(n.link),children:(0,r.jsx)("p",{children:n.label})})},n.link)),!!(null===(n=e.resources)||void 0===n?void 0:n.length)&&e.resources.map(n=>(0,r.jsx)("li",{children:(0,r.jsx)(o(),{href:"/".concat(e.campaign.slug,"/resources/").concat(n.slug),children:(0,r.jsx)("p",{children:n.title})})},n.slug))]})]})}),(0,r.jsx)(Z.sg,{md:6,children:(0,r.jsxs)("div",{className:i()(Y().footerLinks,Y().footerFinal),children:[(0,r.jsx)("h3",{children:"About"}),(0,r.jsx)("ul",{children:p.qy.ABOUT.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(o(),{href:e.link,children:(0,r.jsx)("p",{children:e.label})})},e.link))})]})})]})})]})})})})}),(0,r.jsx)("div",{className:Y().footer,children:(0,r.jsx)(Z.W2,{children:(0,r.jsx)(Z.X2,{children:(0,r.jsx)(Z.sg,{lg:10,offsetLg:1,children:(0,r.jsxs)(Z.X2,{children:[(0,r.jsxs)(Z.sg,{md:6,children:[(0,r.jsx)("p",{children:"\xa9 ".concat(l," Policy Limited")}),(0,r.jsx)(A.E,{md:!1,children:(0,r.jsx)(G.L,{size:"small"})})]}),(0,r.jsx)(Z.sg,{md:6,alignMd:"flex-end",children:(0,r.jsx)("a",{className:"custom-dbox-popup",href:p.ID,children:(0,r.jsx)(L.z,{link:!0,colour:"neutral",icon:"heart",iconFirst:!0,size:"small",children:"Donate"})})})]})})})})})]})},J=e=>{let{children:n,...l}=e;return(0,r.jsxs)("div",{children:[(0,r.jsx)(z,{...l}),n,(0,r.jsx)(K,{...l})]})}},6582:function(e,n,l){"use strict";l.d(n,{u:function(){return o}});var r=l(5893),t=l(7294),a=l(3935),i=l(1618),s=l.n(i);let o=e=>{let{isOpen:n,onClose:l,children:i}=e,[o,c]=(0,t.useState)(!1),d=e=>{e.preventDefault(),e.stopPropagation(),null==l||l()};(0,t.useEffect)(()=>{c(!0)},[]),(0,t.useEffect)(()=>(n&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="unset"}),[n]);let u=(0,r.jsx)(r.Fragment,{children:n?(0,r.jsxs)("div",{className:s().modalWrapper,children:[(0,r.jsx)("div",{className:s().modalOverlay,onClick:d}),(0,r.jsx)("div",{className:s().modalInner,children:(0,r.jsx)("div",{className:s().modalBody,children:i})})]}):null});if(o){let _=document.getElementById("modal-portal");if(_)return a.createPortal(u,_)}return null}},2794:function(e,n,l){"use strict";l.d(n,{$:function(){return _}});var r=l(5893),t=l(7294),a=l(4184),i=l.n(a),s=l(758),o=l.n(s),c=l(5675),d=l.n(c),u=l(7033);let _=e=>{let{backgroundColour:n,spacing:l="base",image:a,imageOverlay:s="dark",paddingTop:c=!0,paddingBottom:_=!0,darkMode:h,children:p,...m}=e,[g,C]=(0,t.useState)(!0);(0,t.useEffect)(()=>C(!1),[]);let v="string"==typeof a&&(0,u.q)(a);return(0,r.jsx)("div",{...m,className:i()(o().section,{[o().accent]:"accent"===n,[o().primary5]:"primary5"===n,[o().primary10]:"primary10"===n,[o().neutral10]:"neutral10"===n,[o().neutral40]:"neutral40"===n||!g&&h,[o().gradient]:"gradient"===n&&!h,[o().accent_orange]:"accent_orange"===n}),children:(0,r.jsxs)("section",{children:[!!a&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:i()(o().imageOverlay,{[o().imageOverlayDark]:"dark"===s,[o().imageOverlayLight]:"light"===s})}),(0,r.jsx)(d(),{priority:!0,src:a,...v&&{loader:u.H}
1,alt:"",sizes:"(max-width: 1300px) 100vw, 1300px",fill:!0,style:{maxWidth:"100%",objectFit:"cover",objectPosition:"center"}})]}),c&&(0,r.jsx)("div",{className:i()({[o().spacerSmall]:"small"===l,[o().spacerBase]:"base"===l,[o().spacerLarge]:"large"===l})}),(0,r.jsx)("div",{className:o().children,children:p}),_&&(0,r.jsx)("div",{className:i()({[o().spacerSmall]:"small"===l,[o().spacerBase]:"base"===l,[o().spacerLarge]:"large"===l})})]})})}},7328:function(e,n,l){"use strict";l.d(n,{L:function(){return o}});var r=l(5893);l(7294);var t=l(7409),a=l.n(t),i=l(4184),s=l.n(i);let o=e=>{let{size:n="base"}=e;return(0,r.jsx)("div",{className:s()({[a().small]:"small"===n,[a().base]:"base"===n,[a().large]:"large"===n})})}},4610:function(e,n,l){"use strict";l.d(n,{E:function(){return i}});var r=l(5893);l(7294);var t=l(1988),a=l.n(t);let i=e=>{let{sm:n,md:l,lg:t,xl:i,children:s,...o}=e;return(0,r.jsx)("div",{...o,className:a().visibility,"data-show-sm":n,"data-show-md":l,"data-show-lg":t,"data-show-xl":i,children:s})}},9100:function(e,n,l){"use strict";l.d(n,{sg:function(){return p},W2:function(){return o},X2:function(){return u}});var r=l(5893);l(7294);var t=l(6514),a=l.n(t),i=l(4184),s=l.n(i);let o=e=>{let{fluid:n=!1,children:l,...t}=e;return(0,r.jsx)("div",{...t,className:s()(a().container,t.className,{[a().fluid]:n}),children:l})};var c=l(7943),d=l.n(c);let u=e=>{let{directionSm:n,directionMd:l,directionLg:t,directionXl:a,justifySm:i,justifyMd:s,justifyLg:o,justifyXl:c,children:u,..._}=e;return(0,r.jsx)("div",{..._,className:d().row,"data-direction-sm":n,"data-direction-md":l,"data-direction-lg":t,"data-direction-xl":a,"data-justify-sm":i,"data-justify-md":s,"data-justify-lg":o,"data-justify-xl":c,children:u})};var _=l(6391),h=l.n(_);let p=e=>{let{sm:n=12,md:l,lg:t,xl:a,justifySm:i,justifyMd:s,justifyLg:o,justifyXl:c,alignSm:d,alignMd:u,alignLg:_,alignXl:p,showSm:m,showMd:g,showLg:C,showXl:v,offsetSm:x,offsetMd:f,offsetLg:j,offsetXl:y,children:L,...w}=e;return(0,r.jsx)("div",{...w,className:h().column,"data-sm":n,"data-md":l,"data-lg":t,"data-xl":a,"data-justify-sm":i,"data-justify-md":s,"data-justify-lg":o,"data-justify-xl":c,"data-align-sm":d,"data-align-md":u,"data-align-lg":_,"data-align-xl":p,"data-show-sm":m,"data-show-md":g,"data-show-lg":C,"data-show-xl":v,"data-offset-sm":x,"data-offset-md":f,"data-offset-lg":j,"data-offset-xl":y,children:L})}},3689:function(e,n,l){"use strict";var r=l(5893);l(7294);let t=e=>(0,r.jsx)("svg",{...e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M13.6667 7.99999C13.6673 8.44112 13.4778 8.86112 13.1467 9.15266L5.71204 15.6933C5.19965 16.1233 4.43773 16.0655 3.99597 15.5633C3.55421 15.061 3.5942 14.298 4.08604 13.8447L10.5874 8.12532C10.6235 8.09368 10.6442 8.048 10.6442 7.99999C10.6442 7.95198 10.6235 7.9063 10.5874 7.87466L4.08604 2.15532C3.5942 1.702 3.55421 0.938941 3.99597 0.436688C4.43773 -0.065564 5.19965 -0.123298 5.71204 0.306655L13.144 6.84532C13.4759 7.13735 13.6663 7.55792 13.6667 7.99999Z",fill:"currentColor"})});n.Z=t},3386:function(e,n,l){"use strict";var r=l(5893);l(7294);let t=()=>(0,r.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M17.4751 3.80698C16.7599 2.41418 15.4264 1.44325 13.8812 1.19031C12.3361 0.937377 10.7626 1.43243 9.64061 2.52448L9.00011 3.11023L8.37986 2.54548C7.25994 1.43172 5.67115 0.92726 4.11386 1.19098C2.56561 1.43238 1.22912 2.40633 0.525114 3.80623C-0.426722 5.67153 -0.0594484 7.93861 1.43261 9.40798L8.46236 16.65C8.60357 16.7952 8.79754 16.8772 9.00011 16.8772C9.20269 16.8772 9.39665 16.7952 9.53786 16.65L16.5579 9.42148C18.056 7.95067 18.4273 5.67812 17.4751 3.80698Z",fill:"currentColor"})});n.Z=t},415:function(e,n,l){"use strict";l.d(n,{IX:function(){return o},KU:function(){return a},N8:function(){return h},RD:function(){return _},cP:function(){return i},eO:function(){return s},f2:function(){return c},oA:function(){return r},qj:function(){return t},uG:function(){return d},zg:function(){return u}});let r=()=>({type:"RESET_STATE"}),t=e=>({type:"SET_ADDRESS",payload:{address:e}}),a=e=>({type:"SET_USER_ELECTIONS",payload:{userElections:e}}),i=(e,n)=>({type:"SET_SELECTED_POLICY",payload:{policy:e,election:n}}),s=(e,n)=>({type:"CLEAR_SELECTED_POLICY",payload:{policy:e,election:n}}),o=(e,n)=>({type:"SET_SELECTED_CANDIDATE",payload:{person:e,election:n}}),c=(e,n)=>({type:"CLEAR_SELECTED_CANDIDATE",payload:{person:e,election:n}}),d=(e,n,l)=>({type:"SHOW_FINDER",payload:{address:e,electionTypes:n,tagGroups:l}}),u=()=>({type:"HIDE_FINDER"}),_=e=>({type:"SET_ANONYMISATION",payload:{anonymise:e}}),h=()=>({type:"CLEAR_FAVOURITES"})},7033:function(e,n,l){"use strict";l.d(n,{H:function(){return r},q:function(){return t}});let r=e=>{let{src:n,width:l,quality:r=90}=e;return"".concat(n,"?auto=format")+(r?"&q=".concat(r):"")+(l?"&w=".concat(l):"")},t=e=>!!(null==e?void 0:e.includes("cdn.sanity.io"))},5332:function(e,n,l){"use strict";l.d(n,{Db:function(){return c},Fw:function(){return o},g8:function(){return _},gf:function(){return d},hQ:function(){return s},mC:function(){return u},o5:function(){return i}});var r,t,a=l(630);let i=e=>"name"in e?null==e?void 0:e.name:"".concat(null==e?void 0:e.firstName," ").concat(null==e?void 0:e.lastName),s=e=>{var n,l;return e?"person"in e?null==e?void 0:null===(l=e.person)||void 0===l?void 0:l.slug:null==e?void 0:null===(n=e.party)||void 0===n?void 0:n.slug:null},o=e=>"candidates"in e&&e.candidates?e.candidates:"parties"in e&&e.parties?e.parties:[],c=e=>{var n,l;let r="candidate"===e.format?"candidates/".concat(null===(n=e.candidatesList)||void 0===n?void 0:n[0]):"parties/".concat(null===(l=e.partiesList)||void 0===l?void 0:l[0]);return"".concat(e.slug,"/").concat(r)},d=(e,n,l)=>{let r=e.filter(e=>{var n,r;return(null===(n=e.type)||void 0===n?void 0:n.reference)&&l.includes(null===(r=e.type)||void 0===r?void 0:r.reference)}),t=!!r.length,a=t?r[0]:e[0],i=c(a);return t?"/".concat(n,"/").concat(i):"/".concat(n,"/").concat(i,"#n
1ot-found")},u=e=>{let n=[...a.NF],l=null==e?void 0:e.reduce((e,l)=>{var a,i;return l.candidateName&&(null!==(i=(r=e)[t=l.candidateName])&&void 0!==i||(r[t]={total:0,slug:null==l?void 0:l.slug,color:null!==(a=null==l?void 0:l.color)&&void 0!==a?a:n.shift()}),e[l.candidateName].total++),e},{}),i=[];for(let s in l)i.push({name:s,...l[s]});return i.sort((e,n)=>n.total-e.total)},_=e=>(null==e?void 0:e.includes("2020"))||(null==e?void 0:e.includes("2023"))},2380:function(e){e.exports={privacy:"AddressFinder_privacy__awlPd",form:"AddressFinder_form__1UbM1",warning:"AddressFinder_warning__hQJdN",rollOptions:"AddressFinder_rollOptions__DxCEP",inputGroup:"AddressFinder_inputGroup__dA10N",search:"AddressFinder_search__uLTMu",submitButton:"AddressFinder_submitButton__lcF6q",option:"AddressFinder_option__k3G2P",optionTitle:"AddressFinder_optionTitle__85i_S"}},5736:function(e){e.exports={wrapper:"BlinkerSwitch_wrapper__u26f7",largeWrapper:"BlinkerSwitch_largeWrapper__yyjPh",switch:"BlinkerSwitch_switch__D2eBW",input:"BlinkerSwitch_input__ugOx_",largeSwitch:"BlinkerSwitch_largeSwitch__fMgQO",open:"BlinkerSwitch_open__K40sX",openLarge:"BlinkerSwitch_openLarge__phjp5",closed:"BlinkerSwitch_closed__5r_OT",closedLarge:"BlinkerSwitch_closedLarge__MyM0s",active:"BlinkerSwitch_active__7j1Tb",slider:"BlinkerSwitch_slider__t_bOQ",largeSlider:"BlinkerSwitch_largeSlider__FhAeR"}},1314:function(e){e.exports={button:"Button_button__PjVhE",iconButton:"Button_iconButton___b5Sg",iconButtonLarge:"Button_iconButtonLarge__CX87j",selected:"Button_selected__omqwk",small:"Button_small__XCqD1",smallIcon:"Button_smallIcon__sH862",base:"Button_base__ZU5RD",baseIcon:"Button_baseIcon__SGZwv",large:"Button_large__SfptJ",largeIcon:"Button_largeIcon__qamuL",filled:"Button_filled__OmRaj",primary:"Button_primary___XGO6",neutral:"Button_neutral__0kHIS",filledPrimary:"Button_filledPrimary__bN1Wi",gradientPrimary:"Button_gradientPrimary__lDJ_R",gradientSecondary:"Button_gradientSecondary__s_l2k",gradientAccent:"Button_gradientAccent__E9POt",filledNeutral:"Button_filledNeutral__UUSwn",outlinedPrimary:"Button_outlinedPrimary__K_mt5",outlinedNeutral:"Button_outlinedNeutral__SB7MV",iconWrapper:"Button_iconWrapper__2a5_u",spacer:"Button_spacer__Nvnsm"}},4024:function(e){e.exports={wrapper:"Footer_wrapper__fRar6",footer:"Footer_footer__Q5T55",footerLinks:"Footer_footerLinks__HlWsc",footerFinal:"Footer_footerFinal__4UmLL",sponsorsTitle:"Footer_sponsorsTitle__7Da35",campaign:"Footer_campaign__SC2j_",policyLogo:"Footer_policyLogo__ttU4c"}},1618:function(e){e.exports={modalWrapper:"Modal_modalWrapper__ztej7",modalOverlay:"Modal_modalOverlay__Mfe4A",modalInner:"Modal_modalInner__7FRLi",modalBody:"Modal_modalBody__9GOwN"}},3213:function(e){e.exports={wrapper:"Navbar_wrapper__Z0f5s",header:"Navbar_header__HKBRD",separator:"Navbar_separator__b_vxL",navbar:"Navbar_navbar__NtccY",dropdownButton:"Navbar_dropdownButton__vGX2R",menuButton:"Navbar_menuButton__zyZBD",chevronOpen:"Navbar_chevronOpen__TNPHv",link:"Navbar_link__AI3lX",svgWrapper:"Navbar_svgWrapper___TJHN",right:"Navbar_right__RdOwu",favouritesCount:"Navbar_favouritesCount__yeMCT",tooltip:"Navbar_tooltip__1flam",dropdown:"Navbar_dropdown__hLPLv",menu:"Navbar_menu__g5CI9",display:"Navbar_display__DpY01",electionsList:"Navbar_electionsList__bP05B",listItem:"Navbar_listItem__Yb9KE",listItemDetail:"Navbar_listItemDetail__gPauR",listTitle:"Navbar_listTitle__noO8M",strapline:"Navbar_strapline___fppr",address:"Navbar_address__GlqQS",menuLinks:"Navbar_menuLinks__kJeXD",tooltipOffset:"Navbar_tooltipOffset__bs1of",menuOverlay:"Navbar_menuOverlay__lpzyS",displayOverlay:"Navbar_displayOverlay__8vjbC",warning:"Navbar_warning__k8so9"}},758:function(e){e.exports={section:"Section_section___TusU",children:"Section_children__Uwazj",accent:"Section_accent__D0Syr",primary5:"Section_primary5__coJCw",primary10:"Section_primary10__B5g_B",neutral10:"Section_neutral10__xShoM",neutral40:"Section_neutral40__wC25p",gradient:"Section_gradient__71Z68",accent_orange:"Section_accent_orange__b23oR",imageOverlay:"Section_imageOverlay__Ldh__",imageOverlayDark:"Section_imageOverlayDark__JFszw",imageOverlayLight:"Section_imageOverlayLight__o_0DL",
1spacerSmall:"Section_spacerSmall__nZJVw",spacerBase:"Section_spacerBase__oUPEc",spacerLarge:"Section_spacerLarge__n_9Ns"}},7409:function(e){e.exports={small:"Spacer_small__wh9gK",base:"Spacer_base__nYntd",large:"Spacer_large__tJiIL"}},1988:function(e){e.exports={visibility:"Visibility_visibility___y9xL"}},6391:function(e){e.exports={column:"Column_column__chq9V"}},6514:function(e){e.exports={container:"Container_container__7KLbQ",fluid:"Container_fluid__Pdzba"}},7943:function(e){e.exports={row:"Row_row__wf3KR"}}}]);

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.